[fb] Fix possible JS error after permanently deleting files
@@ -1678,7 +1678,9 @@ from filebrowser.conf import ENABLE_EXTRACT_UPLOADED_ARCHIVE
%if is_embeddable:
$scrollable = $('.page-content');
%endif
+ if ($('.row-deleted').length() > 0 && $('.row-deleted:eq(0)').offset()) {
$scrollable.scrollTop($('.row-deleted:eq(0)').offset().top - 150);
+ }
}, 500);
window.setTimeout(function(){
$(self.selectedFiles()).each(function (index, file) {
