Merge pull request #6827 from naikel/webui_filter_fix

Fix slow filtering in WebUI
This commit is contained in:
Mike Tzou 2017-05-24 00:02:22 +08:00 committed by GitHub
commit ced52e3269

View file

@ -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();
}