Show error message if image exceeds limit + fix close button

This commit is contained in:
Jonny Tischbein 2018-10-29 23:06:42 +01:00
parent 933f43218a
commit 780d1edf04
2 changed files with 2 additions and 1 deletions

View file

@ -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();

View file

@ -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 *}}