mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 09:38:42 +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 page = 1;
|
||||
var changeAble = refreshHistory(conversationName, page);
|
||||
clearInterval(intervalId);
|
||||
intervalId = setInterval(function() {
|
||||
changeAble = refreshHistory(conversationName, page);
|
||||
}, REFRESH_INTERVAL);
|
||||
|
Loading…
Reference in New Issue
Block a user