Added success and error messages when change the event owner - #4309

This commit is contained in:
Tatiana Llorente 2019-07-10 11:05:06 +02:00
parent 936a7e839f
commit 8c7745768c

View File

@ -495,14 +495,22 @@ function event_change_owner() {
$("#button-owner_button").removeAttr("disabled");
$("#response_loading").hide();
if ($("#notification_owner_success").length) {
$("#notification_owner_success").hide();
}
if ($("#notification_owner_error").length) {
$("#notification_owner_error").hide();
}
if (data == "owner_ok") {
dt_events.draw(false);
$("#notification_owner_success").show();
if (new_owner == -1) {
new_owner = "";
new_owner = "N/A";
}
$("#extended_event_general_page table td.general_owner").text(
new_owner
$("#extended_event_general_page table td.general_owner").html(
"<i>" + new_owner + "</i>"
);
} else {
$("#notification_owner_error").show();