Selaa lähdekoodia

Use existing reload function

rugk 9 vuotta sitten
vanhempi
sitoutus
86cd5e1c15
3 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 1
      js/privatebin.js
  2. 1 1
      tpl/bootstrap.php
  3. 1 1
      tpl/page.php

+ 1 - 1
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);
             }
         },
 

+ 1 - 1
tpl/bootstrap.php

@@ -69,7 +69,7 @@ if ($MARKDOWN):
 <?php
 endif;
 ?>
-		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-K+5hyQ7JbqWRHoidP56Ox7nIqgGrD9SRfSMv1L0gJDzXhDeYhwwj5F0/FXcEfoFMcTiJGLkFTLmuDxhsjksywA==" crossorigin="anonymous"></script>
+		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-NL5hBaBCJzesfcYEklqF8g1XRWiJcBQpG9QeNIKiDyQCu+zMb9UI0kjyl8Ld1DmXSC7xh8mbV+++tMcWGWgroA==" crossorigin="anonymous"></script>
 		<!--[if lt IE 10]>
 		<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
 		<![endif]-->

+ 1 - 1
tpl/page.php

@@ -47,7 +47,7 @@ if ($MARKDOWN):
 <?php
 endif;
 ?>
-		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-K+5hyQ7JbqWRHoidP56Ox7nIqgGrD9SRfSMv1L0gJDzXhDeYhwwj5F0/FXcEfoFMcTiJGLkFTLmuDxhsjksywA==" crossorigin="anonymous"></script>
+		<script type="text/javascript" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-NL5hBaBCJzesfcYEklqF8g1XRWiJcBQpG9QeNIKiDyQCu+zMb9UI0kjyl8Ld1DmXSC7xh8mbV+++tMcWGWgroA==" crossorigin="anonymous"></script>
 		<!--[if lt IE 10]>
 		<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
 		<![endif]-->