forked from extern/egroupware
wrap a set_preferences call in LAB.wait to avoid run time problems
This commit is contained in:
parent
e4f7cf159d
commit
b04ee25e07
@ -174,8 +174,8 @@ class idots_framework extends egw_framework
|
|||||||
self::validate_file('/phpgwapi/config.php');
|
self::validate_file('/phpgwapi/config.php');
|
||||||
self::validate_file('/phpgwapi/images.php',array('template' => $GLOBALS['egw_info']['user']['preferences']['common']['template_set']));
|
self::validate_file('/phpgwapi/images.php',array('template' => $GLOBALS['egw_info']['user']['preferences']['common']['template_set']));
|
||||||
$content .= '<script type="text/javascript">
|
$content .= '<script type="text/javascript">
|
||||||
egw.set_preferences('.json_encode($GLOBALS['egw_info']['user']['preferences']['common']).', "common");
|
egw.LAB.wait(function() {egw.set_preferences('.json_encode($GLOBALS['egw_info']['user']['preferences']['common']).', "common");
|
||||||
egw.set_user('.$GLOBALS['egw']->accounts->json($GLOBALS['egw_info']['user']['account_id']).');
|
egw.set_user('.$GLOBALS['egw']->accounts->json($GLOBALS['egw_info']['user']['account_id']).');});
|
||||||
</script>'."\n";
|
</script>'."\n";
|
||||||
}
|
}
|
||||||
if($GLOBALS['egw_info']['user']['preferences']['common']['show_general_menu'] != 'sidebox' && !html::$ua_mobile)
|
if($GLOBALS['egw_info']['user']['preferences']['common']['show_general_menu'] != 'sidebox' && !html::$ua_mobile)
|
||||||
|
Loading…
Reference in New Issue
Block a user