summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b9184b9)
raw | patch | inline | side by side (parent: b9184b9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 8 May 2008 05:46:33 +0000 (05:46 +0000) | ||
committer | hickert <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
-Reninitalize tabs, if apply was pressed.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10834 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc
index a558a26c16de62b0b697571c1ff344a1b5c47f55..b240e542b8c9618bba5e07d8c872c8ec8e893a1c 100644 (file)
$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)));
}
diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc
index cfe2f55e12fd5728f53995f28c69b842f8f9433c..65b846e3ba89e1c112f1ab5118f8f252d8e22d11 100644 (file)
$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 */
diff --git a/gosa-plugins/gofax/gofax/blocklists/generic.tpl b/gosa-plugins/gofax/gofax/blocklists/generic.tpl
index 4a2c5f8b065972ab7260aa8d51cfde363c480fc2..05056c67a3c68310c71a9e6e31740805614e7521 100644 (file)
<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">