Browse Source

Code Standards

pull/6013/head
Jonny Tischbein 3 years ago
parent
commit
ee006bdc18
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      view/theme/frio/js/textedit.js

+ 3
- 2
view/theme/frio/js/textedit.js View File

@ -28,7 +28,7 @@ function commentlinkdrop(event, id) {
var reply = event.dataTransfer.getData("text/uri-list");
event.target.textContent = reply;
event.preventDefault();
if(reply && reply.length) {
if (reply && reply.length) {
reply = bin2hex(reply);
$.get('parse_url?isComment=1&binurl=' + reply, function(data) {
addcommenttext(data, id);
@ -38,8 +38,9 @@ function commentlinkdrop(event, id) {
function commentlinkdropper(event) {
var linkFound = event.dataTransfer.types.contains("text/uri-list");
if(linkFound)
if (linkFound) {
event.preventDefault();
}
}


Loading…
Cancel
Save