Fix Webui files-tab menu setting wrong priority

This commit is contained in:
Calum Lind 2011-11-21 21:50:54 +00:00
commit 05f30b58c1

View file

@ -1,6 +1,6 @@
/*! /*!
* Deluge.Menus.js * Deluge.Menus.js
* *
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com> * Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -34,7 +34,7 @@ deluge.menus = {
onTorrentAction: function(item, e) { onTorrentAction: function(item, e) {
var ids = deluge.torrents.getSelectedIds(); var ids = deluge.torrents.getSelectedIds();
var action = item.initialConfig.torrentAction; var action = item.initialConfig.torrentAction;
switch (action) { switch (action) {
case 'pause': case 'pause':
case 'resume': case 'resume':
@ -69,7 +69,7 @@ deluge.menus = {
break; break;
case 'recheck': case 'recheck':
deluge.client.core.force_recheck(ids, { deluge.client.core.force_recheck(ids, {
success: function() { success: function() {
deluge.ui.update(); deluge.ui.update();
} }
}); });
@ -250,21 +250,21 @@ deluge.menus.filePriorities = new Ext.menu.Menu({
id: 'no_download', id: 'no_download',
text: _('Do Not Download'), text: _('Do Not Download'),
iconCls: 'icon-do-not-download', iconCls: 'icon-do-not-download',
filePriority: 0 filePriority: FILE_PRIORITY['Do Not Download']
}, { }, {
id: 'normal', id: 'normal',
text: _('Normal Priority'), text: _('Normal Priority'),
iconCls: 'icon-normal', iconCls: 'icon-normal',
filePriority: 1 filePriority: FILE_PRIORITY['Normal Priority']
}, { }, {
id: 'high', id: 'high',
text: _('High Priority'), text: _('High Priority'),
iconCls: 'icon-high', iconCls: 'icon-high',
filePriority: 2 filePriority: FILE_PRIORITY['High Priority']
}, { }, {
id: 'highest', id: 'highest',
text: _('Highest Priority'), text: _('Highest Priority'),
iconCls: 'icon-highest', iconCls: 'icon-highest',
filePriority: 5 filePriority: FILE_PRIORITY['Highest Priority']
}] }]
}); });