diff --git a/boards/static/css/base.css b/boards/static/css/base.css --- a/boards/static/css/base.css +++ b/boards/static/css/base.css @@ -84,8 +84,10 @@ textarea, input { display: inline; } -.post-button-form > input[type="submit"] { +.post-button-form > button { border: none; - margin: 0; - padding: 0; + margin: inherit; + padding: inherit; + background: none; + font-size: inherit; } diff --git a/boards/static/css/md/base_page.css b/boards/static/css/md/base_page.css --- a/boards/static/css/md/base_page.css +++ b/boards/static/css/md/base_page.css @@ -509,3 +509,7 @@ ul { .highlight { background-color: #222; } + +.post-button-form > button:hover { + text-decoration: underline; +} diff --git a/boards/static/css/sw/base_page.css b/boards/static/css/sw/base_page.css --- a/boards/static/css/sw/base_page.css +++ b/boards/static/css/sw/base_page.css @@ -397,3 +397,7 @@ li { .highlight { background-color: #D4F0F9; } + +.dead_post { + border-right: 1ex solid #666; +} diff --git a/boards/static/js/main.js b/boards/static/js/main.js --- a/boards/static/js/main.js +++ b/boards/static/js/main.js @@ -81,21 +81,6 @@ function translate_time(node) { }); } -/** - * We use buttons viewed as a form with link and hidden inputs to ensure - * the search crawlers don't index or click them. - * - * But we need to submit the form by clicking the links. That's why these - * handlers are here. - */ -function addPostButtonActions() { - $('.post-button-form > a').each(function() { - $(this).click(function() { - $(this).parent().submit(); - }); - }); -} - $( document ).ready(function() { hideEmailFromForm(); @@ -111,6 +96,4 @@ function addPostButtonActions() { highlightCode($(document)); translate_time(null); - - addPostButtonActions(); }); diff --git a/boards/templates/boards/posting_general.html b/boards/templates/boards/posting_general.html --- a/boards/templates/boards/posting_general.html +++ b/boards/templates/boards/posting_general.html @@ -41,22 +41,17 @@

- - + {% else %} - - + {% endif %}
{% if is_hidden %} - - H + {% else %} - - H + {% endif %}
{% autoescape off %}