diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-12-14 11:23:08 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-12-14 11:23:08 +0100 |
commit | f81a3ba45d50c0a0e4da68c17aba73425058e23d (patch) | |
tree | b406952b5cb4a3e51ccad56cd8d239525eefc602 /view/tpl/jot-header.tpl | |
parent | c771d2809fe3ff08e40854f4fe57b19e3440247e (diff) | |
download | volse-hubzilla-f81a3ba45d50c0a0e4da68c17aba73425058e23d.tar.gz volse-hubzilla-f81a3ba45d50c0a0e4da68c17aba73425058e23d.tar.bz2 volse-hubzilla-f81a3ba45d50c0a0e4da68c17aba73425058e23d.zip |
fix issue with linkdropper
Diffstat (limited to 'view/tpl/jot-header.tpl')
-rwxr-xr-x | view/tpl/jot-header.tpl | 4 |
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"); } } |