diff options
author | Andrew Dolgov <[email protected]> | 2021-02-18 21:51:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-18 21:51:18 +0300 |
commit | 70fa4230268a422d0b7eef1ea223ca5cc1c14646 (patch) | |
tree | a4dd25afda189691afbdeecc2f32c4ab09969e5e /js/PrefFeedTree.js | |
parent | 0b6a71f8eac719070747f22273f4bc7dee0526b6 (diff) |
initial for RIP prototype/scriptaculous
Diffstat (limited to 'js/PrefFeedTree.js')
-rw-r--r-- | js/PrefFeedTree.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/PrefFeedTree.js b/js/PrefFeedTree.js index e081e2e31..92194e037 100644 --- a/js/PrefFeedTree.js +++ b/js/PrefFeedTree.js @@ -126,7 +126,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b return (!item || this.model.store.getValue(item, 'type') == 'category') ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "feed-icon"; }, reload: function() { - const searchElem = $("feed_search"); + const searchElem = App.byId("feed_search"); const search = (searchElem) ? searchElem.value : ""; xhrPost("backend.php", { op: "pref-feeds", search: search }, (transport) => { @@ -228,7 +228,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b const items = tree.model.getCheckedItems(); const rv = []; - items.each(function (item) { + items.forEach(function (item) { if (item.id[0].match("CAT:")) rv.push(tree.model.store.getValue(item, 'bare_id')); }); @@ -262,7 +262,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b const items = tree.model.getCheckedItems(); const rv = []; - items.each(function (item) { + items.forEach(function (item) { if (item.id[0].match("FEED:")) rv.push(tree.model.store.getValue(item, 'bare_id')); }); @@ -304,7 +304,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b title: __("Edit Multiple Feeds"), getChildByName: function (name) { let rv = null; - this.getChildren().each( + this.getChildren().forEach( function (child) { if (child.name == name) { rv = child; @@ -329,7 +329,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b /* normalize unchecked checkboxes because [] is not serialized */ - Object.keys(query).each((key) => { + Object.keys(query).forEach((key) => { const val = query[key]; if (typeof val == "object" && val.length == 0) |