1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-21 13:23:04 +00:00

Fix inArray test for jQuery

Sorry i wrote it in the train :)
This commit is contained in:
Loic Blot
2014-10-09 18:30:06 +00:00
parent a42f6d7d28
commit cd40b624b3
+1 -1
View File
@@ -157,7 +157,7 @@ function fetchInitialPeerList(jsondata) {
fn = jsondata['contacts'][val]; fn = jsondata['contacts'][val];
peerLabel = fn; peerLabel = fn;
} }
if (!$.inArray(peerLabel, bufferedContacts)) { if ($.inArray(peerLabel, bufferedContacts) !== true) {
peerListBuf += '<li><a href="#" mailbox-navigation="' + val + '">' + peerLabel + '</a></li>'; peerListBuf += '<li><a href="#" mailbox-navigation="' + val + '">' + peerLabel + '</a></li>';
bufferedContacts.push(peerLabel); bufferedContacts.push(peerLabel);
} }