Reformatting code

revert-70aa11f8
megala21 8 years ago
parent 25e0b989d2
commit f41a692bf3

@ -411,7 +411,6 @@ function attachEvents() {
$(errorMsg).text("To create a new role with the combination of roles, at least two roles should be" + $(errorMsg).text("To create a new role with the combination of roles, at least two roles should be" +
" selected."); " selected.");
$(errorMsgWrapper).removeClass("hidden"); $(errorMsgWrapper).removeClass("hidden");
} }
}); });
}); });
@ -633,6 +632,9 @@ function displayErrors(jqXHR) {
}); });
} else { } else {
$(modalPopupContent).html($('#group-unexpected-error-content').html()); $(modalPopupContent).html($('#group-unexpected-error-content').html());
if (jqXHR.responseText) {
$('#unexp-error-msg').html(jqXHR.responseText.replace(new RegExp("\"", 'g'), ""));
}
$("a#group-unexpected-error-link").click(function () { $("a#group-unexpected-error-link").click(function () {
hidePopup(); hidePopup();
}); });

Loading…
Cancel
Save