diff --git a/js/privatebin.js b/js/privatebin.js
index b8e63dd..72b7340 100644
--- a/js/privatebin.js
+++ b/js/privatebin.js
@@ -1807,6 +1807,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
// delete link
$('#deletelink').html('' + I18n._('Delete data') + '');
+ // enable shortener button
+ $shortenButton.removeClass('buttondisabled');
+
// show result
$pasteSuccess.removeClass('hidden');
// we pre-select the link so that the user only has to [Ctrl]+[c] the link
@@ -4108,9 +4111,6 @@ 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);
@@ -4742,6 +4742,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
TopNav.showCreateButtons();
Alert.hideLoading();
history.pushState({type: 'create'}, document.title, Helper.baseUri());
+
+ // clear discussion
+ DiscussionViewer.prepareNewDiscussion();
};
/**
@@ -4854,6 +4857,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
Editor.show();
TopNav.showCreateButtons();
+
+ // clear discussion
+ DiscussionViewer.prepareNewDiscussion();
};
/**
diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php
index f22a87f..bccda1a 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 f048899..49bcc10 100644
--- a/tpl/page.php
+++ b/tpl/page.php
@@ -49,7 +49,7 @@ if ($MARKDOWN):
endif;
?>
-
+