mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:35:57 +00:00
experimental work on draggable pref feed tree
This commit is contained in:
16
PrefFeedTree.js
Normal file
16
PrefFeedTree.js
Normal file
@@ -0,0 +1,16 @@
|
||||
dojo.provide("fox.PrefFeedTree");
|
||||
|
||||
dojo.require("lib.CheckBoxTree");
|
||||
|
||||
dojo.declare("fox.PrefFeedTree", lib.CheckBoxTree, {
|
||||
checkItemAcceptance: function(target, source, position) {
|
||||
var item = dijit.getEnclosingWidget(target).item;
|
||||
|
||||
console.log(source.currentWidget);
|
||||
|
||||
var id = String(item.id);
|
||||
return (id.match("CAT:") || position != "over");
|
||||
return true;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user