From 2dd86c80b417f019d97fa0de4d2297a9bdcf3b85 Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Thu, 13 Oct 2016 20:11:38 +0530 Subject: [PATCH 1/2] Fix for the bug EMM-1719 --- .../mdm.unit.policy.edit/public/js/edit.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) 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.policy.edit/public/js/edit.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js index 5e0c71ac4..f7f1471a5 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js @@ -2543,6 +2543,28 @@ $(document).ready(function () { } }); + /** + * + * Fix for the bug EMM-1719 + */ + $(advanceOperations).on('hidden.bs.collapse', function () { + if($(this).find('input').prop('checked')){ + $(this).find('input').prop('checked',false); + } + }); + + /** + * + * Fix for the bug EMM-1719 + */ + $(advanceOperations).on('shown.bs.collapse', function () { + if($(this).find('input').prop('checked') == false){ + $(this).find('input').prop('checked',true); + } + }); + + + // adding support for cloning multiple profiles per feature with cloneable class definitions $(advanceOperations).on("click", ".multi-view.add.enabled", function () { // get a copy of .cloneable and create new .cloned div element From cce96f26fcfe12fccb80bfb3516546ee8805952d Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Fri, 14 Oct 2016 14:48:45 +0530 Subject: [PATCH 2/2] Fix for the bug EMM-1719 --- .../app/units/mdm.unit.policy.edit/public/js/edit.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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.policy.edit/public/js/edit.js b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js index f7f1471a5..4bcc38bff 100644 --- a/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js +++ b/components/mobile-plugins/mobile-base-plugin/org.wso2.carbon.device.mgt.mobile.ui/src/main/resources/jaggeryapps/devicemgt/app/units/mdm.unit.policy.edit/public/js/edit.js @@ -2543,20 +2543,14 @@ $(document).ready(function () { } }); - /** - * - * Fix for the bug EMM-1719 - */ + $(advanceOperations).on('hidden.bs.collapse', function () { if($(this).find('input').prop('checked')){ $(this).find('input').prop('checked',false); } }); - /** - * - * Fix for the bug EMM-1719 - */ + $(advanceOperations).on('shown.bs.collapse', function () { if($(this).find('input').prop('checked') == false){ $(this).find('input').prop('checked',true);