Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Remove unpredictable/useless 'back' button from public forms. Closes #1834.

Kailash Nadh50564c6954ea
diff --git a/static/public/static/style.css b/static/public/static/style.css
index 3f9d762f..d372c0dd 100644
--- a/static/public/static/style.css
+++ b/static/public/static/style.css
@@ -205,10 +205,6 @@ input[disabled] {
text-align: center;
}
-#btn-back {
- display: none;
-}
-
footer.container {
margin-top: 15px;
text-align: center;
diff --git a/static/public/templates/message.html b/static/public/templates/message.html
index bb070f3f..ae09ae25 100644
--- a/static/public/templates/message.html
+++ b/static/public/templates/message.html
@@ -6,22 +6,5 @@
{{ .Data.Message }}
</div>
- <p>
- <a href="" class="button" id="btn-back">{{ L.T "globals.buttons.back" }}</a>
- </p>
-
- <script>
- (function() {
- // If there's page history to go back to, show the back button.
- if(history && history.length >= 3) {
- var btn = document.getElementById("btn-back");
- btn.style.display = 'inline-block';
- btn.onclick = function(e) {
- history.go(history.length > 2 ? -2 : -1);
- e.preventDefault();
- };
- }
- })();
- </script>
{{ template "footer" .}}
{{ end }}