From 27e06a9462ad9d29132161b896fecb41a5cbe908 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 12 Oct 2025 21:22:14 +1100 Subject: [PATCH] any change of opts needs to invaldiate cache --- internal/js/files_support.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/js/files_support.js b/internal/js/files_support.js index 39e7cd3..ce2ceb4 100644 --- a/internal/js/files_support.js +++ b/internal/js/files_support.js @@ -700,11 +700,9 @@ function isMobile() { // when we change one of the options (noo, how_many, folders) - then update '{how_many} files' str, // tweak noo menu for folders/flat view then reset the page contents based on current OPT values function changeOPT(successCallback) { - var old_how_many=OPT.how_many OPT.how_many=$('#how_many').val() - // if we change how_many invalidate page cache as page size is different now - if( OPT.how_many != old_how_many ) - document.page.length=0 + // changes invalidate page cache so clear it out + document.page.length=0 new_f=$('#folders').val() new_f=( new_f == 'True' ) // if change to/from folders, also fix the noo menu