mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-04 17:21:43 +02:00
Add Copy functionality and corresponding toasts
This commit is contained in:
@ -59,7 +59,13 @@ function requestDeletionAsUser(id) {
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
success: function(result) {
|
||||
bootbox.alert("Eintrag zurückgezogen!")
|
||||
toast = {
|
||||
title: "Erfolgreich zurückgezogen",
|
||||
message: "Eintrag wurde gelöscht",
|
||||
status: TOAST_STATUS.SUCCESS,
|
||||
timeout: 5000
|
||||
}
|
||||
Toast.create(toast);
|
||||
location.reload()
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user