From eec820774be5169f8544a8004c4ad08d17ae029f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Fri, 21 Dec 2012 19:34:18 +0000 Subject: [PATCH] Fix WebUI submenus closing upon mouse click --- deluge/ui/web/js/deluge-all/Menus.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deluge/ui/web/js/deluge-all/Menus.js b/deluge/ui/web/js/deluge-all/Menus.js index c8430b615..87fab1777 100644 --- a/deluge/ui/web/js/deluge-all/Menus.js +++ b/deluge/ui/web/js/deluge-all/Menus.js @@ -98,10 +98,12 @@ deluge.menus.torrent = new Ext.menu.Menu({ }, '-', { text: _('Options'), iconCls: 'icon-options', + hideOnClick: false, menu: new Ext.menu.Menu({ items: [{ text: _('D/L Speed Limit'), iconCls: 'x-deluge-downloading', + hideOnClick: false, menu: new Ext.menu.Menu({ items: [{ text: _('5 KiB/s') @@ -120,6 +122,7 @@ deluge.menus.torrent = new Ext.menu.Menu({ }, { text: _('U/L Speed Limit'), iconCls: 'x-deluge-seeding', + hideOnClick: false, menu: new Ext.menu.Menu({ items: [{ text: _('5 KiB/s') @@ -138,6 +141,7 @@ deluge.menus.torrent = new Ext.menu.Menu({ }, { text: _('Connection Limit'), iconCls: 'x-deluge-connections', + hideOnClick: false, menu: new Ext.menu.Menu({ items: [{ text: _('50') @@ -156,6 +160,7 @@ deluge.menus.torrent = new Ext.menu.Menu({ }, { text: _('Upload Slot Limit'), iconCls: 'icon-upload-slots', + hideOnClick: false, menu: new Ext.menu.Menu({ items: [{ text: _('0') @@ -180,6 +185,7 @@ deluge.menus.torrent = new Ext.menu.Menu({ }, '-', { text: _('Queue'), iconCls: 'icon-queue', + hideOnClick: false, menu: new Ext.menu.Menu({ items: [{ torrentAction: 'top',