make linked tags work on opera - "parent" is apparently a reserved word
This commit is contained in:
parent
69cac0dd84
commit
52e65759bd
1 changed files with 5 additions and 3 deletions
|
@ -44,16 +44,18 @@ jQuery("#related-content")
|
||||||
"ajax" : {
|
"ajax" : {
|
||||||
"url": function(node) {
|
"url": function(node) {
|
||||||
//-1 is root
|
//-1 is root
|
||||||
parent = "";
|
parentparam = "";
|
||||||
if (node == -1 ) {
|
if (node == -1 ) {
|
||||||
node = <?php echo json_encode($currenttag); ?>;
|
node = <?php echo json_encode($currenttag); ?>;
|
||||||
parent = "&parent=true";
|
parentparam = "&parent=true";
|
||||||
} else if (node.attr('rel')) {
|
} else if (node.attr('rel')) {
|
||||||
node = node.attr('rel');
|
node = node.attr('rel');
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return "<?php echo ROOT ?>ajax/getlinkedtags.php?tag=" + node + parent;
|
|
||||||
|
return "<?php echo ROOT ?>ajax/getlinkedtags.php?tag=" + node
|
||||||
|
+ parentparam;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue