]> git.mxchange.org Git - friendica.git/commitdiff
Code Standards
authorJonny Tischbein <jonny_tischbein@systemli.org>
Tue, 23 Oct 2018 18:12:53 +0000 (20:12 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Tue, 23 Oct 2018 18:12:53 +0000 (20:12 +0200)
view/theme/frio/js/textedit.js

index f9f4ff37fc0d452f04255b3085403965e5965ae0..3bfec8cfe6ef7f3ff167c0184ec9de263dfe4979 100644 (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();
+    }
 }