summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-02 14:37:05 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-02 14:37:05 +0000
commit9ccf7873d47c7990bc1e01d5095554e3b9e23134 (patch)
tree4d3f1d455f099e5ad881094bb024b462d382c268
parent34645dd6e8291caa9c1538715783b971b7cfa24d (diff)
downloadsemanticscuttle-9ccf7873d47c7990bc1e01d5095554e3b9e23134.tar.gz
semanticscuttle-9ccf7873d47c7990bc1e01d5095554e3b9e23134.tar.bz2
Bug fix: correct dojo tree bug into IE6
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@241 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--ajax/getlinkedtags.php5
-rw-r--r--templates/dojo.inc.php2
2 files changed, 5 insertions, 2 deletions
diff --git a/ajax/getlinkedtags.php b/ajax/getlinkedtags.php
index c4110a2..a34805b 100644
--- a/ajax/getlinkedtags.php
+++ b/ajax/getlinkedtags.php
@@ -45,6 +45,7 @@ function displayTag($tag, $uId) {
foreach($linkedTags as $linkedTag) {
$output.= displayTag($linkedTag, $uId);
}
+ $output = substr($output, 0, -1); // remove final comma avoiding IE6 Dojo bug
$output.= "]";
}
@@ -56,6 +57,8 @@ function displayTag($tag, $uId) {
{ label: 'name', identifier: 'id', items: [
<?php
-echo displayTag(GET_TAG, GET_UID);
+$json = displayTag(GET_TAG, GET_UID);
+$json = substr($json, 0, -1); // remove final comma avoiding IE6 Dojo bug
+echo $json;
?>
] }
diff --git a/templates/dojo.inc.php b/templates/dojo.inc.php
index 1addfc1..16b22c6 100644
--- a/templates/dojo.inc.php
+++ b/templates/dojo.inc.php
@@ -24,7 +24,7 @@
<?php if (isset($loadjs)) :?>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/dojo.xd.js"
- djConfig="parseOnLoad:true, isDebug:<?php echo DEBUG_MODE?'true':'false' ?>, usePlainJson:true, baseUrl: '<?php echo ROOT ?>', modulePaths: {'js': 'includes/js'},"></script>
+ djConfig="parseOnLoad:true, isDebug:<?php echo DEBUG_MODE?'true':'false' ?>, usePlainJson:true, baseUrl: '<?php echo ROOT ?>', modulePaths: {'js': 'includes/js'}"></script>
<script type="text/javascript">
dojo.require("dojo.parser");