diff options
author | Christian Weiske <cweiske@cweiske.de> | 2010-10-13 19:18:42 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2010-10-13 19:18:42 +0200 |
commit | 52e65759bd8cd776b0b345910e182d29b7946879 (patch) | |
tree | 7238f701234453aae04a7631c830d3a91a8c2e6f /data | |
parent | 69cac0dd849cffc2f2eacda323d29c5fe06305c9 (diff) | |
download | semanticscuttle-52e65759bd8cd776b0b345910e182d29b7946879.tar.gz semanticscuttle-52e65759bd8cd776b0b345910e182d29b7946879.tar.bz2 |
make linked tags work on opera - "parent" is apparently a reserved word
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/sidebar.block.linked.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/data/templates/sidebar.block.linked.php b/data/templates/sidebar.block.linked.php index 558059d..199cf4c 100644 --- a/data/templates/sidebar.block.linked.php +++ b/data/templates/sidebar.block.linked.php @@ -44,16 +44,18 @@ jQuery("#related-content") "ajax" : { "url": function(node) { //-1 is root - parent = ""; + parentparam = ""; if (node == -1 ) { node = <?php echo json_encode($currenttag); ?>; - parent = "&parent=true"; + parentparam = "&parent=true"; } else if (node.attr('rel')) { node = node.attr('rel'); } else { return; } - return "<?php echo ROOT ?>ajax/getlinkedtags.php?tag=" + node + parent; + + return "<?php echo ROOT ?>ajax/getlinkedtags.php?tag=" + node + + parentparam; } } }, |