Fix WebUI submenus closing upon mouse click

This commit is contained in:
Calum Lind 2012-12-21 19:34:18 +00:00
parent 8cbdaffedb
commit eec820774b

View File

@ -98,10 +98,12 @@ deluge.menus.torrent = new Ext.menu.Menu({
}, '-', { }, '-', {
text: _('Options'), text: _('Options'),
iconCls: 'icon-options', iconCls: 'icon-options',
hideOnClick: false,
menu: new Ext.menu.Menu({ menu: new Ext.menu.Menu({
items: [{ items: [{
text: _('D/L Speed Limit'), text: _('D/L Speed Limit'),
iconCls: 'x-deluge-downloading', iconCls: 'x-deluge-downloading',
hideOnClick: false,
menu: new Ext.menu.Menu({ menu: new Ext.menu.Menu({
items: [{ items: [{
text: _('5 KiB/s') text: _('5 KiB/s')
@ -120,6 +122,7 @@ deluge.menus.torrent = new Ext.menu.Menu({
}, { }, {
text: _('U/L Speed Limit'), text: _('U/L Speed Limit'),
iconCls: 'x-deluge-seeding', iconCls: 'x-deluge-seeding',
hideOnClick: false,
menu: new Ext.menu.Menu({ menu: new Ext.menu.Menu({
items: [{ items: [{
text: _('5 KiB/s') text: _('5 KiB/s')
@ -138,6 +141,7 @@ deluge.menus.torrent = new Ext.menu.Menu({
}, { }, {
text: _('Connection Limit'), text: _('Connection Limit'),
iconCls: 'x-deluge-connections', iconCls: 'x-deluge-connections',
hideOnClick: false,
menu: new Ext.menu.Menu({ menu: new Ext.menu.Menu({
items: [{ items: [{
text: _('50') text: _('50')
@ -156,6 +160,7 @@ deluge.menus.torrent = new Ext.menu.Menu({
}, { }, {
text: _('Upload Slot Limit'), text: _('Upload Slot Limit'),
iconCls: 'icon-upload-slots', iconCls: 'icon-upload-slots',
hideOnClick: false,
menu: new Ext.menu.Menu({ menu: new Ext.menu.Menu({
items: [{ items: [{
text: _('0') text: _('0')
@ -180,6 +185,7 @@ deluge.menus.torrent = new Ext.menu.Menu({
}, '-', { }, '-', {
text: _('Queue'), text: _('Queue'),
iconCls: 'icon-queue', iconCls: 'icon-queue',
hideOnClick: false,
menu: new Ext.menu.Menu({ menu: new Ext.menu.Menu({
items: [{ items: [{
torrentAction: 'top', torrentAction: 'top',