Fixing json parser issue in operation-bar - UI

revert-dabc3590
dilanua 8 years ago
parent 0c77266640
commit 6ee9a61ed1

@ -110,7 +110,7 @@ function loadOperationBar(deviceType) {
var successCallback = function (data) { var successCallback = function (data) {
var permittedOperations = []; var permittedOperations = [];
var i; var i;
var permissionList = JSON.parse($("#operations-mod").data("permissions")); var permissionList = $("#operations-mod").data("permissions");
var totalFeatures = JSON.parse(data); var totalFeatures = JSON.parse(data);
for (i = 0; i < permissionList[deviceType].length; i++) { for (i = 0; i < permissionList[deviceType].length; i++) {
var j; var j;

Loading…
Cancel
Save