Enables error messages for files too

This commit is contained in:
Jonny Tischbein 2018-10-29 23:28:20 +01:00
parent 780d1edf04
commit f4d2f78233

View file

@ -176,10 +176,10 @@ 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();
$(".fbrowser-content").show();
return; return;
} }
@ -210,6 +210,7 @@ var FileBrowser = {
$(".error span").html(response['error']); $(".error span").html(response['error']);
$(".error").removeClass('hidden'); $(".error").removeClass('hidden');
$('#profile-rotator').hide(); $('#profile-rotator').hide();
$(".fbrowser-content").show();
return; return;
} }