diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-02 16:32:58 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-02 16:32:58 -0400 |
commit | f3a43095864baf4b7fa46bb68bb456a766ae255e (patch) | |
tree | 07b5fd23371036f2d79da04f56d90a6957f627e0 /src/usr/local/www/system_authservers.php | |
parent | b0909f2e88bd374e742761bbc1645a25fc2b3eec (diff) | |
download | pfsense-f3a43095864baf4b7fa46bb68bb456a766ae255e.zip pfsense-f3a43095864baf4b7fa46bb68bb456a766ae255e.tar.gz |
Fixed 5067
Provided missing functionality in jQuery
Diffstat (limited to 'src/usr/local/www/system_authservers.php')
-rw-r--r-- | src/usr/local/www/system_authservers.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php index e3c22d4..2ec4cc0 100644 --- a/src/usr/local/www/system_authservers.php +++ b/src/usr/local/www/system_authservers.php @@ -692,6 +692,13 @@ print $form; //<![CDATA[ events.push(function(){ + function set_ldap_port() { + if($('#ldap_urltype').find(":selected").index() == 0) + $('#ldap_port').val('389'); + else + $('#ldap_port').val('636'); + } + // Hides all elements of the specified class. This will usually be a section function hideClass(s_class, hide) { if(hide) @@ -721,6 +728,9 @@ events.push(function(){ // On page load . . ldap_tmplchange(); hideClass('ldapanon', $('#ldap_anon').prop('checked')); + + if($('#ldap_port').val() == "") + set_ldap_port(); <?php if($act == 'edit') { @@ -738,7 +748,10 @@ events.push(function(){ $('#ldap_anon').click(function () { hideClass('ldapanon', this.checked); }); - + + $('#ldap_urltype').on('change', function() { + set_ldap_port(); + }); }); //]]> </script> |