mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +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:
@@ -423,7 +423,8 @@ $(document).ready(function() {
|
|||||||
$(this).removeClass('ui-state-hover');
|
$(this).removeClass('ui-state-hover');
|
||||||
$(this).closest('.Inputfield').removeClass('pw-drag-in-file');
|
$(this).closest('.Inputfield').removeClass('pw-drag-in-file');
|
||||||
}, false);
|
}, false);
|
||||||
dropArea.addEventListener("dragenter", function() {
|
dropArea.addEventListener("dragenter", function(evt) {
|
||||||
|
evt.preventDefault();
|
||||||
$(this).addClass('ui-state-hover');
|
$(this).addClass('ui-state-hover');
|
||||||
$(this).closest('.Inputfield').addClass('pw-drag-in-file');
|
$(this).closest('.Inputfield').addClass('pw-drag-in-file');
|
||||||
}, false);
|
}, false);
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -1203,7 +1203,8 @@ function InputfieldImage($) {
|
|||||||
dragStop();
|
dragStop();
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
el.addEventListener("dragenter", function() {
|
el.addEventListener("dragenter", function(evt) {
|
||||||
|
evt.preventDefault();
|
||||||
dragStart();
|
dragStart();
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user