diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-09-02 15:59:02 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-09-02 16:00:14 -0400 |
commit | ea342b0f50e1c2656d70a4beac571c375fe4bb35 (patch) | |
tree | d3b13b4f34bd9c84ce8b986769f96e9b7e1bc3ad /src/usr | |
parent | 489059e39c089b096807616000159aa134e97087 (diff) | |
download | pfsense-ea342b0f50e1c2656d70a4beac571c375fe4bb35.zip pfsense-ea342b0f50e1c2656d70a4beac571c375fe4bb35.tar.gz |
Fixed #6065
Method setDiasabled() seems to not only disable the input, but prevent it from being submitted.
Replasced with jQuery
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/local/www/system_authservers.php | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php index cdc9011..691ebef 100644 --- a/src/usr/local/www/system_authservers.php +++ b/src/usr/local/www/system_authservers.php @@ -359,7 +359,7 @@ include("head.inc"); if ($input_errors) print_input_errors($input_errors); if ($savemsg) - print_info_box($savemsg); + print_info_box($savemsg, 'success'); $tab_array = array(); $tab_array[] = array(gettext("Users"), false, "system_usermanager.php"); @@ -410,6 +410,7 @@ if (!($act == "new" || $act == "edit" || $input_errors)) require_once('classes/Form.class.php'); $form = new Form; $form->setAction('system_authservers.php?act=edit'); + $form->addGlobal(new Form_Input( 'userid', null, @@ -426,9 +427,6 @@ $section->addInput($input = new Form_Input( $pconfig['name'] )); -if ($act == 'edit') - $input->setReadonly(); - $section->addInput($input = new Form_Select( 'type', 'Type', @@ -436,9 +434,6 @@ $section->addInput($input = new Form_Select( $auth_server_types ))->toggles(); -if ($act == 'edit') - $input->setDisabled(); - $form->add($section); $section = new Form_Section('LDAP Server Settings'); $section->addClass('toggle-ldap collapse'); @@ -715,6 +710,14 @@ events.push(function(){ // On page load . . ldap_tmplchange(); +<?php + if($act == 'edit') { +?> + $('#type').prop("disabled", true); + $('#name').prop("disabled", true); +<?php + } +?> // On click . . $('#ldap_tmpltype').on('change', function() { ldap_tmplchange(); |