summaryrefslogtreecommitdiffstats
path: root/deluge/ui/web
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2018-11-02 11:51:43 +0000
committerCalum Lind <calumlind@gmail.com>2018-11-05 08:26:23 +0000
commit6655fe67c3728833e92152b216da89a211e28c0c (patch)
treee60a2a1caa43c3f4fed7e619a466355ea7b2ec02 /deluge/ui/web
parent2104b9831c08d53ea27b80ca98deb923f04e1e9d (diff)
downloaddeluge-6655fe67c3728833e92152b216da89a211e28c0c.tar.gz
deluge-6655fe67c3728833e92152b216da89a211e28c0c.tar.bz2
deluge-6655fe67c3728833e92152b216da89a211e28c0c.zip
[UI|Core] Fix problems with file priorities
- Fixed the core not correctly settings the current file_priority settings and added a test. - Fixed the console not setting file priorities. - Change the label for not downloading of a file to 'Skip'.
Diffstat (limited to 'deluge/ui/web')
-rw-r--r--deluge/ui/web/js/deluge-all/Deluge.js7
-rw-r--r--deluge/ui/web/js/deluge-all/Menus.js6
2 files changed, 7 insertions, 6 deletions
diff --git a/deluge/ui/web/js/deluge-all/Deluge.js b/deluge/ui/web/js/deluge-all/Deluge.js
index ce11bc5c4..31b9947cc 100644
--- a/deluge/ui/web/js/deluge-all/Deluge.js
+++ b/deluge/ui/web/js/deluge-all/Deluge.js
@@ -151,12 +151,13 @@ Ext.apply(Deluge, {
deluge.plugins = {};
// Hinting for gettext_gen.py
-// _('Ignore')
+// _('Skip')
// _('Low')
// _('Normal')
// _('High')
+// _('Mixed')
FILE_PRIORITY = {
- 0: 'Ignore',
+ 0: 'Skip',
1: 'Low',
2: 'Low',
3: 'Low',
@@ -165,7 +166,7 @@ FILE_PRIORITY = {
6: 'High',
7: 'High',
9: 'Mixed',
- Ignore: 0,
+ Skip: 0,
Low: 1,
Normal: 4,
High: 7,
diff --git a/deluge/ui/web/js/deluge-all/Menus.js b/deluge/ui/web/js/deluge-all/Menus.js
index f84646317..529c6cc66 100644
--- a/deluge/ui/web/js/deluge-all/Menus.js
+++ b/deluge/ui/web/js/deluge-all/Menus.js
@@ -361,10 +361,10 @@ deluge.menus.filePriorities = new Ext.menu.Menu({
},
'-',
{
- id: 'ignore',
- text: _('Ignore'),
+ id: 'skip',
+ text: _('Skip'),
iconCls: 'icon-do-not-download',
- filePriority: FILE_PRIORITY['Ignore'],
+ filePriority: FILE_PRIORITY['Skip'],
},
{
id: 'low',