Fixed: Admin:PageGroups create form did not init properly
authorDan
Fri, 28 Nov 2008 22:10:47 -0500
changeset 750 650924c35957
parent 749 ea3045a3bcbd
child 751 c1242466d061
Fixed: Admin:PageGroups create form did not init properly
plugins/admin/PageGroups.php
--- a/plugins/admin/PageGroups.php	Thu Nov 20 22:59:25 2008 -0500
+++ b/plugins/admin/PageGroups.php	Fri Nov 28 22:10:47 2008 -0500
@@ -255,8 +255,6 @@
           document.getElementById('pg_create_normal_2').style.display = 'block';
         }
         
-        addOnloadHook(pg_createform_init);
-        
         function pg_create_more_fields()
         {
           var targettd = document.getElementById('pg_create_normal_2');
@@ -414,6 +412,8 @@
             </div>';
       
       echo '</form>';
+      
+      echo '<script type="text/javascript">pg_createform_init();</script>';
       return;
     }
     else if ( isset($_POST['action']['del']) )