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 search, disable folders
|
||||||
if( OPT.search_term )
|
if( OPT.search_term )
|
||||||
$('#folders').prop('disabled', 'disabled').removeClass('border-info').addClass('border-secondary').removeClass('text-info').addClass('text-secondary');
|
$('#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>`
|
html=`<span class="alert alert-danger p-2 col-auto">No files in Path</span>`
|
||||||
console.log(html)
|
|
||||||
$('#file_list_div').append(html)
|
$('#file_list_div').append(html)
|
||||||
$('#files_div').append(html)
|
$('#figures').append(html)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(xhr, status, error) { console.error("Error:", error); } });
|
error: function(xhr, status, error) { console.error("Error:", error); } });
|
||||||
|
|||||||
Reference in New Issue
Block a user