From c2d8c6522bbd8954fd0fa4801c44894fc36914f7 Mon Sep 17 00:00:00 2001 From: lasantha Date: Wed, 9 Aug 2017 17:28:49 +0530 Subject: [PATCH] fixing minor issues --- .../app/units/cdmf.unit.geo-dashboard/public/js/websocket.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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/websocket.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/websocket.js index c963c34476..fbecf66217 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/websocket.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.geo-dashboard/public/js/websocket.js @@ -156,7 +156,7 @@ SpatialObject.prototype.update = function (geoJSON) { /* //This is implemented in alertWebSocket if (this.state != "NORMAL") { - notifyArt("Object ID: " + this.id + " change state to: " + geoJSON.properties.state + " Info : " + this.information); + notifyAlert("Object ID: " + this.id + " change state to: " + geoJSON.properties.state + " Info : " + this.information); }*/ var newLineStringGeoJson = this.createLineStringFeature(this.state, this.information, [this.latitude, this.longitude]); this.pathGeoJsons.push(newLineStringGeoJson); @@ -561,6 +561,8 @@ var webSocketOnAlertMessage = function processMessage(message) { var json = $.parseJSON(message.data); if (json.messageType == "Alert") { processAlertMessage(json); + }else { + console.log("Message type not supported."); } } };