From b99bd42a91440e85f50696bcea730e31a1a66a36 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Thu, 22 Sep 2016 14:33:15 +0530 Subject: [PATCH] Fixing download modal issue on virtual firealarm --- .../public/js/download.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/js/download.js b/components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/js/download.js index e2c9e8a41..824b61363 100644 --- a/components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/js/download.js +++ b/components/iot-plugins/virtual-fire-alarm-plugin/org.wso2.carbon.device.mgt.iot.virtualfirealarm.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.virtual_firealarm.type-view/public/js/download.js @@ -16,9 +16,9 @@ * under the License. */ -var modalPopup = ".wr-modalpopup"; -var modalPopupContainer = modalPopup + " .modalpopup-container"; -var modalPopupContent = modalPopup + " .modalpopup-content"; +var modalPopup = '.modal', + modalPopupContainer = modalPopup + ' .modal-content', + modalPopupContent = modalPopup + ' .modal-content'; var body = "body"; /* @@ -33,7 +33,7 @@ function setPopupMaxHeight() { * Shows agent download popup. */ function showAgentDownloadPopup() { - $(modalPopup).show(); + $(modalPopup).modal('show'); setPopupMaxHeight(); var deviceType = ""; $('.deviceType').each(function () { @@ -50,7 +50,7 @@ function hideAgentDownloadPopup() { $('label[for=deviceName]').remove(); $('.control-group').removeClass('success').removeClass('error'); $(modalPopupContent).html(''); - $(modalPopup).hide(); + $(modalPopup).modal('hide'); } /*