mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Merge pull request #1283 from halfdan/prevent-drop-event
Prevent default drag/drop action.
This commit is contained in:
commit
47e507b37e
1 changed files with 4 additions and 0 deletions
|
@ -316,6 +316,10 @@
|
|||
$(e.target).closest('section').addClass('active');
|
||||
});
|
||||
|
||||
// Deactivate default drag/drop action
|
||||
$(document).bind('drop dragover', function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
},
|
||||
|
||||
events: {
|
||||
|
|
Loading…
Reference in a new issue