mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
Fix: Once a paste is deleted, navigate to
the home page after 5 seconds; change type of the corresponding alert to alert-success
This commit is contained in:
parent
545ef9f64a
commit
d69d29f3a9
3 changed files with 6 additions and 3 deletions
|
@ -5626,8 +5626,11 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
me.initZ();
|
||||
|
||||
// if delete token is passed (i.e. paste has been deleted by this
|
||||
// access), there is nothing more to do
|
||||
// access), redirect to baseurl after 5 seconds
|
||||
if (Model.hasDeleteToken()) {
|
||||
setTimeout(() => {
|
||||
UiHelper.reloadHome();
|
||||
}, 5000);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue