mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 07:56:23 +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() {
|
||||
// if no conversation selected, then don't fetch page
|
||||
if (curPhoneNumber == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
$.getJSON(OC.generateUrl('/apps/ocsms/get/conversation'),
|
||||
{
|
||||
'phoneNumber': curPhoneNumber,
|
||||
|
Loading…
x
Reference in New Issue
Block a user