1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 00:37:02 +02:00

Fix issue processwire/processwire-issues#418 to fix file/image drag-to-upload in IE11 using fix provided by @Toutouwai

This commit is contained in:
Ryan Cramer
2017-11-02 09:37:23 -04:00
parent 34d15dadae
commit ece560daa1
4 changed files with 6 additions and 4 deletions

View File

@@ -423,7 +423,8 @@ $(document).ready(function() {
$(this).removeClass('ui-state-hover');
$(this).closest('.Inputfield').removeClass('pw-drag-in-file');
}, false);
dropArea.addEventListener("dragenter", function() {
dropArea.addEventListener("dragenter", function(evt) {
evt.preventDefault();
$(this).addClass('ui-state-hover');
$(this).closest('.Inputfield').addClass('pw-drag-in-file');
}, false);

File diff suppressed because one or more lines are too long

View File

@@ -1203,7 +1203,8 @@ function InputfieldImage($) {
dragStop();
}, false);
el.addEventListener("dragenter", function() {
el.addEventListener("dragenter", function(evt) {
evt.preventDefault();
dragStart();
}, false);

File diff suppressed because one or more lines are too long