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

fix drag and drop changing of categories; fix empty categories using wrong icon class

This commit is contained in:
Andrew Dolgov
2010-11-18 18:25:27 +03:00
parent f0259baf13
commit e8c20f9262
2 changed files with 31 additions and 11 deletions

View File

@@ -36,7 +36,7 @@ dojo.declare("fox.PrefFeedTree", lib.CheckBoxTree, {
"dijitTreeRow Error";
},
getIconClass: function (item, opened) {
return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "feedIcon";
return (!item || this.model.store.getValue(item, 'type') == 'category') ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "feedIcon";
},
checkItemAcceptance: function(target, source, position) {
var item = dijit.getEnclosingWidget(target).item;