mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +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");
|
||||
$("#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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user