From 125b827f4f4dd178a81e88ed15f3d9b41987f544 Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Fri, 7 Oct 2016 14:27:00 +0530 Subject: [PATCH] Fix for modal popup overlay bug --- .../public/js/user-menu.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/public/js/user-menu.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/public/js/user-menu.js index c22b5c2923..f5e03d86c8 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/public/js/user-menu.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.header.user-menu/public/js/user-menu.js @@ -28,6 +28,16 @@ function inputIsValid(regExp, inputString) { return regExp.test(inputString); } +/* + * Fix for the modal popup overlay disappear bug + */ +$('.modal').on('hidden.bs.modal',function(){ + if($('.modal-backdrop').length == 2){ + $('.modal-backdrop')[0].remove() + } +}); + + $(document).ready(function () { var modalPopup = ".modal"; // var modalPopupContainer = modalPopup + " .modal-content";