From 57a4f3ed192edfbbaa2d5dd90a5bc3d8dcea3c61 Mon Sep 17 00:00:00 2001 From: buinsky Date: Mon, 8 Dec 2014 00:46:07 +0300 Subject: [PATCH] Hide priority menu items when queueing is disabled --- src/webui/www/private/index.html | 15 ++++++++------- src/webui/www/public/scripts/client.js | 2 ++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html index de85d90f6..631cbddf2 100644 --- a/src/webui/www/private/index.html +++ b/src/webui/www/private/index.html @@ -98,13 +98,14 @@
  • _(Resume) _(Resume)
  • _(Pause) _(Pause)
  • _(Delete) _(Delete)
  • -
  • _(Priority) - +
  • + _(Priority) +
  • _(Limit download rate...) _(Limit download rate...)
  • _(Limit upload rate...) _(Limit upload rate...)
  • diff --git a/src/webui/www/public/scripts/client.js b/src/webui/www/public/scripts/client.js index 07b842486..0d13ab518 100644 --- a/src/webui/www/public/scripts/client.js +++ b/src/webui/www/public/scripts/client.js @@ -213,9 +213,11 @@ window.addEvent('load', function () { }); if (queueing_enabled) { $('queueingButtons').removeClass('invisible'); + $('queueingMenuItems').removeClass('invisible'); myTable.showPriority(); } else { $('queueingButtons').addClass('invisible'); + $('queueingMenuItems').addClass('invisible'); myTable.hidePriority(); }