From: hickert Date: Wed, 30 Nov 2005 07:35:19 +0000 (+0000) Subject: Fixed javascript for pureftpAccount X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc472c03513a9e50e2941b695b5955b33c135679;p=gosa.git Fixed javascript for pureftpAccount git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2139 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/connectivity/class_pureftpdAccount.inc b/plugins/personal/connectivity/class_pureftpdAccount.inc index ee36f2ae0..1e5f7457f 100644 --- a/plugins/personal/connectivity/class_pureftpdAccount.inc +++ b/plugins/personal/connectivity/class_pureftpdAccount.inc @@ -53,7 +53,11 @@ class pureftpdAccount extends plugin $smarty->assign("fstate", ""); } else { $smarty->assign("pureftpdState", ""); - $smarty->assign("fstate", "disabled"); + if($_SESSION['js']==1){ + $smarty->assign("fstate", "disabled"); + }else{ + $smarty->assign("fstate", ""); + } } $smarty->assign("use_FTPStatus", ($this->FTPStatus == "disabled") ? "checked" : "");