]> git.mxchange.org Git - friendica.git/blobdiff - view/js/linkPreview.js
Remove DI dependency from Module\Contact\Profile
[friendica.git] / view / js / linkPreview.js
index 76d49adc947cda5023c60b3610661fc8f57effa8..28c8df9b673f01f53ae1af88663a0c73432bddc0 100644 (file)
@@ -31,7 +31,7 @@
                        </div>\
                        <div id="previewImages_' + id + '" class="previewImages">\
                                <div id="previewImgBtn_' + id + '" class="previewImgBtn">\
-                                       <button type="button" id="previewChangeImg_' + id + '" class="buttonChangeDeactive previewActionBtn" style="display: none">\
+                                       <button type="button" id="previewChangeImg_' + id + '" class="buttonChangeDeactivate previewActionBtn" style="display: none">\
                                                <i class="fa fa-exchange" aria-hidden="true"></i>\
                                        </button>\
                                </div>\
                                isExtern = true;
                        }
 
-                       // Don't procces the textarea input if we have already
+                       // Don't process the textarea input if we have already
                        // an attachment preview.
                        if (!isExtern && isActive) {
                                return;
                };
 
                /**
-                * Proccess all attachment data and show up a html
+                * Process all attachment data and show up a html
                 * attachment preview.
                 * 
                 * @param {obj} data Attachment data.
 
                        // More than just one image.
                        if (images.length > 1) {
-                               // Enable the the button to change the preview pictures.
+                               // Enable the button to change the preview pictures.
                                $('#previewChangeImg_' + id).show();
 
                                if (firstPosted === false) {
                                $('#previewImage_' + id).html(appendImage);
                                $('#attachmentImageSrc_' + id).val(bin2hex(image));
 
-                               // We need to add the image widht and height when it is 
+                               // We need to add the image width and height when it is 
                                // loaded.
                                $('<img/>' ,{
                                        load : function(){
        }
 
        /**
-        * Get the cursor posiotion in an text element.
+        * Get the cursor position in an text element.
         * 
         * @param {object} ctrl Textarea element.
         * @returns {integer} Position of the cursor.