Code

Added default button to edit_finish
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Sep 2005 06:37:46 +0000 (06:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Sep 2005 06:37:46 +0000 (06:37 +0000)
Mysql_close moved to end of funtion

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1366 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/users/class_userManagement.inc
plugins/admin/users/main.inc

index fe485e2a922fde56be44ab3aafafb516d4cc6196..e39db69e9cef853db56373d5411b99b4d94cfbe8 100644 (file)
@@ -788,7 +788,6 @@ class userManagement extends plugin
               $fonac = preg_replace("/%title%/", $connected, $fonac);
             }
           }
-        mysql_close($r_con);
         }
       }else{
         $fonac=$empty;
@@ -897,6 +896,7 @@ class userManagement extends plugin
     $smarty->assign("alphabet", generate_alphabet());
     $smarty->assign("hint", print_sizelimit_warning());
 
+    @mysql_close($r_con);
     return ($smarty->fetch(get_template_path('headpage.tpl', TRUE)));
   }
 
index 465ea979e239bb59e9a284e5de78a03e8f148504..975a0ba9f97fb7c376655b810ddb21de31c3c686 100644 (file)
@@ -48,6 +48,11 @@ if ($remove_lock){
 
   /* Generate dialog output */
   $display.= $output;
+  $display.="<!-- Place cursor -->
+             <script language=\"JavaScript\" type=\"text/javascript\">
+              document.mainform.edit_finish.select();
+              document.mainform.edit_finish.focus();
+             </script>";
 
   /* Reset requested? */
   if (isset($_GET['reset']) && $_GET['reset'] == 1){