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