Fixes for IE
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 23 Sep 2007 11:41:49 +0000 (13:41 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 23 Sep 2007 11:41:49 +0000 (13:41 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
templates/core/plwizard.tpl

index a1ea50e..7cdcceb 100644 (file)
                       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;
   }
   {/literal}
   {/if}
-  {literal}
-  $(document).ready(
-    function() {
-      if (typeof wizPage_onLoad == 'function') {
-        wizPage_onLoad({/literal}'{$lookup[$current]}'{literal});
-      }
-    });
-  {/literal}
 //]]></script>
 
 <div class="wizard" style="clear: both">
   </div>
 </div>
 
+<script type="text/javascript">
+{literal}
+if (typeof wizPage_onLoad == 'function') {
+    wizPage_onLoad({/literal}'{$lookup[$current]}'{literal});
+}
+{/literal}
+</script>
+
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}