From 03b2decab62eb0a3221569c26064fd8ee88c0a2c Mon Sep 17 00:00:00 2001 From: Naikel Aparicio Date: Sun, 21 May 2017 18:19:29 -0400 Subject: [PATCH] Fix slow filtering in WebUI. Fixup 7aadf644e0a0abd47b3f5fc749c2ea96b4ed45e3. --- src/webui/www/public/scripts/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/www/public/scripts/client.js b/src/webui/www/public/scripts/client.js index aff584627..bccc62446 100644 --- a/src/webui/www/public/scripts/client.js +++ b/src/webui/www/public/scripts/client.js @@ -107,7 +107,7 @@ window.addEvent('load', function () { selected_category = hash; localStorage.setItem('selected_category', selected_category); highlightSelectedCategory(); - if (typeof torrentsTable.table != 'undefined') + if (typeof torrentsTable.tableBody != 'undefined') updateMainData(); }; @@ -126,7 +126,7 @@ window.addEvent('load', function () { selected_filter = f; localStorage.setItem('selected_filter', f); // Reload torrents - if (typeof torrentsTable.table != 'undefined') + if (typeof torrentsTable.tableBody != 'undefined') updateMainData(); }