Browse Source

Show error message if image exceeds limit + fix close button

pull/6045/head
Jonny Tischbein 3 years ago
parent
commit
780d1edf04
  1. 1
      view/theme/frio/js/filebrowser.js
  2. 2
      view/theme/frio/templates/filebrowser.tpl

1
view/theme/frio/js/filebrowser.js

@ -176,6 +176,7 @@ var FileBrowser = {
},
onComplete: function(file,response) {
if (response['error'] != undefined) {
$(".fbrowser-content").show();
$(".error span").html(response['error']);
$(".error").removeClass('hidden');
$(".fbrowser .profile-rotator-wrapper").hide();

2
view/theme/frio/templates/filebrowser.tpl

@ -13,7 +13,7 @@
<input id="fb-type" type="hidden" name="type" value="{{$type}}" />
<div class="error hidden">
<span></span> <button type="button" class="btn btn-link" class="close" aria-label="Close">X</a>
<span></span> <button type="button" class="btn btn-link close" aria-label="Close">X</a>
</div>
{{* The breadcrumb navigation *}}

Loading…
Cancel
Save