From: hickert Date: Wed, 30 Nov 2005 12:24:27 +0000 (+0000) Subject: Fixed javascript X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34b00217bab2dde01291a27f829272ea3279ae4c;p=gosa.git Fixed javascript git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2154 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index 5237cc925..0dc554579 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -475,10 +475,15 @@ class sambaAccount extends plugin $smarty->assign("reconnmode", $this->mungedObject->getReConn()); $smarty->assign("reconnACL", chkacl($this->acl,"reconn")); - /* Set form elements to disabled/enable state */ - $smarty->assign("tsloginstate", $this->mungedObject->getTsLogin()?"":"disabled"); - $smarty->assign("inheritstate", $this->mungedObject->getInheritMode()?"disabled":""); - + if($_SESSION['js']){ + /* Set form elements to disabled/enable state */ + $smarty->assign("tsloginstate", $this->mungedObject->getTsLogin()?"":"disabled"); + $smarty->assign("inheritstate", $this->mungedObject->getInheritMode()?"disabled":""); + }else{ + $smarty->assign("tsloginstate", ""); + $smarty->assign("inheritstate", ""); + } + /* Set checkboxes to checked or unchecked state */ $smarty->assign("tslogin", $this->mungedObject->getTsLogin()?"checked":""); $smarty->assign("tsloginACL", chkacl($this->acl,"tslogin"));