|
|
@ -61,9 +61,15 @@ function submitForm(formId) {
|
|
|
|
var statusIcon = content.find("#status-icon");
|
|
|
|
var statusIcon = content.find("#status-icon");
|
|
|
|
var description = content.find("#description");
|
|
|
|
var description = content.find("#description");
|
|
|
|
var successCallBack = function (response) {
|
|
|
|
var successCallBack = function (response) {
|
|
|
|
|
|
|
|
var res = response;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
res = JSON.parse(response).messageFromServer;
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
|
|
|
//do nothing
|
|
|
|
|
|
|
|
}
|
|
|
|
title.html("Response Received!");
|
|
|
|
title.html("Response Received!");
|
|
|
|
statusIcon.attr("class", defaultStatusClasses + " fw-success");
|
|
|
|
statusIcon.attr("class", defaultStatusClasses + " fw-check");
|
|
|
|
description.html(response);
|
|
|
|
description.html(res);
|
|
|
|
$(modalPopupContent).html(content.html());
|
|
|
|
$(modalPopupContent).html(content.html());
|
|
|
|
};
|
|
|
|
};
|
|
|
|
var errorCallBack = function (response) {
|
|
|
|
var errorCallBack = function (response) {
|
|
|
|