From ac1ad4187cbc8e4301921ce81fea8d8973f39ebd Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sat, 3 Oct 2009 15:52:04 -0700 Subject: [PATCH] Fixed the issue with IE. There were two problems the first being IE would set the font-size parameter in the CSS to be FONT-SIZE and the tagcloud.swf would only look for the lower case version. The second being tha for some reason IE would return huge font-sizes from the .css call. --- modules/tag_cloud/helpers/tag_cloud_block.php | 4 +-- modules/tag_cloud/js/tag_cloud.js | 26 ++++++++----------- .../tag_cloud/views/tag_cloud_block.html.php | 2 +- 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/modules/tag_cloud/helpers/tag_cloud_block.php b/modules/tag_cloud/helpers/tag_cloud_block.php index 59d40bf4..45b4ab66 100644 --- a/modules/tag_cloud/helpers/tag_cloud_block.php +++ b/modules/tag_cloud/helpers/tag_cloud_block.php @@ -40,13 +40,13 @@ class tag_cloud_block { $options["bgColor"] = $value; break; case "transparent": - $options["wmode"] = "\"transparent\""; + $options["wmode"] = "transparent"; break; case "speed": $options["tspeed"] = $value; break; case "distribution": - $options["distr"] = "\"true\""; + $options["distr"] = "true"; break; } } diff --git a/modules/tag_cloud/js/tag_cloud.js b/modules/tag_cloud/js/tag_cloud.js index 4648da7f..d7226e2c 100644 --- a/modules/tag_cloud/js/tag_cloud.js +++ b/modules/tag_cloud/js/tag_cloud.js @@ -41,7 +41,7 @@ var tags = document.createElement("tags"); $("#gTagCloud a").each(function(i) { var addr = $(this).clone(); - $(addr).attr("style", "font-size:" + $(this).css("fontSize") + ";"); + $(addr).attr("style", "font-size: 14pt;"); $(tags).append(addr); }); @@ -52,32 +52,28 @@ distr: self.options.distr, tspeed: self.options.tspeed, hicolor: self.options.hicolor, - tagcloud: escape("" + $(tags).html() + "") + tagcloud: escape("" + $(tags).html() + "").toLowerCase() }; var params = { - bgColor: self.options.bgColor, + bgcolor: self.options.bgColor, wmode: self.options.wmode, - allowscriptaccess: self.options.scriptAccess, - swliveconnect: true + allowscriptaccess: self.options.scriptAccess }; - var attributes = { - id: "gTagCloud3D" - }; - swfobject.embedSWF(self.options.movie, "gTagCloud", width, .75 * width, "9.0.0", false, - flashvars, params, attributes); + swfobject.embedSWF(self.options.movie, "gTagCloud", width, .75 * width, "9", false, + flashvars, params); } }); $.extend($.ui.gallery_tag_cloud, { defaults: { - bgColor: 0xFFFFFF, + bgColor: "0xFFFFFF", wmode: "transparent", scriptAccess: "always", - tcolor: 0x333333, - tcolor2: 0x009900, - hicolor: 0x000000, - tspeed: 100, + tcolor: "0x333333", + tcolor2: "0x009900", + hicolor: "0x000000", + tspeed: "100", distr: "true", mode: "tag" } diff --git a/modules/tag_cloud/views/tag_cloud_block.html.php b/modules/tag_cloud/views/tag_cloud_block.html.php index b9ae7040..4493ea16 100644 --- a/modules/tag_cloud/views/tag_cloud_block.html.php +++ b/modules/tag_cloud/views/tag_cloud_block.html.php @@ -4,7 +4,7 @@ $("#gTag").gallery_tag_cloud({ movie: "" $value) : ?> - , : + , : "" }); });