file drop improvements
This commit is contained in:
parent
6274ae08ea
commit
61fe4d2805
1 changed files with 5 additions and 1 deletions
|
@ -98,7 +98,7 @@
|
|||
dragenter: function(event) {
|
||||
event.originalEvent.preventDefault();
|
||||
event.originalEvent.stopPropagation();
|
||||
if (!$('#importScreen').length) {
|
||||
if (!$('#importScreen').length && !$('closedScreen').length) {
|
||||
oml.ui.importScreen().appendTo(Ox.$body);
|
||||
}
|
||||
},
|
||||
|
@ -106,6 +106,10 @@
|
|||
event.originalEvent.preventDefault();
|
||||
event.originalEvent.stopPropagation();
|
||||
},
|
||||
dragstart: function(event) {
|
||||
event.originalEvent.preventDefault();
|
||||
event.originalEvent.stopPropagation();
|
||||
},
|
||||
drop: function(event) {
|
||||
$('#importScreen').remove();
|
||||
if (event.originalEvent.dataTransfer.files) {
|
||||
|
|
Loading…
Reference in a new issue