1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-17 11:23:02 +00:00
This commit is contained in:
Loic Blot
2014-10-05 10:28:21 +00:00
parent 922a5bf853
commit 89b9082e11
3 changed files with 37 additions and 5 deletions
+11 -3
View File
@@ -34,7 +34,7 @@ var refreshConversation = function() {
conversationBuf = formatConversation(jsondata);
if (conversationBuf != '') {
$('.msg-endtag').before(conversationBuf);
$('#app-content').scrollTop(1E10);
$('#app-content-wrapper').scrollTop(1E10);
}
}
);
@@ -48,9 +48,17 @@ function fetchConversation(phoneNumber) {
function(jsondata, status) {
conversationBuf = formatConversation(jsondata);
conversationBuf += '<div class="msg-endtag"></div>';
if (typeof jsondata['contactName'] == 'undefined') {
$('#ocsms-phone-label').html(phoneNumber);
$('#ocsms-phone-opt-number').html('');
}
else {
$('#ocsms-phone-label').html(jsondata['contactName']);
$('#ocsms-phone-opt-number').html(phoneNumber);
}
$('#app-content').html(conversationBuf);
$('#app-content').scrollTop(1E10);
$('#app-content-wrapper').html(conversationBuf);
$('#app-content-wrapper').scrollTop(1E10);
curPhoneNumber = phoneNumber;
}