From 86cd5e1c152d12c114d98d4b7f9277a37b9c334a Mon Sep 17 00:00:00 2001 From: rugk Date: Sun, 5 Feb 2017 22:35:44 +0100 Subject: [PATCH] Use existing reload function --- js/privatebin.js | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 3070aad..86ed9fc 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -1510,7 +1510,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) { // check if location is (already) shown in URL bar if (window.location.href === this.pasteUrl.attr('href')) { // if so we need to load link by reloading the site - location.reload(true); + this.reloadPage(event); } }, diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index cf41871..ebace8b 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -69,7 +69,7 @@ if ($MARKDOWN): - + diff --git a/tpl/page.php b/tpl/page.php index 042bc42..ce2ea7a 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -47,7 +47,7 @@ if ($MARKDOWN): - +