Move profile/edit javascript in .js files and activate PlWizard eye-candies
[platal.git] / templates / core / plwizard.tpl
index 095765d..a1ea50e 100644 (file)
@@ -38,6 +38,9 @@
                               $(".wiz_tab").removeClass("active");
                               $("#wiz_tab_" + id).addClass("active");
                               $(".wiz_content").html(data).fadeIn('normal');
+                              if (typeof wizPage_onLoad == 'function') {
+                                wizPage_onLoad(id);
+                              }
                             });
                       }
           });
   }
   {/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">