FIX: Modals weren't closing when routing to raw links

This commit is contained in:
Robin Ward 2014-05-11 15:39:00 -04:00
parent 2bb63ffb38
commit 948ebf2201
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ Discourse.Route.reopenClass({
$(document.activeElement).blur();
Discourse.set('notifyCount',0);
$('#discourse-modal').modal('hide');
var hideDropDownFunction = $('html').data('hide-dropdown');
if (hideDropDownFunction) { hideDropDownFunction(); }
},