mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-08 16:36:25 +00:00
Only modify dom and scroll if there any new message
This commit is contained in:
parent
e89c8b6d0f
commit
fdb5d4845a
@ -33,9 +33,11 @@ var refreshConversation = function() {
|
|||||||
},
|
},
|
||||||
function(jsondata, status) {
|
function(jsondata, status) {
|
||||||
conversationBuf = formatConversation(jsondata);
|
conversationBuf = formatConversation(jsondata);
|
||||||
|
if (conversationBuf != '') {
|
||||||
$('.msg-endtag').before(conversationBuf);
|
$('.msg-endtag').before(conversationBuf);
|
||||||
$('#app-content').scrollTop(1E10);
|
$('#app-content').scrollTop(1E10);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user