From dc472c03513a9e50e2941b695b5955b33c135679 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Nov 2005 07:35:19 +0000 Subject: [PATCH] Fixed javascript for pureftpAccount git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2139 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/connectivity/class_pureftpdAccount.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" : ""); -- 2.30.2