aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/jot-header.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-12-14 10:23:08 +0000
committerMario <mario@mariovavti.com>2018-12-14 21:32:23 +0100
commitd51d0160d3f7664474c2d87e85b60625b1e0c3d5 (patch)
treef64bb06b7f6d30f714bcf7f2f0ec73aac4450401 /view/tpl/jot-header.tpl
parentc2ad9d4996840d8b76ca1d29cffc10c7d4723b39 (diff)
downloadvolse-hubzilla-d51d0160d3f7664474c2d87e85b60625b1e0c3d5.tar.gz
volse-hubzilla-d51d0160d3f7664474c2d87e85b60625b1e0c3d5.tar.bz2
volse-hubzilla-d51d0160d3f7664474c2d87e85b60625b1e0c3d5.zip
fix issue with linkdropper
(cherry picked from commit f81a3ba45d50c0a0e4da68c17aba73425058e23d)
Diffstat (limited to 'view/tpl/jot-header.tpl')
-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");
}
}