mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
Ensure shortener button re-enable after creating new paste
This commit is contained in:
parent
cd5ede5670
commit
a5cd8696e6
3 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue