Browse Source

Added "Paused" filter to the Web UI too

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
2e51e69cc9
  1. 3
      src/webui/filters.html
  2. 1
      src/webui/scripts/client.js
  3. 7
      src/webui/scripts/dynamicTable.js

3
src/webui/filters.html

@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
<li id="all_filter"><a href="#" onclick="setFilter('all');"><img src="images/skin/filterall.png"/>_(All)</a></li>
<li id="downloading_filter"><a href="#" onclick="setFilter('downloading');"><img src="images/skin/downloading.png"/>_(Downloading)</a></li>
<li id="completed_filter"><a href="#" onclick="setFilter('completed');"><img src="images/skin/uploading.png"/>_(Completed)</a></li>
<li id="paused_filter"><a href="#" onclick="setFilter('paused');"><img src="images/skin/paused.png"/>_(Paused)</a></li>
<li id="active_filter"><a href="#" onclick="setFilter('active');"><img src="images/skin/filteractive.png"/>_(Active)</a></li>
<li id="inactive_filter"><a href="#" onclick="setFilter('inactive');"><img src="images/skin/filterinactive.png"/>_(Inactive)</a></li>
</ul>
@ -13,4 +14,4 @@ @@ -13,4 +14,4 @@
last_filter = 'all';
}
$(last_filter+'_filter').addClass('selectedFilter');
</script>
</script>

1
src/webui/scripts/client.js

@ -340,6 +340,7 @@ window.addEvent('load', function(){ @@ -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");

7
src/webui/scripts/dynamicTable.js

@ -203,6 +203,13 @@ var dynamicTable = new Class ({ @@ -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");

Loading…
Cancel
Save