mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
Use original reload function for manual paste open link
This fixes the issue where clicking on the link took you to the home page.
I seriously missed that this.reloadPage does not do the thing I thought it does,
so I updated the doc to make it clear and switched back to the correct function.
Basically reverts 86cd5e1c15
This commit is contained in:
parent
e483d60eed
commit
5ad02a3d1c
3 changed files with 6 additions and 4 deletions
|
@ -1350,6 +1350,8 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
|
|||
/**
|
||||
* reload the page
|
||||
*
|
||||
* This takes the user to the PrivateBin home page.
|
||||
*
|
||||
* @name controller.reloadPage
|
||||
* @function
|
||||
* @param {Event} event
|
||||
|
@ -1552,8 +1554,8 @@ 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
|
||||
this.reloadPage(event);
|
||||
// if so we need to load link by reloading the current site
|
||||
window.location.reload(true);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue