Remove nocache hack from message reload again
(scrolls back to top every time)
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
Remove nocache hack from message reload again (scrolls back to top every time)
|
||||
|
||||
Version 1.16.4 - Apr. 15, 2016
|
||||
Properly escape some parameters
|
||||
Add caching hack for aggressively caching browsers (e.g. links)
|
||||
|
4
chat.php
4
chat.php
@ -1238,12 +1238,12 @@ function send_messages($js){
|
||||
global $I, $U, $language;
|
||||
if(!$js){
|
||||
if(isSet($_COOKIE[COOKIENAME])){
|
||||
print_start('messages', $U['refresh'], "$_SERVER[SCRIPT_NAME]?action=view&nocache=".substr(time(),-6));
|
||||
print_start('messages', $U['refresh'], "$_SERVER[SCRIPT_NAME]?action=view");
|
||||
if(get_setting('enablejs')==1 && extension_loaded('json')){
|
||||
echo "<script type=\"text/javascript\">window.location.assign('$_SERVER[SCRIPT_NAME]?action=jsview');</script>";
|
||||
}
|
||||
}else{
|
||||
print_start('messages', $U['refresh'], "$_SERVER[SCRIPT_NAME]?action=view&session=$U[session]&lang=$language&nocache=".substr(time(),-6));
|
||||
print_start('messages', $U['refresh'], "$_SERVER[SCRIPT_NAME]?action=view&session=$U[session]&lang=$language");
|
||||
if(get_setting('enablejs')==1 && extension_loaded('json')){
|
||||
echo "<script type=\"text/javascript\">window.location.assign('$_SERVER[SCRIPT_NAME]?action=jsview&session=$U[session]&lang=$language');</script>";
|
||||
}
|
||||
|
Reference in New Issue
Block a user