Code Standards

This commit is contained in:
Jonny Tischbein 2018-10-23 20:12:53 +02:00
parent d0c43c5597
commit ee006bdc18

View file

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