Permalink
Browse files

Popups show in the correct manner

  • Loading branch information...
1 parent d14125f commit 4d527ab30fc2bf3624bf79e47dcc6d02b91cf494 @jamesu committed Oct 5, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/assets/javascripts/core.js
@@ -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();
});
}

0 comments on commit 4d527ab

Please sign in to comment.