Skip to content

Commit

Permalink
Popups show in the correct manner
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesu committed Oct 5, 2011
1 parent d14125f commit 4d527ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/assets/javascripts/core.js
Expand Up @@ -124,7 +124,11 @@ function bindStatic() {

$('.PopupMenuWidgetAttachTo').click(function(evt) {
$(this).title = '';
$('#' + this.id + '_menu').toggle();
var menu = $('#' + this.id + '_menu');
if (menu.is(':hidden')) {
$('.PopupMenuWidgetDiv').hide();
}
menu.toggle();
});
}

Expand Down

0 comments on commit 4d527ab

Please sign in to comment.