From a5cd8696e6f7be59aa56816220bb96816e04830f Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Tue, 13 Aug 2019 21:55:35 -0400 Subject: [PATCH] Ensure shortener button re-enable after creating new paste --- js/privatebin.js | 3 +++ tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index b8962e4..d920705 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -4108,6 +4108,9 @@ jQuery.PrivateBin = (function($, RawDeflate) { deleteUrl = baseUri + 'pasteid=' + data.id + '&deletetoken=' + data.deletetoken; PasteStatus.createPasteNotification(url, deleteUrl); + // enable shortener button + $shortenButton.removeClass('buttondisabled'); + // show new URL in browser bar history.pushState({type: 'newpaste'}, document.title, url); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 76fe9f4..f22a87f 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -71,7 +71,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 8113d49..f048899 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +