X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Findex_rd.php;h=8f724d11edd5c674ecc27b7809c47300050e7c6c;hb=d3e4e8c776b5137afd929942b114afed074bacdf;hp=8b25ae0f222f312ac4d4cf691d1085a503b361e3;hpb=036dd8785fbdf8172c0c395a32153eefc9c0e509;p=brisk.git diff --git a/web/index_rd.php b/web/index_rd.php index 8b25ae0..8f724d1 100644 --- a/web/index_rd.php +++ b/web/index_rd.php @@ -57,7 +57,7 @@ function unrecerror() $is_page_streaming = TRUE; log_rd2("UNREC_ERROR:".var_export(debug_backtrace())); - return (sprintf('the_end=true; window.onunload = null; document.location.assign("index.php");')); + return (sprintf('the_end=true; window.onunload = null; window.onbeforeunload = null; document.location.assign("index.php");')); } function page_sync($sess, $page, $table_idx, $table_token) @@ -69,7 +69,7 @@ function page_sync($sess, $page, $table_idx, $table_token) $is_page_streaming = TRUE; log_rd2("PAGE_SYNC"); - return (sprintf('createCookie("table_idx", %d, 24*365, cookiepath); createCookie("table_token", "%s", 24*365, cookiepath); the_end=true; window.onunload = null; document.location.assign("%s");', $table_idx, $table_token, $page)); + return (sprintf('createCookie("table_idx", %d, 24*365, cookiepath); createCookie("table_token", "%s", 24*365, cookiepath); the_end=true; window.onunload = null; window.onbeforeunload = null; document.location.assign("%s");', $table_idx, $table_token, $page)); }