From 6ee9a61ed15f7a1ab4563fae6e9122e099ff958f Mon Sep 17 00:00:00 2001 From: dilanua Date: Mon, 12 Sep 2016 14:20:01 +0530 Subject: [PATCH] Fixing json parser issue in operation-bar - UI --- .../mdm.unit.device.operation-bar/public/js/operation-bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-bar/public/js/operation-bar.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-bar/public/js/operation-bar.js index cc3d8d962..a3186092a 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-bar/public/js/operation-bar.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.device.operation-bar/public/js/operation-bar.js @@ -110,7 +110,7 @@ function loadOperationBar(deviceType) { var successCallback = function (data) { var permittedOperations = []; var i; - var permissionList = JSON.parse($("#operations-mod").data("permissions")); + var permissionList = $("#operations-mod").data("permissions"); var totalFeatures = JSON.parse(data); for (i = 0; i < permissionList[deviceType].length; i++) { var j;