From ce5be6645e3477f3a47414a7857a71a345e28301 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Thu, 6 Feb 2025 20:27:35 +0100 Subject: [PATCH] Optimized /locationcontentsheet only-in-stock checkbox page reload persistence (in Chrome) (references #2669) --- public/viewjs/locationcontentsheet.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/viewjs/locationcontentsheet.js b/public/viewjs/locationcontentsheet.js index 6f03c723..2d823d60 100644 --- a/public/viewjs/locationcontentsheet.js +++ b/public/viewjs/locationcontentsheet.js @@ -27,3 +27,7 @@ $("#include-out-of-stock").change(function() window.location.reload(); }); +if (GetUriParam("include_out_of_stock")) +{ + $("#include-out-of-stock").prop("checked", false); +}