Merge pull request #891 from rasika/master

Geo fencing improvements : Error Messages not shown
merge-requests/1/head
Madawa Soysa 7 years ago committed by GitHub
commit 3e13588554

@ -264,6 +264,7 @@ function setWithinAlert(leafletId) {
} else {
var ptrn = /(?:<am\:description>)(.*)(?:<\/am\:description>)/g;
var errorTxt;
var result = (ptrn.exec(data));
if (result) {
errorTxt = result.length > 1 ? result[1] : data;
} else {
@ -320,6 +321,7 @@ function setExitAlert(leafletId) {
} else {
var ptrn = /(?:<am\:description>)(.*)(?:<\/am\:description>)/g;
var errorTxt;
var result = (ptrn.exec(data));
if (result) {
errorTxt = result.length > 1 ? result[1] : data;
} else {
@ -391,6 +393,7 @@ function setStationeryAlert(leafletId) {
} else {
var ptrn = /(?:<am\:description>)(.*)(?:<\/am\:description>)/g;
var errorTxt;
var result = (ptrn.exec(data));
if (result) {
errorTxt = result.length > 1 ? result[1] : data;
} else {
@ -499,6 +502,7 @@ function setTrafficAlert(leafletId) {
} else {
var ptrn = /(?:<am\:description>)(.*)(?:<\/am\:description>)/g;
var errorTxt;
var result = (ptrn.exec(data));
if (result) {
errorTxt = result.length > 1 ? result[1] : data;
} else {
@ -603,6 +607,7 @@ function setProximityAlert() {
} else {
var ptrn = /(?:<am\:description>)(.*)(?:<\/am\:description>)/g;
var errorTxt;
var result = (ptrn.exec(data));
if (result) {
errorTxt = result.length > 1 ? result[1] : data;
} else {

Loading…
Cancel
Save