From 4770b9b603944e7279a6fb44e535b44b9dbabce3 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Tue, 9 Jan 2018 14:52:48 +0530 Subject: [PATCH] Fixing https://github.com/wso2/product-iots/issues/1547 --- .../units/cdmf.unit.geo-dashboard/public/js/geo_remote.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/geo_remote.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/geo_remote.js index a0d755f2a8..0023bead06 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/geo_remote.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/geo_remote.js @@ -182,12 +182,9 @@ function setSpeedAlert() { //TODO: get the device Id from the URL var speedAlertValue = $("#speedAlertValue").val(); - if (speedAlertValue == null || speedAlertValue === undefined || speedAlertValue == "") { + if (!speedAlertValue) { var message = "Speed cannot be empty."; noty({text: message, type : 'error' }); - } else if (areaName.indexOf(" ") > -1) { - var message = "Area Name cannot contain spaces."; - noty({text: message, type : 'error' }); } else { data = { 'parseData': JSON.stringify({'speedAlertValue': speedAlertValue, 'deviceId': deviceId}), // parseKey : parseValue pair , this key pair is replace with the key in the template file