From 2a006684cc9643b96c010f0e7856cec94a3e7aa8 Mon Sep 17 00:00:00 2001 From: charithag Date: Wed, 27 Apr 2016 16:07:14 +0530 Subject: [PATCH] Fix formatting --- .../cdmf.page.device.analytics/analytics.js | 23 ++++++++++--------- .../cdmf.page.device.analytics/analytics.json | 4 ++-- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.device.analytics/analytics.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.device.analytics/analytics.js index 14c475dabdb..4b11b91aa1a 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.device.analytics/analytics.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.device.analytics/analytics.js @@ -19,14 +19,15 @@ function onRequest(context) { var utility = require("/app/modules/utility.js").utility; context.handlebars.registerHelper('equal', function (lvalue, rvalue, options) { - if (arguments.length < 3) - throw new Error("Handlebars Helper equal needs 2 parameters"); - if (lvalue != rvalue) { - return options.inverse(this); - } else { - return options.fn(this); - } - }); + if (arguments.length < 3) { + throw new Error("Handlebars Helper equal needs 2 parameters"); + } + if (lvalue != rvalue) { + return options.inverse(this); + } else { + return options.fn(this); + } + }); var groupName = request.getParameter("groupName"); var groupId = request.getParameter("groupId"); var deviceName = request.getParameter("deviceName"); @@ -38,7 +39,7 @@ function onRequest(context) { } else { title = "Device " + title; } - return { + return { "deviceAnalyticsViewUnitName": utility.getTenantedDeviceUnitName(deviceType, "analytics-view"), "deviceType": deviceType, "title": title, @@ -46,5 +47,5 @@ function onRequest(context) { "groupId": groupId, "deviceName": deviceName, "deviceId": deviceId - }; -} \ No newline at end of file + }; +} diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.device.analytics/analytics.json b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.device.analytics/analytics.json index 0dc10e6bf57..846ee092b88 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.device.analytics/analytics.json +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.device.analytics/analytics.json @@ -1,5 +1,5 @@ { - "version": "1.0.0", + "version": "1.0.0", "uri": "/device/{deviceType}/analytics", - "layout": "cdmf.layout.default" + "layout": "cdmf.layout.default" } \ No newline at end of file