]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
make linked tags work on opera - "parent" is apparently a reserved word
authorChristian Weiske <cweiske@cweiske.de>
Wed, 13 Oct 2010 17:18:42 +0000 (19:18 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 13 Oct 2010 17:18:42 +0000 (19:18 +0200)
data/templates/sidebar.block.linked.php

index 558059d7892ba9b6711cf009379e69de4b9e2c22..199cf4ccd77f973e2fbf766a87753298dfae8fb3 100644 (file)
@@ -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;
             }
         }
     },