Add cursor styling to raid response drag 'n drop.
This commit is contained in:
parent
1c72c58781
commit
4bcdf7eca9
|
@ -189,6 +189,10 @@
|
||||||
event.interaction.start({name: "drag"}, event.interactable, clone);
|
event.interaction.start({name: "drag"}, event.interactable, clone);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.querySelectorAll(".response-character-alert").forEach(function (element) {
|
||||||
|
element.style.cursor = "move";
|
||||||
|
});
|
||||||
|
|
||||||
interact(".response-container").dropzone({
|
interact(".response-container").dropzone({
|
||||||
accept: ".response-character-alert",
|
accept: ".response-character-alert",
|
||||||
ondrop(event) {
|
ondrop(event) {
|
||||||
|
@ -210,6 +214,7 @@
|
||||||
mode: "same-origin",
|
mode: "same-origin",
|
||||||
body: form,
|
body: form,
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
|
document.body.style.cursor = "wait";
|
||||||
location.reload();
|
location.reload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue