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 @@
+
diff --git a/public_html/templates/account-settings.tpl b/public_html/templates/account-settings.tpl index 4115d77d..73c9860b 100644 --- a/public_html/templates/account-settings.tpl +++ b/public_html/templates/account-settings.tpl @@ -13,8 +13,8 @@ }; %> <% _.each(avatarStyles, function(v, k) { %> + type="radio" name="avatar-style" id="account-settings-avatar-<%= k %>" value="<%= k %>"/> <% }) %> diff --git a/public_html/templates/browsing-settings.tpl b/public_html/templates/browsing-settings.tpl index 6bf2cda6..ff66c4b6 100644 --- a/public_html/templates/browsing-settings.tpl +++ b/public_html/templates/browsing-settings.tpl @@ -4,18 +4,18 @@
+ type="checkbox" id="browsing-settings-safety-safe" name="listSafePosts" value="safe"/> + type="checkbox" id="browsing-settings-safety-sketchy" name="listSketchyPosts" value="sketchy"/> + type="checkbox" id="browsing-settings-safety-unsafe" name="listUnsafePosts" value="unsafe"/>
@@ -24,8 +24,8 @@
+ type="checkbox" id="browsing-settings-endless-scroll" name="endlessScroll"/>
@@ -34,8 +34,8 @@
+ type="checkbox" id="browsing-settings-hide-downvoted" name="hideDownvoted"/>
diff --git a/public_html/templates/login-form.tpl b/public_html/templates/login-form.tpl index 9a50749e..d98293b1 100644 --- a/public_html/templates/login-form.tpl +++ b/public_html/templates/login-form.tpl @@ -26,8 +26,8 @@
  -
diff --git a/public_html/templates/post-upload.tpl b/public_html/templates/post-upload.tpl index e338043a..989556f0 100644 --- a/public_html/templates/post-upload.tpl +++ b/public_html/templates/post-upload.tpl @@ -21,6 +21,7 @@ + Tags @@ -35,6 +36,7 @@ + Thumbnail @@ -81,18 +83,18 @@
+ + +
@@ -116,8 +118,8 @@
+