From 525c0958d9b5cb04dc038722132a22e0d2581fa1 Mon Sep 17 00:00:00 2001 From: kamidu Date: Wed, 21 Jun 2017 18:53:56 +0530 Subject: [PATCH] fixing the password reset issue --- .../devicemgt/app/pages/cdmf.page.users/public/js/listing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js index 0609c88c0a..3dc809e73e 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.users/public/js/listing.js @@ -134,8 +134,8 @@ function resetPassword(username) { $("a#reset-password-yes-link").click(function () { var newPassword = $("#basic-modal-view .new-password").val(); var confirmedPassword = $("#basic-modal-view .confirmed-password").val(); - var errorMsgWrapper = "#notification-error-msg"; - var errorMsg = "#notification-error-msg span"; + var errorMsgWrapper = ".modal #notification-error-msg"; + var errorMsg = ".modal #notification-error-msg span"; if (!newPassword) { $(errorMsg).text("New password is a required field. It cannot be empty."); $(errorMsgWrapper).removeClass("hidden");