|
|
@ -45,13 +45,8 @@ $(function () {
|
|
|
|
|
|
|
|
|
|
|
|
var successCallback = function (jqXHR, status, resp) {
|
|
|
|
var successCallback = function (jqXHR, status, resp) {
|
|
|
|
if (resp.status == 201) {
|
|
|
|
if (resp.status == 201) {
|
|
|
|
$('.wr-validation-summary strong').text("Successfully created the group! You will be redirected to the group management page.");
|
|
|
|
$("#group-create-form").addClass("hidden");
|
|
|
|
$('.wr-validation-summary').removeClass("hidden");
|
|
|
|
$("#group-created-msg").removeClass("hidden");
|
|
|
|
$('.wr-validation-summary strong').removeClass("label-danger");
|
|
|
|
|
|
|
|
$('.wr-validation-summary strong').addClass("label-success");
|
|
|
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
|
|
|
window.location = "../groups";
|
|
|
|
|
|
|
|
}, 1500);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
displayErrors(resp.status);
|
|
|
|
displayErrors(resp.status);
|
|
|
|
}
|
|
|
|
}
|
|
|
|