From d69d29f3a940b443760f1e227df6628e3f4cfb3f Mon Sep 17 00:00:00 2001 From: parthiv-m Date: Mon, 7 Oct 2024 17:42:37 -0400 Subject: [PATCH 01/13] Fix: Once a paste is deleted, navigate to the home page after 5 seconds; change type of the corresponding alert to alert-success --- js/privatebin.js | 5 ++++- tpl/bootstrap.php | 2 +- tpl/bootstrap5.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 9c843628..a5ab23bd 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -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; } diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 901bced7..74712355 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -490,7 +490,7 @@ if ($FILEUPLOAD) : -