From e4e57fae36ee1e62491a33ce16668df5f48cbe24 Mon Sep 17 00:00:00 2001 From: Saad Sahibjan Date: Tue, 28 Jan 2020 16:34:39 +0530 Subject: [PATCH] Fix app restrictions policy app update issue --- .../public/js/operation-mod.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js index 41adbbfb9..9db096b41 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.operation-mod/public/js/operation-mod.js @@ -1167,20 +1167,6 @@ var androidOperationModule = function () { } } } - - // only for app whitelisting and black listing - if (operationCode == "APP-RESTRICTION" && key == "restrictedApplications") { - //remove elements before adding - $('[data-add-form-container="#restricted-applications-grid"]').empty(); - - var i; - for (i = 0; i < uiPayload.restrictedApplications.length; ++i) { - $('[data-add-form-container="#restricted-applications-grid"]').append('' + - ''+ (i+1) +' ' + uiPayload.restrictedApplications[i].appName + - ' ' + uiPayload.restrictedApplications[i].packageName + ''); - } - - } } ); };