Geo fencing improvements

revert-70aa11f8
Rasika Perera 7 years ago
parent 442e0ab6a6
commit 5317b05643

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

Loading…
Cancel
Save