This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository fateserver.

commit 882eff6c3d991cd1e6245f0b706ef45f2b4b1cc5
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Sat Aug 15 15:02:03 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Sat Aug 15 15:29:39 2026 +0200

    index: make "clear all" actually clear
    
    Fixes those buttons to actually do anything, instead of reloading the
    same url.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 index.cgi | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/index.cgi b/index.cgi
index e585c4e..40401da 100755
--- a/index.cgi
+++ b/index.cgi
@@ -103,8 +103,10 @@ for my $slot (@slots) {
     }
 }
 
+my $clear = '?' . join '&amp;', other_params();
+
 @reps or fail @queries ? 'No items matching search criteria. ' .
-                         "<a href=\"\">Clear all search criteria.</a>" :
+                         "<a href=\"$clear\">Clear all search criteria.</a>" :
                          'No data in $fatedir.';
 
 # Percentage of $n out of $total, rounded to one decimal for display.
@@ -264,7 +266,7 @@ if (@queries) {
         my ($type, $text) = @$this_query;
         print encode_entities("$type: $text", '<>&"'), '; ';
     }
-    anchor 'clear all.', href => "";
+    anchor 'clear all.', href => $clear;
     end 'p';
 }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to