diff --git a/public_html/css/forms.css b/public_html/css/forms.css index 35eea8f5..443065df 100644 --- a/public_html/css/forms.css +++ b/public_html/css/forms.css @@ -80,6 +80,39 @@ textarea:focus, input:focus{ border-color: #5da; } +input[type=radio], +input[type=checkbox] { + display:none; +} +input[type=radio] + label, +input[type=checkbox] + label { + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -o-user-select: none; + user-select: none; +} +input[type=radio] + label:before, +input[type=checkbox] + label:before { + font-family: 'FontAwesome'; + display: inline-block; + width: 1em; + text-align: left; +} +input[type=radio] + label:before { + content: "\f1db"; +} +input[type=radio]:checked + label:before { + content: "\f192"; +} +input[type=checkbox] + label:before { + content: "\f096"; +} +input[type=checkbox]:checked + label:before { + content: "\f046"; +} + + .file-handler { border: 3px dashed #eee; diff --git a/public_html/js/Presenters/UserBrowsingSettingsPresenter.js b/public_html/js/Presenters/UserBrowsingSettingsPresenter.js index bd12bdc5..8f00436c 100644 --- a/public_html/js/Presenters/UserBrowsingSettingsPresenter.js +++ b/public_html/js/Presenters/UserBrowsingSettingsPresenter.js @@ -42,12 +42,12 @@ App.Presenters.UserBrowsingSettingsPresenter = function( var $messages = $el.find('.messages'); messagePresenter.hideMessages($messages); var newSettings = { - endlessScroll: $el.find('[name=endless-scroll]:visible').prop('checked'), - hideDownvoted: $el.find('[name=hide-downvoted]:visible').prop('checked'), + endlessScroll: $el.find('[name=endless-scroll]').is(':checked'), + hideDownvoted: $el.find('[name=hide-downvoted]').is(':checked'), listPosts: { - safe: $el.find('[name=listSafePosts]:visible').prop('checked'), - sketchy: $el.find('[name=listSketchyPosts]:visible').prop('checked'), - unsafe: $el.find('[name=listUnsafePosts]:visible').prop('checked'), + safe: $el.find('[name=listSafePosts]').is(':checked'), + sketchy: $el.find('[name=listSketchyPosts]').is(':checked'), + unsafe: $el.find('[name=listUnsafePosts]').is(':checked'), }, }; browsingSettings.setSettings(newSettings).then(function() { diff --git a/public_html/templates/account-removal.tpl b/public_html/templates/account-removal.tpl index 076355b1..973b9dcb 100644 --- a/public_html/templates/account-removal.tpl +++ b/public_html/templates/account-removal.tpl @@ -4,8 +4,8 @@