FIX: modal was not opening after navigating back in browser (#4218)

This commit is contained in:
Arpit Jalan 2016-05-12 20:33:59 +05:30 committed by Robin Ward
parent 443e0a77d8
commit 21279c7fb9
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ export function cleanDOM() {
$(document.activeElement).not("body").not(".no-blur").blur();
Discourse.set('notifyCount',0);
$('#discourse-modal').modal('hide');
Discourse.__container__.lookup('route:application').send('closeModal');
const hideDropDownFunction = $('html').data('hide-dropdown');
if (hideDropDownFunction) { hideDropDownFunction(); }