fix up bug where empty file_rbp did not work and displayed in the wrong div
This commit is contained in:
@@ -585,12 +585,11 @@ function getPage(pageNumber, successCallback, viewingIdx=0)
|
||||
// if search, disable folders
|
||||
if( OPT.search_term )
|
||||
$('#folders').prop('disabled', 'disabled').removeClass('border-info').addClass('border-secondary').removeClass('text-info').addClass('text-secondary');
|
||||
else if( res == [] )
|
||||
else if( document.entries.length == 0 )
|
||||
{
|
||||
html=`<span class="alert alert-danger p-2 col-auto">No files in Path!'</span>`
|
||||
console.log(html)
|
||||
html=`<span class="alert alert-danger p-2 col-auto">No files in Path</span>`
|
||||
$('#file_list_div').append(html)
|
||||
$('#files_div').append(html)
|
||||
$('#figures').append(html)
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) { console.error("Error:", error); } });
|
||||
|
||||
Reference in New Issue
Block a user