Browse Source

Remove default case, fix #8302

adaptive-webui-19844
Tom Piccirello 7 years ago committed by Thomas Piccirello
parent
commit
ebea0d91af
  1. 6
      src/webui/www/public/scripts/dynamicTable.js

6
src/webui/www/public/scripts/dynamicTable.js

@ -776,7 +776,7 @@ var TorrentsTable = new Class({ @@ -776,7 +776,7 @@ var TorrentsTable = new Class({
// state_icon
this.columns['state_icon'].updateTd = function (td, row) {
var state = this.getRowValue(row);
// normalize states
switch (state) {
case "forcedDL":
case "metaDL":
@ -805,11 +805,11 @@ var TorrentsTable = new Class({ @@ -805,11 +805,11 @@ var TorrentsTable = new Class({
state = "checking";
break;
case "unknown":
case "error":
case "missingFiles":
default:
state = "error";
break;
default:
break; // do nothing
}
var img_path = 'images/skin/' + state + '.png';

Loading…
Cancel
Save