@@ -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;
}
@@ -490,7 +490,7 @@ if ($FILEUPLOAD) :
<?php
endif;
?>
- <div id="status" role="alert" class="alert alert-info<?php echo empty($STATUS) ? ' hidden' : '' ?>">
+ <div id="status" role="alert" class="alert alert-<?php echo $STATUS === 'Paste was properly deleted.' ? 'success' : 'info' ?><?php echo empty($STATUS) ? ' hidden' : '' ?>">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
<?php echo I18n::encode($STATUS), PHP_EOL; ?>
</div>
@@ -353,7 +353,7 @@ if ($FILEUPLOAD) :
+ <div id="status" role="alert" class="alert alert-<?php $STATUS == 'Paste was properly deleted.' ? 'success' : 'info' ?><?php echo empty($STATUS) ? ' hidden' : '' ?>">
<svg width="16" height="16" fill="currentColor" aria-hidden="true"><use href="img/bootstrap-icons.svg#info-circle" /></svg>