1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +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();
});
var urlPhoneNumber = decodeURIComponent($.urlParam('phonenumber'));
var pnParam = $.urlParam('phonenumber'));
if (pnParam != null) {
var urlPhoneNumber = decodeURIComponent(pnParam);
if (urlPhoneNumber != null) {
fetchConversation(urlPhoneNumber);
@ -175,6 +177,7 @@ function changeSelectedConversation(item) {
changeSelectedConversation(pObject);
}
}
}
});
setInterval(refreshConversation, 10000);
});