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
This commit is contained in:
parent
34645dd6e8
commit
9ccf7873d4
2 changed files with 5 additions and 2 deletions
|
@ -45,6 +45,7 @@ function displayTag($tag, $uId) {
|
||||||
foreach($linkedTags as $linkedTag) {
|
foreach($linkedTags as $linkedTag) {
|
||||||
$output.= displayTag($linkedTag, $uId);
|
$output.= displayTag($linkedTag, $uId);
|
||||||
}
|
}
|
||||||
|
$output = substr($output, 0, -1); // remove final comma avoiding IE6 Dojo bug
|
||||||
$output.= "]";
|
$output.= "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,6 +57,8 @@ function displayTag($tag, $uId) {
|
||||||
|
|
||||||
{ label: 'name', identifier: 'id', items: [
|
{ label: 'name', identifier: 'id', items: [
|
||||||
<?php
|
<?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;
|
||||||
?>
|
?>
|
||||||
] }
|
] }
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<?php if (isset($loadjs)) :?>
|
<?php if (isset($loadjs)) :?>
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="http://ajax.googleapis.com/ajax/libs/dojo/1.2/dojo/dojo.xd.js"
|
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">
|
<script type="text/javascript">
|
||||||
dojo.require("dojo.parser");
|
dojo.require("dojo.parser");
|
||||||
|
|
Loading…
Reference in a new issue