aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-07-20 10:42:16 +0200
committerMario <mario@mariovavti.com>2018-07-20 10:43:38 +0200
commit0cde7f98975f5cbbc612d2fa3e4e2aa0849eea98 (patch)
tree64991d3710ba99e187a333dbede63ee8a42e4a01
parent85e21ce61731f1fac331becc0977b0f0d83e346e (diff)
downloadvolse-hubzilla-0cde7f98975f5cbbc612d2fa3e4e2aa0849eea98.tar.gz
volse-hubzilla-0cde7f98975f5cbbc612d2fa3e4e2aa0849eea98.tar.bz2
volse-hubzilla-0cde7f98975f5cbbc612d2fa3e4e2aa0849eea98.zip
fix jot drag and drop
(cherry picked from commit c72f6e6ea8d363c43de27760a2374230ce521606)
-rwxr-xr-xview/tpl/jot-header.tpl15
1 files changed, 9 insertions, 6 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index 365a922f9..cd8e3e97c 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -482,10 +482,13 @@ var activeCommentText = '';
}
- // file drag hover
- function DragDropUploadFileHover(e) {
- e.target.className = (e.type == "dragover" ? "hover" : "");
- }
+ // file drag hover
+ function DragDropUploadFileHover(e) {
+ if(e.type == 'dragover')
+ $(e.target).addClass('hover');
+ else
+ $(e.target).removeClass('hover');
+ }
// file selection
function DragDropUploadFileSelectHandler(e) {
@@ -494,7 +497,7 @@ var activeCommentText = '';
DragDropUploadFileHover(e);
// open editor if it isn't yet initialised
if (!editor) {
- initEditor();
+ enableOnUser();
}
linkdrop(e);
@@ -586,7 +589,7 @@ $( document ).on( "click", ".wall-item-delete-link,.page-delete-link,.layout-del
openEditor = true;
}
if(openEditor) {
- initEditor();
+ enableOnUser();
}
} else {
postSaveChanges('clean');