From 2a060a94562a2e1678f15d69a7e71e376325e9c1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Aug 2012 14:47:43 +0400 Subject: initial work on nested categories --- js/PrefFeedTree.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js') diff --git a/js/PrefFeedTree.js b/js/PrefFeedTree.js index 9e2ee0662..12c02c447 100644 --- a/js/PrefFeedTree.js +++ b/js/PrefFeedTree.js @@ -5,7 +5,7 @@ dojo.require("lib.CheckBoxTree"); dojo.require("dojo.data.ItemFileWriteStore"); dojo.declare("fox.PrefFeedStore", dojo.data.ItemFileWriteStore, { - + _saveEverything: function(saveCompleteCallback, saveFailedCallback, newFileContentString) { @@ -17,7 +17,7 @@ dojo.declare("fox.PrefFeedStore", dojo.data.ItemFileWriteStore, { load: saveCompleteCallback}); }, -}); +}); dojo.declare("fox.PrefFeedTree", lib.CheckBoxTree, { _createTreeNode: function(args) { @@ -42,7 +42,7 @@ dojo.declare("fox.PrefFeedTree", lib.CheckBoxTree, { this.tree.model.store.save(); }, getRowClass: function (item, opened) { - return (!item.error || item.error == '') ? "dijitTreeRow" : + return (!item.error || item.error == '') ? "dijitTreeRow" : "dijitTreeRow Error"; }, getIconClass: function (item, opened) { @@ -71,7 +71,7 @@ dojo.declare("fox.PrefFeedTree", lib.CheckBoxTree, { return ((id.match("CAT:") && position == "over") || (id.match("FEED:") && position != "over")); } else if (source_id.match("CAT:")) { - return ((id.match("CAT:") && position != "over") || + return ((id.match("CAT:") && !id.match("CAT:0")) || (id.match("root") && position == "over")); } }, -- cgit v1.2.3