From 34b00217bab2dde01291a27f829272ea3279ae4c Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Nov 2005 12:24:27 +0000 Subject: [PATCH] Fixed javascript git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2154 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/samba/class_sambaAccount.inc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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")); -- 2.30.2