Updated Branches: refs/heads/LDAP-UI 2b3e23f6c -> ff9d62a8e
LDAP UI front end complete Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/ff9d62a8 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/ff9d62a8 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/ff9d62a8 Branch: refs/heads/LDAP-UI Commit: ff9d62a8ed779597e1294937a79f2a47638215e1 Parents: 2b3e23f Author: Pranav Saxena <[email protected]> Authored: Fri Feb 15 17:00:59 2013 +0530 Committer: Pranav Saxena <[email protected]> Committed: Fri Feb 15 17:00:59 2013 +0530 ---------------------------------------------------------------------- ui/scripts/globalSettings.js | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/ff9d62a8/ui/scripts/globalSettings.js ---------------------------------------------------------------------- diff --git a/ui/scripts/globalSettings.js b/ui/scripts/globalSettings.js index 9ede313..e946149 100644 --- a/ui/scripts/globalSettings.js +++ b/ui/scripts/globalSettings.js @@ -150,8 +150,8 @@ }, port: { label: 'Port' , defaultValue: '389' }, - truststore:{ label:'Trust Store' , isHidden:true }, - truststorepassword:{ label:'Trust Store Password' ,isHidden:true } + truststore:{ label:'Trust Store' , isHidden:true , dependsOn:'ssl' }, + truststorepassword:{ label:'Trust Store Password' ,isHidden:true , dependsOn:'ssl'} } @@ -160,11 +160,6 @@ action:function(args) { - var $form = $(this).closest("form"); - if($form.find('.form-item [rel=port]').find('input[ type=checkbox]').is(":checked") ==true) { - $form.find('.form-item[rel=truststore]').attr("isHidden",false); - $form.find('.form-item[rel=truststorepassword]').attr("isHidden",false); - } }
