mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
Add _is_deleted status message to Controller and prompt for button click after paste delete
This commit is contained in:
parent
d69d29f3a9
commit
f2b60d3765
4 changed files with 26 additions and 8 deletions
|
@ -5626,11 +5626,11 @@ jQuery.PrivateBin = (function($, RawDeflate) {
|
|||
me.initZ();
|
||||
|
||||
// if delete token is passed (i.e. paste has been deleted by this
|
||||
// access), redirect to baseurl after 5 seconds
|
||||
// access), add an event listener for the 'new' paste button in the alert
|
||||
if (Model.hasDeleteToken()) {
|
||||
setTimeout(() => {
|
||||
$("#new-from-alert").on("click", function () {
|
||||
UiHelper.reloadHome();
|
||||
}, 5000);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue