]> git.mxchange.org Git - friendica.git/commitdiff
Issue 5721: Temporarily deactivate the picture upload from private mails
authorMichael <heluecht@pirati.ca>
Thu, 13 Sep 2018 15:46:37 +0000 (15:46 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 13 Sep 2018 15:46:37 +0000 (15:46 +0000)
view/js/main.js
view/theme/frio/templates/prv_message.tpl

index 4ccbc8044ebb20b636b8cb824635c8fc75de910d..83086c82b037b4f322bf832b98e233fcde979f18 100644 (file)
@@ -81,6 +81,11 @@ $(function() {
                        Dialog.doImageBrowser("comment", id);
                        return;
                }
+
+               if (bbcode == "imgprv") {
+                       bbcode = "img";
+               }
+
                insertFormatting(bbcode, id);
        });
 
index 4c90dcae6d8e09a084d444f60b9f316cad8753ae..9077c4d4c1e274433c0ed846694de64261df7152 100644 (file)
@@ -33,7 +33,7 @@
 
        <ul id="prvmail-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
                                <li>
-                                       <button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="img" data-id="input">
+                                       <button type="button" class="btn-link icon bb-img" style="cursor: pointer;" title="{{$edimg|escape:'html'}}" data-role="insert-formatting" data-comment=" " data-bbcode="imgprv" data-id="input">
                                                <i class="fa fa-picture-o" aria-hidden="true"></i>
                                        </button>
                                </li>