From: hickert Date: Wed, 30 Nov 2005 07:50:26 +0000 (+0000) Subject: Fixed js for proxy account X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3e46c9ead4ab2a4947e2efa7423ee6d60e285941;p=gosa.git Fixed js for proxy account git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2140 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/connectivity/class_proxyAccount.inc b/plugins/personal/connectivity/class_proxyAccount.inc index 036798990..bc50bb78e 100644 --- a/plugins/personal/connectivity/class_proxyAccount.inc +++ b/plugins/personal/connectivity/class_proxyAccount.inc @@ -37,18 +37,11 @@ class proxyAccount extends plugin /* Prepare templating */ $smarty= get_smarty(); - $smarty->assign("proxyAccountACL", chkacl($this->acl, "proxyAccount")); - $smarty->assign("gosaProxyAcctFlagsACL", chkacl($this->acl, "gosaProxyAcctFlags")); + $smarty->assign("proxyAccountACL", chkacl($this->acl, "proxyAccount")); + $smarty->assign("gosaProxyAcctFlagsACL", chkacl($this->acl, "gosaProxyAcctFlags")); $smarty->assign("gosaProxyWorkingStartACL", chkacl($this->acl, "gosaProxyWorkingStart")); - $smarty->assign("gosaProxyWorkingStopACL", chkacl($this->acl, "gosaProxyWorkingStop")); - $smarty->assign("gosaProxyQuotaACL", chkacl($this->acl, "gosaProxyQuota")); - - /* Show checkbox? */ - if ($this->parent != NULL){ - $smarty->assign("tabbed", "1"); - } else { - $smarty->assign("tabbed", "0"); - } + $smarty->assign("gosaProxyWorkingStopACL", chkacl($this->acl, "gosaProxyWorkingStop")); + $smarty->assign("gosaProxyQuotaACL", chkacl($this->acl, "gosaProxyQuota")); /* Assign radio boxes */ foreach (array("F", "T", "B", "N") as $val){ @@ -62,7 +55,11 @@ class proxyAccount extends plugin $smarty->assign("filter$val", ""); /* Same as above */ - $smarty->assign($val."state", "disabled"); + if($_SESSION['js']==1){ + $smarty->assign($val."state", "disabled"); + }else{ + $smarty->assign($val."state", ""); + } } } @@ -196,6 +193,12 @@ class proxyAccount extends plugin } } + if(isset($_POST['proxy'])){ + $this->is_account = TRUE; + }else{ + $this->is_account = FALSE; + } + /* Save flag value */ if ($this->is_account){ if (chkacl ($this->acl, "gosaProxyAcctFlags") == ""){ diff --git a/plugins/personal/connectivity/proxy.tpl b/plugins/personal/connectivity/proxy.tpl index 4cfc13e84..f7405d3af 100644 --- a/plugins/personal/connectivity/proxy.tpl +++ b/plugins/personal/connectivity/proxy.tpl @@ -2,6 +2,7 @@