aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-03-29 18:04:26 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-03-29 18:04:26 +0200
commitc7c702f54428a1c3569e90a6a58f879d575571cb (patch)
treeefcbf2063688974b4ec8d8da53df1561eb76ded4
parent407daf0bfa9cbb86078d8f5497a10c80e53963ce (diff)
downloadsemanticscuttle-c7c702f54428a1c3569e90a6a58f879d575571cb.tar.gz
semanticscuttle-c7c702f54428a1c3569e90a6a58f879d575571cb.tar.bz2
begin to fix dynamictags for xhtml compatibility
-rw-r--r--data/templates/dynamictags.inc.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/data/templates/dynamictags.inc.php b/data/templates/dynamictags.inc.php
index b18565b..62f5071 100644
--- a/data/templates/dynamictags.inc.php
+++ b/data/templates/dynamictags.inc.php
@@ -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