Compare commits

...

2 commits

Author SHA1 Message Date
j
4810a7ee97 only allow dropping of files 2019-01-24 13:56:59 +05:30
j
ee42cb21dd add folder 2019-01-24 13:56:35 +05:30
2 changed files with 9 additions and 4 deletions

View file

@ -118,11 +118,15 @@
});
Ox.$document.on({
dragenter: function(event) {
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) {
event.originalEvent.preventDefault();

View file

@ -4,6 +4,7 @@
"URL.js",
"allItems.js",
"annotation.js",
"annotationFolder.js",
"annotationPanel.js",
"appDialog.js",
"appPanel.js",