mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-08 00:16:24 +00:00
verify is curPhoneNumber exists before fetching
This commit is contained in:
parent
03b6c70562
commit
6e44d16a29
@ -25,6 +25,11 @@ $.urlParam = function(name){
|
|||||||
};
|
};
|
||||||
|
|
||||||
var refreshConversation = function() {
|
var refreshConversation = function() {
|
||||||
|
// if no conversation selected, then don't fetch page
|
||||||
|
if (curPhoneNumber == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$.getJSON(OC.generateUrl('/apps/ocsms/get/conversation'),
|
$.getJSON(OC.generateUrl('/apps/ocsms/get/conversation'),
|
||||||
{
|
{
|
||||||
'phoneNumber': curPhoneNumber,
|
'phoneNumber': curPhoneNumber,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user