Compare commits
2 commits
bb18c9155b
...
4810a7ee97
| Author | SHA1 | Date | |
|---|---|---|---|
| 4810a7ee97 | |||
| ee42cb21dd |
2 changed files with 9 additions and 4 deletions
|
|
@ -118,10 +118,14 @@
|
|||
});
|
||||
Ox.$document.on({
|
||||
dragenter: function(event) {
|
||||
event.originalEvent.preventDefault();
|
||||
event.originalEvent.stopPropagation();
|
||||
if (!$('#importScreen').length && !$('#closedScreen').length) {
|
||||
oml.ui.importScreen().appendTo(Ox.$body);
|
||||
if (Ox.contains(event.originalEvent.dataTransfer.types, 'Files')) {
|
||||
event.originalEvent.preventDefault();
|
||||
event.originalEvent.stopPropagation();
|
||||
if (!$('#importScreen').length && !$('#closedScreen').length) {
|
||||
oml.ui.importScreen().appendTo(Ox.$body);
|
||||
}
|
||||
} else {
|
||||
console.log(event.originalEvent.dataTransfer);
|
||||
}
|
||||
},
|
||||
dragover: function(event) {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
"URL.js",
|
||||
"allItems.js",
|
||||
"annotation.js",
|
||||
"annotationFolder.js",
|
||||
"annotationPanel.js",
|
||||
"appDialog.js",
|
||||
"appPanel.js",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue