From 84a73c34efd85f0d308a945b63dfb4a7b81eb648 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 23 Sep 2007 13:41:49 +0200 Subject: [PATCH] Fixes for IE Signed-off-by: Florent Bruneau --- templates/core/plwizard.tpl | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/templates/core/plwizard.tpl b/templates/core/plwizard.tpl index a1ea50e..7cdcceb 100644 --- a/templates/core/plwizard.tpl +++ b/templates/core/plwizard.tpl @@ -33,15 +33,26 @@ document.location = myUrl; }, success: function(data) { - $(".wiz_content").fadeOut('normal', - function() { - $(".wiz_tab").removeClass("active"); - $("#wiz_tab_" + id).addClass("active"); - $(".wiz_content").html(data).fadeIn('normal'); - if (typeof wizPage_onLoad == 'function') { - wizPage_onLoad(id); - } - }); + if (is_IE) { + $(".wiz_tab").removeClass("active"); + $("#wiz_tab_" + id).addClass("active"); + $(".wiz_content").html(data); + if (typeof wizPage_onLoad == 'function') { + wizPage_onLoad(id); + } + auto_links(); + } else { + $(".wiz_content").fadeOut('normal', + function() { + $(".wiz_tab").removeClass("active"); + $("#wiz_tab_" + id).addClass("active"); + $(".wiz_content").html(data).fadeIn('normal'); + if (typeof wizPage_onLoad == 'function') { + wizPage_onLoad(id); + } + auto_links(); + }); + } } }); return false; @@ -55,14 +66,6 @@ } {/literal} {/if} - {literal} - $(document).ready( - function() { - if (typeof wizPage_onLoad == 'function') { - wizPage_onLoad({/literal}'{$lookup[$current]}'{literal}); - } - }); - {/literal} //]]>
@@ -94,4 +97,12 @@
+ + {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} -- 2.1.4