From 05e542a41fc136accff6e2f63ab79013e11dd595 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 8 May 2008 05:46:33 +0000 Subject: [PATCH] Updated blocklists. -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 --- .../gofax/gofax/blocklists/class_blocklistGeneric.inc | 1 + .../gofax/gofax/blocklists/class_blocklistManagement.inc | 6 ++++++ gosa-plugins/gofax/gofax/blocklists/generic.tpl | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc index a558a26c1..b240e542b 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistGeneric.inc @@ -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))); } diff --git a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc index cfe2f55e1..65b846e3b 100644 --- a/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc +++ b/gosa-plugins/gofax/gofax/blocklists/class_blocklistManagement.inc @@ -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 */ diff --git a/gosa-plugins/gofax/gofax/blocklists/generic.tpl b/gosa-plugins/gofax/gofax/blocklists/generic.tpl index 4a2c5f8b0..05056c67a 100644 --- a/gosa-plugins/gofax/gofax/blocklists/generic.tpl +++ b/gosa-plugins/gofax/gofax/blocklists/generic.tpl @@ -97,7 +97,9 @@

- + {if $dn != "new"} + + {/if}

-- 2.30.2