Code

Set defualt button to edit finish
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Sep 2005 06:38:17 +0000 (06:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 Sep 2005 06:38:17 +0000 (06:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1367 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/main.inc
plugins/admin/departments/main.inc
plugins/admin/groups/main.inc
plugins/admin/ogroups/main.inc

index 1688597f60c9219c643f5d3d3289f2de5145ab12..f805a956f19853bacecb95c384db6420f361449f 100644 (file)
@@ -48,6 +48,9 @@ if ($remove_lock){
 
        /* Show and save dialog */
        $display.= $output;
+       $display.= "<script language=\"JavaScript\" type=\"text/javascript\">
+                       document.mainform.edit_finish.focus();
+                       </script>";
        $_SESSION['applicationManagement']= $applicationManagement;
 }
 
index 33f071bb02ac34f05fccbcae77eb081ffcfd1e81..6e3629ed3b92c38919917aa84970cfb2d7af08f4 100644 (file)
@@ -48,7 +48,14 @@ if ($remove_lock){
 
        /* Show and save dialog */
        $department->save_object();
+
        $display.= $output;
+
+       $display.="<!-- Place cursor -->
+               <script language=\"JavaScript\" type=\"text/javascript\">
+               document.mainform.edit_finish.focus();
+               </script>";
+
        $_SESSION['department']= $department;
 }
 
index c3f8c58ad6ab8317bd7e8a224134a15201c8996a..7e6f574afefa1c398a63f747af12187d20ffa856 100644 (file)
@@ -44,6 +44,9 @@ if ($remove_lock){
   }
 
   $display.= $output;
+  $display.="<script language=\"JavaScript\" type=\"text/javascript\">
+              document.mainform.edit_finish.focus();
+             </script>";
 
   /* Reset requested? */
   if (isset($_GET['reset']) && $_GET['reset'] == 1){
index ae6fdc353ce7e5ecb158c22fdc99497630d1046a..d1a0b079c64a68ae86b56aa8eb75f1a02ff3fae4 100644 (file)
@@ -40,7 +40,9 @@ if (!$remove_lock){
   }
 
   $display.= $output;
-
+  $display.="<script language=\"JavaScript\" type=\"text/javascript\">
+                document.mainform.edit_finish.focus();
+                             </script>";
   /* Store changes  in session */
   $_SESSION['ogroup']= $ogroup;
 }