summaryrefslogtreecommitdiff
path: root/js/quick-reply.js
diff options
context:
space:
mode:
authorFredrick Brennan <admin@8chan.co>2014-09-20 15:21:50 +0000
committerFredrick Brennan <admin@8chan.co>2014-09-20 16:35:28 +0000
commit23c73ca83943fb720addebe461286bc4ff3679b9 (patch)
treeca31cfde85612e649a6bfb219caebe470860b1dc /js/quick-reply.js
parent1ce9fb8174cd7f5fb39f87b83095caf6a47258f1 (diff)
Allow the user to decide whether or not he wants to display his country
Diffstat (limited to 'js/quick-reply.js')
-rw-r--r--js/quick-reply.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/quick-reply.js b/js/quick-reply.js
index 93cab334..07fe4aef 100644
--- a/js/quick-reply.js
+++ b/js/quick-reply.js
@@ -266,6 +266,8 @@
$postForm.find('input[type="file"]').parent()
.removeAttr('colspan')
.after($('<td class="spoiler"></td>').append(this, ' ', $('<label for="q-spoiler-image">').text(_('Spoiler Image'))));
+ } else if ($(this).attr('name') == 'no_country') {
+ $td.find('label,input[type="checkbox"]').remove();
} else {
$(tr).remove();
}