summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_authservers.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-03 14:09:55 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-03 14:09:55 -0400
commite39a41e91a0e700912ac3e1742a6b6ed47470a3a (patch)
treeb950820c3a16f69cfd7a8c3b3d3226aef7eed288 /src/usr/local/www/system_authservers.php
parent257a043bbd3fc1c027fe01fc4c3b8bf95b8215ea (diff)
downloadpfsense-e39a41e91a0e700912ac3e1742a6b6ed47470a3a.zip
pfsense-e39a41e91a0e700912ac3e1742a6b6ed47470a3a.tar.gz
Fixed #5089
Replace toggle with jQuery
Diffstat (limited to 'src/usr/local/www/system_authservers.php')
-rw-r--r--src/usr/local/www/system_authservers.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php
index 137d497..8d750bf 100644
--- a/src/usr/local/www/system_authservers.php
+++ b/src/usr/local/www/system_authservers.php
@@ -544,10 +544,11 @@ $section->addInput(new Form_Checkbox(
'Extended query',
'Enable extended query',
$pconfig['ldap_extended_enabled']
-))->toggles('.toggle-extended');
+));
$group = new Form_Group('Query');
-$group->addClass('toggle-extended collapse');
+$group->addClass('extended');
+
$group->add(new Form_Input(
'ldap_extended_query',
'Query',
@@ -777,7 +778,7 @@ events.push(function(){
ldap_tmplchange();
hideClass('ldapanon', $('#ldap_anon').prop('checked'));
$("#Select").prop('type','button');
-
+ hideClass('extended', !$('#ldap_extended_enabled').prop('checked'));
if($('#ldap_port').val() == "")
set_ldap_port();
@@ -813,6 +814,11 @@ events.push(function(){
$('#Select').click(function () {
select_clicked();
});
+
+ $('#ldap_extended_enabled').click(function () {
+ hideClass('extended', !this.checked);
+ });
+
});
//]]>
</script>
OpenPOWER on IntegriCloud