Code

Hide tabs buttons if there is a subdialog open
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Apr 2006 10:28:52 +0000 (10:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 28 Apr 2006 10:28:52 +0000 (10:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3165 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/departments/class_departmentGeneric.inc
plugins/admin/departments/class_departmentManagement.inc

index 60d4bc379d3c1ff935ddfa66f79a96cc6dbb9e4c..bf6b7e8214032aa70628a0a9c98036d2b5dfd10d 100644 (file)
@@ -87,7 +87,6 @@ class department extends plugin
                $this->config->make_idepartments();
                $smarty= get_smarty();
 
-
                /* Base select dialog */
                $once = true;
                foreach($_POST as $name => $value){
index 0969bbf50dabe1319306ee28f2b41fe45fefa3cc..eb578897611b817ab99b300388d9ab0001d7dba3 100644 (file)
@@ -367,13 +367,13 @@ class departmentManagement extends plugin
 
                /* Show main page (tabs) */
                $display= $this->deptabs->execute();
-
-               $display.= "<p style=\"text-align:right\">\n";
-               $display.= "<input type=submit name=\"edit_finish\" value=\""._("Save")."\">\n";
-               $display.= "&nbsp;\n";
-               $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
-               $display.= "</p>";
-
+               if (!$this->deptabs->by_object[$this->deptabs->current]->dialog){
+                       $display.= "<p style=\"text-align:right\">\n";
+                       $display.= "<input type=submit name=\"edit_finish\" value=\""._("Save")."\">\n";
+                       $display.= "&nbsp;\n";
+                       $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
+                       $display.= "</p>";
+               }
                return ($display);
        }