return (!item.error || item.error == '') ? "dijitTreeRow" :
"dijitTreeRow Error";
},
- onClick: function (item) {
- var id = String(item.id);
- var bare_id = id.substr(id.indexOf(':')+1);
-
- if (id.match('FILTER:')) {
- editFilter(bare_id, event);
- }
- },
});
getIconClass: function (item, opened) {
return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible";
},
- onClick: function (item) {
- var id = String(item.id);
- var bare_id = id.substr(id.indexOf(':')+1);
-
- if (id.match('LABEL:')) {
- editLabel(bare_id, event);
- }
- },
});
var bare_id = id.substr(id.indexOf(':')+1);
if (id.match('FEED:')) {
- editFeed(bare_id, event);
+ editFeed(bare_id);
} else if (id.match('CAT:')) {
- editCat(bare_id, item, event);
+ editCat(bare_id, item);
}
</script>
<script type=\"dojo/method\" event=\"onLoad\" args=\"item\">
<script type=\"dojo/method\" event=\"onLoad\" args=\"item\">
Element.hide(\"filterlistLoading\");
</script>
+ <script type=\"dojo/method\" event=\"onClick\" args=\"item\">
+ var id = String(item.id);
+ var bare_id = id.substr(id.indexOf(':')+1);
+
+ if (id.match('FILTER:')) {
+ editFilter(bare_id);
+ }
+ </script>
+
</div>";
print "</div>"; #pane
<script type=\"dojo/method\" event=\"onLoad\" args=\"item\">
Element.hide(\"labellistLoading\");
</script>
+ <script type=\"dojo/method\" event=\"onClick\" args=\"item\">
+ var id = String(item.id);
+ var bare_id = id.substr(id.indexOf(':')+1);
+
+ if (id.match('LABEL:')) {
+ editLabel(bare_id);
+ }
+ </script>
</div>";
print "</div>"; #pane
}
-function editFilter(id, event) {
+function editFilter(id) {
try {
var query = "backend.php?op=pref-filters&subop=edit&id=" + param_escape(id);