mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Se habilita el boton de ehorus
Former-commit-id: aceee670b00ad4291b7f4e9e0a90f17dca3feed9
This commit is contained in:
parent
72eb2babad
commit
793304b52d
@ -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);
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user