mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -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:
+4
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user