Commit 46fde328 authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

fix: dropping card on firefox shouldn't redirect the user anymore

parent e7d865c5
Pipeline #35387 passed with stages
in 1 minute and 52 seconds
......@@ -140,6 +140,9 @@ window.cardDrop = function(event) {
rebuild_cards();
}
refresh_drop_to_add_button();
if (event.preventDefault) event.preventDefault();
if (event.stopPropagation) event.stopPropagation();
}
window.cardDropDiscard = function(event) {
let serializedCard = event.dataTransfer.getData("card");
......@@ -154,6 +157,8 @@ window.cardDropDiscard = function(event) {
rebuild_cards();
}
refresh_drop_to_add_button();
if (event.preventDefault) event.preventDefault();
if (event.stopPropagation) event.stopPropagation();
}
window.allowDrop = function(event) {
event.preventDefault();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment