1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-08 00:16:24 +00:00

JS: fix missing urlParam

This commit is contained in:
Loic Blot 2014-10-06 13:27:33 +00:00
parent 6e44d16a29
commit ebda4d0330

View File

@ -166,7 +166,9 @@ function changeSelectedConversation(item) {
event.preventDefault(); event.preventDefault();
}); });
var urlPhoneNumber = decodeURIComponent($.urlParam('phonenumber')); var pnParam = $.urlParam('phonenumber'));
if (pnParam != null) {
var urlPhoneNumber = decodeURIComponent(pnParam);
if (urlPhoneNumber != null) { if (urlPhoneNumber != null) {
fetchConversation(urlPhoneNumber); fetchConversation(urlPhoneNumber);
@ -175,6 +177,7 @@ function changeSelectedConversation(item) {
changeSelectedConversation(pObject); changeSelectedConversation(pObject);
} }
} }
}
}); });
setInterval(refreshConversation, 10000); setInterval(refreshConversation, 10000);
}); });