fix jot drag and drop
This commit is contained in:
parent
a94c9d2709
commit
c72f6e6ea8
@ -484,7 +484,10 @@ var activeCommentText = '';
|
|||||||
|
|
||||||
// file drag hover
|
// file drag hover
|
||||||
function DragDropUploadFileHover(e) {
|
function DragDropUploadFileHover(e) {
|
||||||
e.target.className = (e.type == "dragover" ? "hover" : "");
|
if(e.type == 'dragover')
|
||||||
|
$(e.target).addClass('hover');
|
||||||
|
else
|
||||||
|
$(e.target).removeClass('hover');
|
||||||
}
|
}
|
||||||
|
|
||||||
// file selection
|
// file selection
|
||||||
@ -494,7 +497,7 @@ var activeCommentText = '';
|
|||||||
DragDropUploadFileHover(e);
|
DragDropUploadFileHover(e);
|
||||||
// open editor if it isn't yet initialised
|
// open editor if it isn't yet initialised
|
||||||
if (!editor) {
|
if (!editor) {
|
||||||
initEditor();
|
enableOnUser();
|
||||||
}
|
}
|
||||||
linkdrop(e);
|
linkdrop(e);
|
||||||
|
|
||||||
@ -586,7 +589,7 @@ $( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-del
|
|||||||
openEditor = true;
|
openEditor = true;
|
||||||
}
|
}
|
||||||
if(openEditor) {
|
if(openEditor) {
|
||||||
initEditor();
|
enableOnUser();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
postSaveChanges('clean');
|
postSaveChanges('clean');
|
||||||
|
Reference in New Issue
Block a user