#11064 Fixed a conditional in the jquery code that generates the toggle which was not executed when the value of the is_metaconsole variable was 1
This commit is contained in:
parent
0b5672980d
commit
2fe3662724
|
@ -4602,7 +4602,7 @@ function ui_toggle(
|
||||||
$output .= ' /* <![CDATA[ */'."\n";
|
$output .= ' /* <![CDATA[ */'."\n";
|
||||||
$output .= " $(document).ready (function () {\n";
|
$output .= " $(document).ready (function () {\n";
|
||||||
$output .= " $('#checkbox-".$switch_name."').click(function() {\n";
|
$output .= " $('#checkbox-".$switch_name."').click(function() {\n";
|
||||||
$output .= ' if (is_metaconsole == 0) {';
|
// $output .= ' if (is_metaconsole == 0) {';
|
||||||
$output .= ' if (hide_tgl_ctrl_'.$uniqid.") {\n";
|
$output .= ' if (hide_tgl_ctrl_'.$uniqid.") {\n";
|
||||||
$output .= ' hide_tgl_ctrl_'.$uniqid." = 0;\n";
|
$output .= ' hide_tgl_ctrl_'.$uniqid." = 0;\n";
|
||||||
$output .= " $('#tgl_div_".$uniqid."').css('height', 'auto');\n";
|
$output .= " $('#tgl_div_".$uniqid."').css('height', 'auto');\n";
|
||||||
|
@ -4613,7 +4613,7 @@ function ui_toggle(
|
||||||
$output .= " $('#tgl_div_".$uniqid."').css('height', 0);\n";
|
$output .= " $('#tgl_div_".$uniqid."').css('height', 0);\n";
|
||||||
$output .= " $('#tgl_div_".$uniqid."').css('position', 'absolute');\n";
|
$output .= " $('#tgl_div_".$uniqid."').css('position', 'absolute');\n";
|
||||||
$output .= " }\n";
|
$output .= " }\n";
|
||||||
$output .= " }\n";
|
// $output .= " }\n";
|
||||||
$output .= " });\n";
|
$output .= " });\n";
|
||||||
$output .= " $('#tgl_ctrl_".$uniqid."').click(function() {\n";
|
$output .= " $('#tgl_ctrl_".$uniqid."').click(function() {\n";
|
||||||
$output .= ' if (hide_tgl_ctrl_'.$uniqid.") {\n";
|
$output .= ' if (hide_tgl_ctrl_'.$uniqid.") {\n";
|
||||||
|
|
Loading…
Reference in New Issue