filter-tree: move external dojo/method to PrefFilterTree class

This commit is contained in:
Andrew Dolgov
2022-06-06 09:29:16 +03:00
parent 082b3386e9
commit 6436dd16f9
2 changed files with 10 additions and 9 deletions
-8
View File
@@ -703,14 +703,6 @@ class Pref_Filters extends Handler_Protected {
</div>
<div dojoType="fox.PrefFilterTree" id="filterTree" dndController="dijit.tree.dndSource"
betweenThreshold="5" model="filterModel" openOnClick="true">
<script type="dojo/method" event="onClick" args="item">
var id = String(item.id);
var bare_id = id.substr(id.indexOf(':')+1);
if (id.match('FILTER:')) {
Filters.edit(bare_id);
}
</script>
</div>
</div>
<?php PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TAB, "prefFilters") ?>