1
0
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:
Loic Blot 2014-10-08 05:56:00 +00:00
parent 3a55c5ca1c
commit 4ce9fd2530

View File

@ -140,7 +140,7 @@ function changeSelectedConversation(item) {
selectedConversation.parent().addClass('selected'); selectedConversation.parent().addClass('selected');
} }
function fetchInitialPeerList() { function fetchInitialPeerList(jsondata) {
// Use a buffer for better jQuery performance // Use a buffer for better jQuery performance
var peerListBuf = ""; var peerListBuf = "";
@ -167,7 +167,7 @@ function fetchInitialPeerList() {
$(document).ready(function () { $(document).ready(function () {
// Now bind the events when we click on the phone number // Now bind the events when we click on the phone number
$.getJSON(OC.generateUrl('/apps/ocsms/get/peerlist'), function(jsondata, status) { $.getJSON(OC.generateUrl('/apps/ocsms/get/peerlist'), function(jsondata, status) {
fetchInitialPeerList(); fetchInitialPeerList(jsondata);
// Now bind the events when we click on the phone number // Now bind the events when we click on the phone number
$('#app-mailbox-peers').find('a[mailbox-navigation]').on('click', function (event) { $('#app-mailbox-peers').find('a[mailbox-navigation]').on('click', function (event) {