diff --git a/src/webui/www/public/scripts/client.js b/src/webui/www/public/scripts/client.js index 69a931c1a..12022887e 100644 --- a/src/webui/www/public/scripts/client.js +++ b/src/webui/www/public/scripts/client.js @@ -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']); diff --git a/src/webui/www/public/scripts/dynamicTable.js b/src/webui/www/public/scripts/dynamicTable.js index 4d58e6719..9f3150bc5 100644 --- a/src/webui/www/public/scripts/dynamicTable.js +++ b/src/webui/www/public/scripts/dynamicTable.js @@ -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);