diff --git a/PrefFeedTree.js b/PrefFeedTree.js new file mode 100644 index 000000000..f8d1e7b15 --- /dev/null +++ b/PrefFeedTree.js @@ -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; + }, +}); + diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index f5afbb3e1..10b7462ec 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1046,15 +1046,14 @@ query=\"{id:'root'}\" rootId=\"root\" rootLabel=\"Feeds\" childrenAttrs=\"items\" checkboxStrict=\"false\" checkboxAll=\"false\"> -