aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-12-14 11:23:08 +0100
committerMario Vavti <mario@mariovavti.com>2018-12-14 11:23:08 +0100
commitf81a3ba45d50c0a0e4da68c17aba73425058e23d (patch)
treeb406952b5cb4a3e51ccad56cd8d239525eefc602 /view
parentc771d2809fe3ff08e40854f4fe57b19e3440247e (diff)
downloadvolse-hubzilla-f81a3ba45d50c0a0e4da68c17aba73425058e23d.tar.gz
volse-hubzilla-f81a3ba45d50c0a0e4da68c17aba73425058e23d.tar.bz2
volse-hubzilla-f81a3ba45d50c0a0e4da68c17aba73425058e23d.zip
fix issue with linkdropper
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/jot-header.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index 2670ba9e7..b286b6071 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -219,7 +219,7 @@ var activeCommentText = '';
}
function linkdropper(event) {
- var linkFound = event.dataTransfer.types.contains("text/uri-list");
+ var linkFound = ((event.dataTransfer.types.indexOf("text/uri-list") > -1) ? true : false);
if(linkFound) {
event.preventDefault();
var editwin = '#' + event.target.id;
@@ -256,7 +256,7 @@ var activeCommentText = '';
commentwin = ((editwin.indexOf('comment') >= 0) ? true : false);
if(commentwin) {
var commentid = editwin.substring(editwin.lastIndexOf('-') + 1);
- commentOpen(document.getElementById(event.target.id),commentid);
+ $("#comment-edit-text-" + commentid).addClass("expanded");
}
}