begin to fix dynamictags for xhtml compatibility

This commit is contained in:
Christian Weiske 2011-03-29 18:04:26 +02:00
parent 407daf0bfa
commit c7c702f544

View file

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