Make fields on form disabled if Enabled not checked.

This commit is contained in:
Boris Gulay
2016-05-20 18:00:41 +03:00
parent 40e7f5664e
commit 95716183d7
2 changed files with 11 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ class ident_switch extends rcube_plugin
$args['form']['ident_switch'] = array(
'name' => $this->gettext('form.caption'),
'content' => array(
'ident_switch.form.enabled' => array('type' => 'checkbox'),
'ident_switch.form.enabled' => array('type' => 'checkbox', 'onchange' => 'plugin_switchIdent_enabled_onChange();'),
'ident_switch.form.label' => array('type' => 'text', 'size' => 32),
'ident_switch.form.host' => array('type' => 'text', 'size' => 64),
'ident_switch.form.secure' => array('type' => 'checkbox'),