mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Added success and error messages when change the event owner - #4309
This commit is contained in:
parent
936a7e839f
commit
8c7745768c
@ -495,14 +495,22 @@ function event_change_owner() {
|
|||||||
$("#button-owner_button").removeAttr("disabled");
|
$("#button-owner_button").removeAttr("disabled");
|
||||||
$("#response_loading").hide();
|
$("#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") {
|
if (data == "owner_ok") {
|
||||||
dt_events.draw(false);
|
dt_events.draw(false);
|
||||||
$("#notification_owner_success").show();
|
$("#notification_owner_success").show();
|
||||||
if (new_owner == -1) {
|
if (new_owner == -1) {
|
||||||
new_owner = "";
|
new_owner = "N/A";
|
||||||
}
|
}
|
||||||
$("#extended_event_general_page table td.general_owner").text(
|
$("#extended_event_general_page table td.general_owner").html(
|
||||||
new_owner
|
"<i>" + new_owner + "</i>"
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$("#notification_owner_error").show();
|
$("#notification_owner_error").show();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user