Add cursor styling to raid response drag 'n drop.

This commit is contained in:
Casper V. Kristensen 2020-09-22 20:20:34 +02:00
parent 1c72c58781
commit 4bcdf7eca9
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -189,6 +189,10 @@
event.interaction.start({name: "drag"}, event.interactable, clone);
});
document.querySelectorAll(".response-character-alert").forEach(function (element) {
element.style.cursor = "move";
});
interact(".response-container").dropzone({
accept: ".response-character-alert",
ondrop(event) {
@ -210,6 +214,7 @@
mode: "same-origin",
body: form,
}).then(function (response) {
document.body.style.cursor = "wait";
location.reload();
});
}