Fixed problems with compatibility with IE8-IE9. Tiquet: #3038
This commit is contained in:
parent
975b7410c2
commit
e2a7af6922
|
@ -66,6 +66,11 @@ $config_fixed_header = false;
|
||||||
if (isset($config['fixed_header'])) {
|
if (isset($config['fixed_header'])) {
|
||||||
$config_fixed_header = $config['fixed_header'];
|
$config_fixed_header = $config['fixed_header'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$agente = $_SERVER['HTTP_USER_AGENT'];
|
||||||
|
if(preg_match('/MSIE/i',$agente)) {
|
||||||
|
$browser = "MSIE";
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript" language="javascript">
|
<script type="text/javascript" language="javascript">
|
||||||
/* <![CDATA[ */
|
/* <![CDATA[ */
|
||||||
|
@ -75,7 +80,14 @@ var fixed_menu = <?php echo json_encode((bool)$config_fixed_menu); ?>;
|
||||||
var fixed_header = <?php echo json_encode((bool)$config_fixed_header); ?>;
|
var fixed_header = <?php echo json_encode((bool)$config_fixed_header); ?>;
|
||||||
var id_user = "<?php echo $config['id_user']; ?>";
|
var id_user = "<?php echo $config['id_user']; ?>";
|
||||||
var cookie_name = id_user + '-pandora_menu_state';
|
var cookie_name = id_user + '-pandora_menu_state';
|
||||||
var cookie_name_encoded = btoa(cookie_name);
|
var navegator = "<?php echo $browser; ?>";
|
||||||
|
|
||||||
|
if (navegator == 'MSIE') {
|
||||||
|
var cookie_name_encoded = Base64.encode(cookie_name);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var cookie_name_encoded = btoa(cookie_name);
|
||||||
|
}
|
||||||
|
|
||||||
var menuState = $.cookie(cookie_name_encoded);
|
var menuState = $.cookie(cookie_name_encoded);
|
||||||
if (!menuState) {
|
if (!menuState) {
|
||||||
|
|
Loading…
Reference in New Issue