Browse Source

Merge pull request #6827 from naikel/webui_filter_fix

Fix slow filtering in WebUI
adaptive-webui-19844
Mike Tzou 8 years ago committed by GitHub
parent
commit
ced52e3269
  1. 4
      src/webui/www/public/scripts/client.js

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

@ -107,7 +107,7 @@ window.addEvent('load', function () {
selected_category = hash; selected_category = hash;
localStorage.setItem('selected_category', selected_category); localStorage.setItem('selected_category', selected_category);
highlightSelectedCategory(); highlightSelectedCategory();
if (typeof torrentsTable.table != 'undefined') if (typeof torrentsTable.tableBody != 'undefined')
updateMainData(); updateMainData();
}; };
@ -126,7 +126,7 @@ window.addEvent('load', function () {
selected_filter = f; selected_filter = f;
localStorage.setItem('selected_filter', f); localStorage.setItem('selected_filter', f);
// Reload torrents // Reload torrents
if (typeof torrentsTable.table != 'undefined') if (typeof torrentsTable.tableBody != 'undefined')
updateMainData(); updateMainData();
} }

Loading…
Cancel
Save