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

[frio] Show error message on image upload
This commit is contained in:
Hypolite Petovan 2018-10-29 23:33:11 -04:00 committed by GitHub
commit 92c9c940f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

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

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