nowtime is not defined
This commit is contained in:
parent
5e4ef9266e
commit
93e69d515d
@ -37,8 +37,9 @@ if (!($_SERVER['HTTP_REFERER'] === $dolibarr_main_url_root.'/' || $_SERVER['HTTP
|
||||
top_httphead('text/javascript; charset=UTF-8');
|
||||
|
||||
print 'var login = \''.$_SESSION['dol_login'].'\';'."\n";
|
||||
print 'var nowtime = Date.now();';
|
||||
print 'var time_auto_update = '.$conf->global->MAIN_BROWSER_NOTIFICATION_FREQUENCY.';'."\n"; // Always defined
|
||||
print 'var time_js_next_test = (Date.now() + time_auto_update);'."\n";
|
||||
print 'var time_js_next_test = (nowtime + time_auto_update);'."\n";
|
||||
?>
|
||||
|
||||
/* Check if permission ok */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user