]> git.mxchange.org Git - friendica.git/commitdiff
Code Standard: indent + renaming function in camelcase
authorJonny Tischbein <jonny_tischbein@systemli.org>
Wed, 24 Oct 2018 16:09:54 +0000 (18:09 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Wed, 24 Oct 2018 16:09:54 +0000 (18:09 +0200)
view/theme/frio/js/textedit.js
view/theme/frio/templates/jot-header.tpl
view/theme/frio/templates/jot.tpl

index 5074c3009cd1876e0c1fa606de77f52c7b452c38..bf68d0f5dcb41b9c375143974e2e5d7ee572fbcb 100644 (file)
@@ -2,9 +2,9 @@
  * @brief The file contains functions for text editing and commenting
  */
 
-function commentGetLink(id,prompttext) {
-    reply = prompt(prompttext);
-    if(reply && reply.length) {
+function commentGetLink(id, prompttext) {
+       reply = prompt(prompttext);
+       if(reply && reply.length) {
                reply = bin2hex(reply);
                $.get('parse_url?noAttachment=1&binurl=' + reply, function(data) {
                        addCommentText(data, id);
index 8289692f377a7bb52fa0c32937db4ea662c5e749..73c7690f6e6e5595290d4f86ceda09c682efa810 100644 (file)
                $("#jot-popup").show();
        }
 
-       function linkdropper(event) {
+       function linkDropper(event) {
                var linkFound = event.dataTransfer.types.contains("text/uri-list");
                if(linkFound)
                        event.preventDefault();
        }
 
-       function linkdrop(event) {
+       function linkDrop(event) {
                var reply = event.dataTransfer.getData("text/uri-list");
                var noAttachment = '';
                event.target.textContent = reply;
index 46d0351d9dae0181c1d6c9401c457cab6061945a..b5c061b75c07447e612d190dc0119e45c7f8e9c0 100644 (file)
@@ -98,7 +98,7 @@
                                                <li role="presentation"><button type="button" class="hidden-xs btn-link icon bold" style="cursor: pointer;" aria-label="{{$edbold}}" title="{{$edbold}}" onclick="insertFormattingToPost('b');"><i class="fa fa-bold"></i></button></li>
                                                <li role="presentation"><button type="button" class="hidden-xs btn-link icon quote" style="cursor: pointer;" aria-label="{{$edquote}}" title="{{$edquote}}" onclick="insertFormattingToPost('quote');"><i class="fa fa-quote-left"></i></button></li>
                                                <li role="presentation"><button type="button" class="btn-link icon" style="cursor: pointer;" aria-label="{{$edurl}}" title="{{$edurl}}" onclick="insertFormattingToPost('url');"><i class="fa fa-link"></i></button></li>
-                                               <li role="presentation"><button type="button" class="btn-link" id="profile-attach"  ondragenter="return linkdropper(event);" ondragover="return linkdropper(event);" ondrop="linkdrop(event);" onclick="jotGetLink();" title="{{$edattach}}"><i class="fa fa-paperclip"></i></button></li>
+                                               <li role="presentation"><button type="button" class="btn-link" id="profile-attach"  ondragenter="return linkDropper(event);" ondragover="return linkDropper(event);" ondrop="linkDrop(event);" onclick="jotGetLink();" title="{{$edattach}}"><i class="fa fa-paperclip"></i></button></li>
                                                <li role="presentation"><button type="button" class="btn-link" id="profile-location" onclick="jotGetLocation();" title="{{$setloc}}"><i class="fa fa-map-marker" aria-hidden="true"></i></button></li>
                                                <!-- TODO: waiting for a better placement
                                                <li><button type="button" class="btn-link" id="profile-nolocation" onclick="jotClearLocation();" title="{{$noloc}}">{{$shortnoloc}}</button></li>