don't output init() function when not used
authorchriskl <chriskl>
Wed, 23 Apr 2003 08:58:27 +0000 (08:58 +0000)
committerchriskl <chriskl>
Wed, 23 Apr 2003 08:58:27 +0000 (08:58 +0000)
indexes.php

index 1cef7c7b6810c95ccae4c672342bdf15ffb02909..1cb61d853f040186dd58d6d9d90ad3db1112f1ba 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List indexes on a table
         *
-        * $Id: indexes.php,v 1.10 2003/04/18 11:08:26 chriskl Exp $
+        * $Id: indexes.php,v 1.11 2003/04/23 08:58:27 chriskl Exp $
         */
 
        // Include application functions
 
        $misc->printHeader($lang['strindexes'], "<script src=\"indexes.js\" type=\"text/javascript\"></script>");
 
-       echo "<body onload=\"init();\">";
+       if ($action == 'create_index' || $action == 'save_create_index')
+               echo "<body onload=\"init();\">";
+       else
+               $misc->printBody();
        
        switch ($action) {
                case 'save_create_index':