From b9984c0ed6ed4086cec859a0366f3d71032fcd31 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 1 Dec 2018 18:05:20 +0300 Subject: revert wrong changes in prefs.js --- js/prefs.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'js/prefs.js') diff --git a/js/prefs.js b/js/prefs.js index bb547c113..59629955d 100755 --- a/js/prefs.js +++ b/js/prefs.js @@ -6,7 +6,7 @@ function notify_callback2(transport, sticky) { notify_info(transport.responseText, sticky); } -function Feeds.reload() { +function updateFeedList() { const user_search = $("feed_search"); let search = ""; @@ -324,7 +324,7 @@ function removeSelectedFeeds() { ids: sel_rows.toString() }; xhrPost("backend.php", query, () => { - Feeds.reload(); + updateFeedList(); }); } @@ -524,7 +524,7 @@ function editSelectedFeeds() { xhrPost("backend.php", query, () => { dialog.hide(); - Feeds.reload(); + updateFeedList(); }); } }, @@ -618,7 +618,7 @@ function selectTab(id, noupdate) { switch (id) { case "feedConfig": - Feeds.reload(); + updateFeedList(); break; case "filterConfig": updateFilterList(); @@ -782,7 +782,7 @@ function removeCategory(id, item) { xhrPost("backend.php", query, () => { notify(''); - Feeds.reload(); + updateFeedList(); }); } } @@ -798,7 +798,7 @@ function removeSelectedCategories() { ids: sel_rows.toString() }; xhrPost("backend.php", query, () => { - Feeds.reload(); + updateFeedList(); }); } } else { @@ -816,7 +816,7 @@ function createCategory() { xhrPost("backend.php", { op: "pref-feeds", method: "addCat", cat: title }, () => { notify(''); - Feeds.reload(); + updateFeedList(); }); } } @@ -847,7 +847,7 @@ function showInactiveFeeds() { xhrPost("backend.php", query, () => { notify(''); dialog.hide(); - Feeds.reload(); + updateFeedList(); }); } @@ -1037,7 +1037,7 @@ function resetFeedOrder() { notify_progress("Loading, please wait..."); xhrPost("backend.php", { op: "pref-feeds", method: "feedsortreset" }, () => { - Feeds.reload(); + updateFeedList(); }); } @@ -1045,7 +1045,7 @@ function resetCatOrder() { notify_progress("Loading, please wait..."); xhrPost("backend.php", { op: "pref-feeds", method: "catsortreset" }, () => { - Feeds.reload(); + updateFeedList(); }); } @@ -1057,7 +1057,7 @@ function editCat(id, item) { notify_progress("Loading, please wait..."); xhrPost("backend.php", { op: 'pref-feeds', method: 'renamecat', id: id, title: new_name }, () => { - Feeds.reload(); + updateFeedList(); }); } } @@ -1176,7 +1176,7 @@ function batchSubscribe() { xhrPost("backend.php", this.attr('value'), () => { notify(""); - Feeds.reload(); + updateFeedList(); dialog.hide(); }); } -- cgit v1.2.3