From ee006bdc187739ff64887117100d3621215beb6b Mon Sep 17 00:00:00 2001 From: Jonny Tischbein Date: Tue, 23 Oct 2018 20:12:53 +0200 Subject: [PATCH] Code Standards --- view/theme/frio/js/textedit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/view/theme/frio/js/textedit.js b/view/theme/frio/js/textedit.js index f9f4ff37f..3bfec8cfe 100644 --- a/view/theme/frio/js/textedit.js +++ b/view/theme/frio/js/textedit.js @@ -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(); + } }