1
0
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:
Loic Blot 2014-10-06 15:24:32 +02:00
parent 03b6c70562
commit 6e44d16a29

View File

@ -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,