From 70fa4230268a422d0b7eef1ea223ca5cc1c14646 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Feb 2021 21:51:18 +0300 Subject: initial for RIP prototype/scriptaculous --- js/PrefFilterTree.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/PrefFilterTree.js') diff --git a/js/PrefFilterTree.js b/js/PrefFilterTree.js index e7d4efdc1..3d00c730c 100644 --- a/js/PrefFilterTree.js +++ b/js/PrefFilterTree.js @@ -80,14 +80,14 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio const items = tree.model.getCheckedItems(); const rv = []; - items.each(function (item) { + items.forEach(function (item) { rv.push(tree.model.store.getValue(item, 'bare_id')); }); return rv; }, reload: function() { - const user_search = $("filter_search"); + const user_search = App.byId("filter_search"); let search = ""; if (user_search) { search = user_search.value; } -- cgit v1.2.3