fixing the ui error when the windows plaform configuration not saved successfully

revert-dabc3590
kamidu 7 years ago
parent a35520a98c
commit b376e73619

@ -193,24 +193,24 @@ $(document).ready(function () {
$("#config-save-form").addClass("hidden"); $("#config-save-form").addClass("hidden");
$("#record-created-msg").removeClass("hidden"); $("#record-created-msg").removeClass("hidden");
} else if (data == 500) { } else if (data == 500) {
$(errorMsg).text("Exception occurred at backend."); $(errorMsgWindows).text("Exception occurred at backend.");
} else if (data == 400) { } else if (data == 400) {
$(errorMsg).text("Configurations cannot be empty."); $(errorMsgWindows).text("Configurations cannot be empty.");
} else { } else {
$(errorMsg).text("An unexpected error occurred."); $(errorMsgWindows).text("An unexpected error occurred.");
} }
$(errorMsgWrapperWindows).removeClass("hidden"); $(errorMsgWrapperWindows).removeClass("hidden");
}, function (data) { }, function (data) {
data = data.status; data = data.status;
if (data == 500) { if (data == 500) {
$(errorMsg).text("Exception occurred at backend."); $(errorMsgWindows).text("Exception occurred at backend.");
} else if (data == 403) { } else if (data == 403) {
$(errorMsg).text("Action was not permitted."); $(errorMsgWindows).text("Action was not permitted.");
} else { } else {
$(errorMsg).text("An unexpected error occurred."); $(errorMsgWindows).text("An unexpected error occurred.");
} }
$(errorMsgWrapper).removeClass("hidden"); $(errorMsgWrapperWindows).removeClass("hidden");
} }
); );
} }

Loading…
Cancel
Save