From b9cc3c73cd3691b20f28bc02fd5a90cde29f6eed Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Thu, 29 Jun 2017 11:32:36 +0530 Subject: [PATCH 1/2] Fix for github issue #1064 --- .../units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js index fe1cfde275c..4f10b1bd39c 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.ui.navbar.nav-menu/public/js/nav-menu.js @@ -37,7 +37,7 @@ function setPopupMaxHeight() { * show popup function. */ function showPopup() { - $(modalPopup).modal('show'); + $(modalPopup).first().modal('show'); } /* From f35fb9266829e64a6900bc2c1414d6de9bb83870 Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Thu, 29 Jun 2017 12:03:36 +0530 Subject: [PATCH 2/2] Fixes #437 issue where propper validation message is needed --- .../app/pages/cdmf.page.group.create/public/js/group-add.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.group.create/public/js/group-add.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.group.create/public/js/group-add.js index f6dac69f298..85b34decd95 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.group.create/public/js/group-add.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.group.create/public/js/group-add.js @@ -120,7 +120,7 @@ function triggerError(el,errorMsg){ function displayErrors(message) { $('#error-msg').html(message.responseText); modalDialog.header('Unexpected error occurred!'); - modalDialog.content('

'); + modalDialog.content('

' + message.responseText + '

'); modalDialog.footer(''); modalDialog.showAsError();