1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Fix scrolling

This commit is contained in:
Loic Blot 2014-10-08 05:56:59 +00:00
parent 4ce9fd2530
commit 4e7ea18e89

View File

@ -42,7 +42,7 @@ var refreshConversation = function() {
conversationBuf = formatConversation(jsondata);
if (conversationBuf != '') {
$('.msg-endtag').before(conversationBuf);
$('#app-content-wrapper').scrollTop(1E10);
$('#app-content').scrollTop(1E10);
}
if ($('#app-content-header').is(':hidden')) {
@ -74,7 +74,7 @@ function fetchConversation(phoneNumber) {
}
$('#app-content-wrapper').html(conversationBuf);
$('#app-content-wrapper').scrollTop(1E10);
$('#app-content').scrollTop(1E10);
curPhoneNumber = phoneNumber;
}