From b376e736190457976b219af8f4b9455ef3c1d0b4 Mon Sep 17 00:00:00 2001 From: kamidu Date: Wed, 19 Jul 2017 18:58:24 +0530 Subject: [PATCH] fixing the ui error when the windows plaform configuration not saved successfully --- .../public/js/platform-configuration.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.platform.configuration/public/js/platform-configuration.js b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.platform.configuration/public/js/platform-configuration.js index e64afccce..52f3dbc00 100644 --- a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.platform.configuration/public/js/platform-configuration.js +++ b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.windows.platform.configuration/public/js/platform-configuration.js @@ -193,24 +193,24 @@ $(document).ready(function () { $("#config-save-form").addClass("hidden"); $("#record-created-msg").removeClass("hidden"); } else if (data == 500) { - $(errorMsg).text("Exception occurred at backend."); + $(errorMsgWindows).text("Exception occurred at backend."); } else if (data == 400) { - $(errorMsg).text("Configurations cannot be empty."); + $(errorMsgWindows).text("Configurations cannot be empty."); } else { - $(errorMsg).text("An unexpected error occurred."); + $(errorMsgWindows).text("An unexpected error occurred."); } $(errorMsgWrapperWindows).removeClass("hidden"); }, function (data) { data = data.status; if (data == 500) { - $(errorMsg).text("Exception occurred at backend."); + $(errorMsgWindows).text("Exception occurred at backend."); } else if (data == 403) { - $(errorMsg).text("Action was not permitted."); + $(errorMsgWindows).text("Action was not permitted."); } else { - $(errorMsg).text("An unexpected error occurred."); + $(errorMsgWindows).text("An unexpected error occurred."); } - $(errorMsgWrapper).removeClass("hidden"); + $(errorMsgWrapperWindows).removeClass("hidden"); } ); }