Show error message if image exceeds limit + fix close button
This commit is contained in:
parent
933f43218a
commit
780d1edf04
2 changed files with 2 additions and 1 deletions
|
@ -176,6 +176,7 @@ var FileBrowser = {
|
||||||
},
|
},
|
||||||
onComplete: function(file,response) {
|
onComplete: function(file,response) {
|
||||||
if (response['error'] != undefined) {
|
if (response['error'] != undefined) {
|
||||||
|
$(".fbrowser-content").show();
|
||||||
$(".error span").html(response['error']);
|
$(".error span").html(response['error']);
|
||||||
$(".error").removeClass('hidden');
|
$(".error").removeClass('hidden');
|
||||||
$(".fbrowser .profile-rotator-wrapper").hide();
|
$(".fbrowser .profile-rotator-wrapper").hide();
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<input id="fb-type" type="hidden" name="type" value="{{$type}}" />
|
<input id="fb-type" type="hidden" name="type" value="{{$type}}" />
|
||||||
|
|
||||||
<div class="error hidden">
|
<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>
|
</div>
|
||||||
|
|
||||||
{{* The breadcrumb navigation *}}
|
{{* The breadcrumb navigation *}}
|
||||||
|
|
Loading…
Reference in a new issue