Skip to content

Commit

Permalink
update old code
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoh committed Sep 9, 2014
1 parent 67be3b1 commit abf9b6b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contextmenu.js
Expand Up @@ -473,10 +473,13 @@ function rcube_context_menu(p) {

if (ref.mouseover_timeout > -1 && !ref.is_submenu) {
a.mouseover(function(e) {
ref.timers['submenu_hide'] = window.setTimeout(function() {
ref.timers['submenu_hide'] = window.setTimeout(function(e) {
$('div.rcmsubmenu').hide();
$('#folder-selector').hide();
}, ref.mouseover_timeout);
// hide any other open menus
for (var i = 0; i < rcmail.menu_stack.length; i++) {
rcmail.hide_menu(rcmail.menu_stack[i], e);
}
}, ref.mouseover_timeout, e);
});

a.mouseout(function(e) { clearTimeout(ref.timers['submenu_hide']); });
Expand Down

0 comments on commit abf9b6b

Please sign in to comment.