diff --git a/internal/js/files_support.js b/internal/js/files_support.js index f27bab0..a8fe419 100644 --- a/internal/js/files_support.js +++ b/internal/js/files_support.js @@ -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=`No files in Path!'` - console.log(html) + html=`No files in Path` $('#file_list_div').append(html) - $('#files_div').append(html) + $('#figures').append(html) } }, error: function(xhr, status, error) { console.error("Error:", error); } });