Ensure shortener button re-enable after creating new paste

This commit is contained in:
Haocen Xu 2019-08-13 21:55:35 -04:00
parent cd5ede5670
commit a5cd8696e6
No known key found for this signature in database
GPG key ID: 3F0D955A0F6AD729
3 changed files with 5 additions and 2 deletions

View file

@ -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);