From 2e51e69cc92c99a4c18464398658b9d8ef4fa1d4 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 24 May 2010 19:05:07 +0000 Subject: [PATCH] Added "Paused" filter to the Web UI too --- src/webui/filters.html | 3 ++- src/webui/scripts/client.js | 1 + src/webui/scripts/dynamicTable.js | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/webui/filters.html b/src/webui/filters.html index 7f4e1b682..1461d989d 100644 --- a/src/webui/filters.html +++ b/src/webui/filters.html @@ -2,6 +2,7 @@
  • _(All)
  • _(Downloading)
  • _(Completed)
  • +
  • _(Paused)
  • _(Active)
  • _(Inactive)
  • @@ -13,4 +14,4 @@ last_filter = 'all'; } $(last_filter+'_filter').addClass('selectedFilter'); - \ No newline at end of file + diff --git a/src/webui/scripts/client.js b/src/webui/scripts/client.js index be0fe48f6..8d99793e5 100644 --- a/src/webui/scripts/client.js +++ b/src/webui/scripts/client.js @@ -340,6 +340,7 @@ window.addEvent('load', function(){ $("all_filter").removeClass("selectedFilter"); $("downloading_filter").removeClass("selectedFilter"); $("completed_filter").removeClass("selectedFilter"); + $("paused_filter").removeClass("selectedFilter"); $("active_filter").removeClass("selectedFilter"); $("inactive_filter").removeClass("selectedFilter"); $(f+"_filter").addClass("selectedFilter"); diff --git a/src/webui/scripts/dynamicTable.js b/src/webui/scripts/dynamicTable.js index 7920b4e07..265598c73 100644 --- a/src/webui/scripts/dynamicTable.js +++ b/src/webui/scripts/dynamicTable.js @@ -203,6 +203,13 @@ var dynamicTable = new Class ({ tr.addClass("invisible"); } break; + case 'paused': + if(status == "pausedDL" || status == "pausedUP") { + tr.removeClass("invisible"); + } else { + tr.addClass("invisible"); + } + break; case 'active': if(status == "downloading" || status == "uploading") { tr.removeClass("invisible");