Merge branch 'ent-11064-bug-boton-habilitar-base-de-datos-de-historico-en-meta' into 'develop'

Ent 11064 bug boton habilitar base de datos de historico en meta

See merge request artica/pandorafms!5803
This commit is contained in:
Rafael Ameijeiras 2023-05-22 15:52:40 +00:00
commit cad3355bbf
1 changed files with 3 additions and 3 deletions

View File

@ -4521,7 +4521,7 @@ function ui_toggle(
// Link to toggle.
$output = '<div class="'.$main_class.'" id="'.$id.'" '.$toggl_attr.'>';
$output .= '<div class="'.$header_class.'" '.(($disableToggle === false) ? 'style="cursor: pointer;" ' : '').' id="tgl_ctrl_'.$uniqid.'">';
$output .= '<div class="'.$header_class.'" '.(($disableToggle === true) ? 'style="cursor: pointer;" ' : '').' id="tgl_ctrl_'.$uniqid.'">';
if ($reverseImg === false) {
if ($switch === true) {
if (empty($switch_name) === true) {
@ -4624,7 +4624,7 @@ function ui_toggle(
$output .= " }\n";
$output .= " }\n";
$output .= " });\n";
$output .= " $('#tgl_ctrl_".$uniqid."').click(function() {\n";
$output .= " $('#checkbox-".$switch_name."').click(function() {\n";
$output .= ' if (hide_tgl_ctrl_'.$uniqid.") {\n";
$output .= ' hide_tgl_ctrl_'.$uniqid." = 0;\n";
$output .= " $('#tgl_div_".$uniqid."').css('height', 'auto');\n";