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:
parent
6e44d16a29
commit
ebda4d0330
@ -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);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user