Se habilita el boton de ehorus

Former-commit-id: aceee670b00ad4291b7f4e9e0a90f17dca3feed9
This commit is contained in:
marcos.alconada 2019-05-10 12:26:09 +02:00
parent 72eb2babad
commit 793304b52d
2 changed files with 3 additions and 3 deletions

View File

@ -176,11 +176,11 @@ if ($config['ehorus_enabled']) {
var is_checked = $('input:checkbox[name="ehorus_enabled"]').is(':checked');
if (event.target.value == '1' && is_checked) {
showFields();
$('input:checkbox[name="ehorus_enabled"]').attr('checked', false);
$('input:checkbox[name="ehorus_enabled"]').attr('checked', true);
}
else {
hideFields();
$('input:checkbox[name="ehorus_enabled"]').attr('checked', true);
$('input:checkbox[name="ehorus_enabled"]').attr('checked', false);
};
}
$('input:checkbox[name="ehorus_enabled"]').change(handleEnable);

View File

@ -1349,7 +1349,7 @@ function config_update_config()
break;
case 'ehorus':
if (!config_update_value('ehorus_enabled', (int) get_parameter('ehorus_enabled', 0))) {
if (!config_update_value('ehorus_enabled', (int) get_parameter('ehorus_enabled', 1))) {
$error_update[] = __('Enable eHorus');
}