From: Matteo Nastasi Date: Sun, 19 Apr 2020 10:39:25 +0000 (+0200) Subject: prevent_reuse as input hidden DOM item X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=3bbccb8ce2566cabb37199c1e8ed7e9bdc23e426;p=brisk.git prevent_reuse as input hidden DOM item --- diff --git a/web/index.php b/web/index.php index 9e3efe5..8313cb9 100644 --- a/web/index.php +++ b/web/index.php @@ -1254,21 +1254,20 @@ cookie_law(null); // var nonunload = false; var spo_slide, sup_slide; - var prevent_reuse = ""; window.onload = function() { - if (prevent_reuse == "") { - prevent_reuse = "first load"; - } - else { - location.reload(); - } - g_brow = get_browser_agent(); + if ($$('#prevent_reuse').val() == "") { + $$('#prevent_reuse').val("first load"); + } + else { + location.reload(); + } + g_brow = get_browser_agent(); - g_prefs = new client_prefs(null); + g_prefs = new client_prefs(null); - spo_slide = new sideslide($('spon_caro'), 80, 20); - sup_slide = new sideslide($('supp_caro'), 80, 20); + spo_slide = new sideslide($('spon_caro'), 80, 20); + sup_slide = new sideslide($('supp_caro'), 80, 20); +