Browse Source

Merge pull request #6045 from JonnyTischbein/issue_fbrowser-error-msg

[frio] Show error message on image upload
pull/6049/head
Hypolite Petovan 3 years ago
committed by GitHub
parent
commit
92c9c940f4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      view/theme/frio/js/filebrowser.js
  2. 2
      view/theme/frio/templates/filebrowser.tpl

2
view/theme/frio/js/filebrowser.js

@ -179,6 +179,7 @@ var FileBrowser = {
$(".error span").html(response['error']);
$(".error").removeClass('hidden');
$(".fbrowser .profile-rotator-wrapper").hide();
$(".fbrowser-content").show();
return;
}
@ -209,6 +210,7 @@ var FileBrowser = {
$(".error span").html(response['error']);
$(".error").removeClass('hidden');
$('#profile-rotator').hide();
$(".fbrowser-content").show();
return;
}

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