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\"> -
- -
"; /* diff --git a/prefs.js b/prefs.js index e4e002c13..42f51087d 100644 --- a/prefs.js +++ b/prefs.js @@ -1175,8 +1175,10 @@ function init() { dojo.require("dijit.tree.dndSource"); dojo.registerModulePath("lib", ".."); + dojo.registerModulePath("fox", "../.."); dojo.require("lib.CheckBoxTree"); + dojo.require("fox.PrefFeedTree"); loading_set_progress(30);