]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
begin to fix dynamictags for xhtml compatibility
authorChristian Weiske <cweiske@cweiske.de>
Tue, 29 Mar 2011 16:04:26 +0000 (18:04 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 29 Mar 2011 16:04:26 +0000 (18:04 +0200)
data/templates/dynamictags.inc.php

index b18565ba714de7faf73de4789eff097c2d024a5d..62f50711ae021dc9edaeb547158aa689a437c9c4 100644 (file)
@@ -56,8 +56,8 @@ function writeTagsProposition($tagsCloud, $title) {
 
 
 if ($allPopularTagsCount > 0 || $userPopularTagsCount > 0 ) { ?>
-
 <script type="text/javascript">
+//<![CDATA[
 Array.prototype.contains = function (ele) {
     for (var i = 0; i < this.length; i++) {
         if (this[i] == ele) {
@@ -87,8 +87,7 @@ function addonload(addition) {
     }
 }
 
-addonload(
-    function () {
+jQuery(function($) {
         var taglist = document.getElementById('tags');
         var tags = taglist.value.split(', ');
         
@@ -99,8 +98,7 @@ addonload(
                 populartags[i].className = 'selected';
             }
         }
-    }
-);
+});
 
 function addTag(ele) {
     var thisTag = ele.innerHTML;
@@ -133,7 +131,7 @@ if( $allPopularTagsCount > 0) {
 
 
 ?>
-
+//]]>
 </script>
 
 <?php