From f275da33e04b2044a1a83b8c9782f80614816f78 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 18 Jun 2021 01:05:06 +1000 Subject: [PATCH] if you go into a new dir (up or down), offset is put back to 0 --- templates/files.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/files.html b/templates/files.html index 9310439..d1866e9 100644 --- a/templates/files.html +++ b/templates/files.html @@ -458,7 +458,7 @@ $(document).ready(function() { $('#prev').addClass('disabled') $('#prev').prop('disabled', true) } - $(".dir").click( function(e) { $('#cwd').val( $(this).attr('dir') ) ; $('#main_form').submit() } ) + $(".dir").click( function(e) { $('#offset').val(0) ; $('#cwd').val( $(this).attr('dir') ) ; $('#main_form').submit() } ) } ) {% endblock script_content %}