Browse Source

Merge pull request #7082 from Chocobo1/js

[WebUI] Fix value comparison
adaptive-webui-19844
Mike Tzou 7 years ago committed by GitHub
parent
commit
f345d0f136
  1. 2
      src/webui/www/public/scripts/client.js
  2. 2
      src/webui/www/public/scripts/dynamicTable.js

2
src/webui/www/public/scripts/client.js

@ -184,7 +184,7 @@ window.addEvent('load', function () { @@ -184,7 +184,7 @@ window.addEvent('load', function () {
var addTorrentToCategoryList = function(torrent) {
var category = torrent['category'];
if (category === null)
if (typeof category === 'undefined')
return false;
if (category.length === 0) { // Empty category
removeTorrentFromCategoryList(torrent['hash']);

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

@ -1039,7 +1039,7 @@ var TorrentsTable = new Class({ @@ -1039,7 +1039,7 @@ var TorrentsTable = new Class({
break;
case 'inactive':
inactive = true;
break;
// fallthrough
case 'active':
if (state == 'stalledDL')
r = (row['full_data'].upspeed > 0);

Loading…
Cancel
Save