mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 15:28:41 +00:00
fix(user_msg): clear interval before open new chat
This commit is contained in:
parent
c26ad98ff0
commit
95b11fbbd8
@ -371,6 +371,7 @@ if (isset($_POST['user_msg'])) {
|
|||||||
var slideTime = 300;
|
var slideTime = 300;
|
||||||
var page = 1;
|
var page = 1;
|
||||||
var changeAble = refreshHistory(conversationName, page);
|
var changeAble = refreshHistory(conversationName, page);
|
||||||
|
clearInterval(intervalId);
|
||||||
intervalId = setInterval(function() {
|
intervalId = setInterval(function() {
|
||||||
changeAble = refreshHistory(conversationName, page);
|
changeAble = refreshHistory(conversationName, page);
|
||||||
}, REFRESH_INTERVAL);
|
}, REFRESH_INTERVAL);
|
||||||
|
Loading…
Reference in New Issue
Block a user