Code

Updated blocklists.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 May 2008 05:46:33 +0000 (05:46 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 8 May 2008 05:46:33 +0000 (05:46 +0000)
-Hide apply button if it is a new list
-Reninitalize tabs, if apply was pressed.

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

gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc
gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc
gosa-plugins/gofax/gofax/blocklists/generic.tpl

index a558a26c16de62b0b697571c1ff344a1b5c47f55..b240e542b8c9618bba5e07d8c872c8ec8e893a1c 100644 (file)
@@ -153,6 +153,7 @@ class blocklistGeneric extends plugin
     $smarty->assign("bases", $this->get_allowed_bases());
     $smarty->assign("types", array(BLOCK_LIST_SEND => _("send"), BLOCK_LIST_RECEIVE => _("receive")));
     $smarty->assign("type", $this->type);
+    $smarty->assign("dn", $this->dn);
     return($smarty->fetch(get_template_path('generic.tpl', TRUE)));
   }
 
index cfe2f55e12fd5728f53995f28c69b842f8f9433c..65b846e3ba89e1c112f1ab5118f8f252d8e22d11 100644 (file)
@@ -147,6 +147,12 @@ class blocklist extends plugin
           $this->dn= "";
           $this->dialog = NULL;
           session::un_set('objectinfo');
+        }else{
+
+          /* Reinitialize tab */
+          if($this->dialog instanceof tabs){
+            $this->dialog->re_init();
+          }
         }
       } else {
         /* Errors found, show message */
index 4a2c5f8b065972ab7260aa8d51cfde363c480fc2..05056c67a3c68310c71a9e6e31740805614e7521 100644 (file)
@@ -97,7 +97,9 @@
 
 <p class="plugbottom">
   <input type=submit name="edit_finish" style="width:80px" value="{msgPool type=okButton}">
-  <input type=submit name="edit_apply" value="{msgPool type=applyButton}">
+       {if $dn != "new"}
+         <input type=submit name="edit_apply" value="{msgPool type=applyButton}">
+       {/if}
   <input type=submit name="edit_cancel" value="{msgPool type=cancelButton}">
 </p>
 <input type='hidden' name='blocklist_posted' value="1">