Fix Webui files-tab menu setting wrong priority

This commit is contained in:
Calum Lind 2011-11-21 21:50:54 +00:00
parent a932767545
commit 05f30b58c1
1 changed files with 7 additions and 7 deletions

View File

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