aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2010-10-01 18:21:33 +0200
committerChristian Weiske <cweiske@cweiske.de>2010-10-01 18:21:33 +0200
commitcb1d41054b26c46c75f746a7d8e5bc28f32664f0 (patch)
tree7e9388cbc002d05973e7fdb7a4d876d3e5adefbb /data/templates
parent04d360dadbdcd492d3a1e5b7b6105007ad841987 (diff)
downloadsemanticscuttle-cb1d41054b26c46c75f746a7d8e5bc28f32664f0.tar.gz
semanticscuttle-cb1d41054b26c46c75f746a7d8e5bc28f32664f0.tar.bz2
make adminlinkedtags (menu2Tags) finally work with jquery
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/sidebar.block.menu2.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/data/templates/sidebar.block.menu2.php b/data/templates/sidebar.block.menu2.php
index 81ee121..dec520a 100644
--- a/data/templates/sidebar.block.menu2.php
+++ b/data/templates/sidebar.block.menu2.php
@@ -61,7 +61,22 @@ jQuery("#maintagsmenu")
"icons": true,
"url": '<?php echo ROOT ?>js/themes/default/style.css'
},
- plugins : [ "themes", "html_data"],
+ "json_data" : {
+ "ajax" : {
+ "url": function(node) {
+ //-1 is root
+ if (node == -1 ) {
+ node = "";
+ } else if (node.attr('rel')) {
+ node = node.attr('rel');
+ } else {
+ return;
+ }
+ return "<?php echo ROOT ?>ajax/getadminlinkedtags.php?tag=" + node;
+ }
+ }
+ },
+ plugins : [ "themes", "json_data"]
});
</script>
<?php