visual error pandora_enterprise#9875
This commit is contained in:
parent
899352443d
commit
8ddd046d3b
|
@ -4003,10 +4003,10 @@ function ui_toggle(
|
||||||
// Options.
|
// Options.
|
||||||
$style = 'overflow:hidden;';
|
$style = 'overflow:hidden;';
|
||||||
if ($hidden_default) {
|
if ($hidden_default) {
|
||||||
$style .= 'height:0;';
|
$style .= 'height:0;position:absolute;';
|
||||||
$original = $img_b;
|
$original = $img_b;
|
||||||
} else {
|
} else {
|
||||||
$style .= 'height:auto;';
|
$style .= 'height:auto;position:relative;';
|
||||||
$original = $img_a;
|
$original = $img_a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4113,10 +4113,12 @@ function ui_toggle(
|
||||||
$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";
|
||||||
|
$output .= " $('#tgl_div_".$uniqid."').css('position', 'relative');\n";
|
||||||
$output .= " }\n";
|
$output .= " }\n";
|
||||||
$output .= " else {\n";
|
$output .= " else {\n";
|
||||||
$output .= ' hide_tgl_ctrl_'.$uniqid." = 1;\n";
|
$output .= ' hide_tgl_ctrl_'.$uniqid." = 1;\n";
|
||||||
$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 .= " }\n";
|
$output .= " }\n";
|
||||||
$output .= " }\n";
|
$output .= " }\n";
|
||||||
$output .= " });\n";
|
$output .= " });\n";
|
||||||
|
@ -4124,12 +4126,14 @@ function ui_toggle(
|
||||||
$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";
|
||||||
|
$output .= " $('#tgl_div_".$uniqid."').css('position', 'relative');\n";
|
||||||
$output .= " $('#image_".$uniqid."').attr({src: '".$image_a."'});\n";
|
$output .= " $('#image_".$uniqid."').attr({src: '".$image_a."'});\n";
|
||||||
$output .= " $('#checkbox-".$switch_name."').prop('checked', true);\n";
|
$output .= " $('#checkbox-".$switch_name."').prop('checked', true);\n";
|
||||||
$output .= " }\n";
|
$output .= " }\n";
|
||||||
$output .= " else {\n";
|
$output .= " else {\n";
|
||||||
$output .= ' hide_tgl_ctrl_'.$uniqid." = 1;\n";
|
$output .= ' hide_tgl_ctrl_'.$uniqid." = 1;\n";
|
||||||
$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 .= " $('#image_".$uniqid."').attr({src: '".$image_b."'});\n";
|
$output .= " $('#image_".$uniqid."').attr({src: '".$image_b."'});\n";
|
||||||
$output .= " $('#checkbox-".$switch_name."').prop('checked', false);\n";
|
$output .= " $('#checkbox-".$switch_name."').prop('checked', false);\n";
|
||||||
$output .= " }\n";
|
$output .= " }\n";
|
||||||
|
|
Loading…
Reference in New Issue