mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
Fix loading peerlist
This commit is contained in:
parent
3a55c5ca1c
commit
4ce9fd2530
@ -140,7 +140,7 @@ function changeSelectedConversation(item) {
|
||||
selectedConversation.parent().addClass('selected');
|
||||
}
|
||||
|
||||
function fetchInitialPeerList() {
|
||||
function fetchInitialPeerList(jsondata) {
|
||||
// Use a buffer for better jQuery performance
|
||||
var peerListBuf = "";
|
||||
|
||||
@ -167,7 +167,7 @@ function fetchInitialPeerList() {
|
||||
$(document).ready(function () {
|
||||
// Now bind the events when we click on the phone number
|
||||
$.getJSON(OC.generateUrl('/apps/ocsms/get/peerlist'), function(jsondata, status) {
|
||||
fetchInitialPeerList();
|
||||
fetchInitialPeerList(jsondata);
|
||||
|
||||
// Now bind the events when we click on the phone number
|
||||
$('#app-mailbox-peers').find('a[mailbox-navigation]').on('click', function (event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user