1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 04:35:55 +00:00

initial work on nested categories

This commit is contained in:
Andrew Dolgov
2012-08-13 14:47:43 +04:00
parent ee0bc6edd9
commit 2a060a9456
4 changed files with 247 additions and 31 deletions

View File

@@ -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"));
}
},