From 4ce9fd2530821f9a8bfb97e0ee4a0428cd0f9c9a Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Wed, 8 Oct 2014 05:56:00 +0000 Subject: [PATCH] Fix loading peerlist --- js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/script.js b/js/script.js index c65d9a9..be7f716 100644 --- a/js/script.js +++ b/js/script.js @@ -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) {