Commit d51d0160 authored by Mario's avatar Mario Committed by Mario

fix issue with linkdropper


(cherry picked from commit f81a3ba4)
parent c2ad9d49
Pipeline #96528 passed with stage
in 5 minutes and 43 seconds
......@@ -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");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment