Issue 5721: Temporarily deactivate the picture upload from private mails

This commit is contained in:
Michael 2018-09-13 15:46:37 +00:00
parent 18fd86f51e
commit 63b5cb4fc6
2 changed files with 6 additions and 1 deletions

View file

@ -81,6 +81,11 @@ $(function() {
Dialog.doImageBrowser("comment", id); Dialog.doImageBrowser("comment", id);
return; return;
} }
if (bbcode == "imgprv") {
bbcode = "img";
}
insertFormatting(bbcode, id); insertFormatting(bbcode, id);
}); });

View 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"> <ul id="prvmail-text-edit-bb" class="comment-edit-bb comment-icon-list nav nav-pills hidden-xs pull-left">
<li> <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> <i class="fa fa-picture-o" aria-hidden="true"></i>
</button> </button>
</li> </li>