Code

updated tabs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Mar 2010 14:49:51 +0000 (14:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Mar 2010 14:49:51 +0000 (14:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15804 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_tabs.inc

index a6a80070dc6f7be50cbdb8b42cdfc2b6694a31c5..5b4f68b0821e4148067106f63318bac4e50ac361 100644 (file)
@@ -184,9 +184,15 @@ class tabs
     }
   }
 
+
+  function is_modal_dialog()
+  {
+    return($this->by_object[$this->current]->is_modal_dialog());
+  }
+
   function gen_tabs()
   {
-    if($this->by_object[$this->current]->is_modal_dialog()) return("");
+    if($this->is_modal_dialog()) return("");
 
     $display = "\n  <div class='tabs'>";
     $display.= "\n    <ul>";
@@ -425,6 +431,13 @@ class tabs
     }
     return(TRUE);
   }
+
+  function setReadOnly($s = TRUE)
+  {
+    foreach($this->by_object as $name => $obj){
+      $this->by_object[$name]->read_only = $s;
+    }
+  }
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>