use CSS for all name+subject hiding

This commit is contained in:
ccd0 2014-06-11 09:40:53 -07:00
parent d59f9721eb
commit 7b5dc946c9
2 changed files with 5 additions and 2 deletions

View File

@ -869,6 +869,8 @@ span.hide-announcement {
flex: 1;
width: 0;
}
#qr.forced-anon input[data-name=name],
#qr.forced-anon input[data-name=sub],
#qr.reply-to-thread input[data-name=sub] {
display: none;
}

View File

@ -475,8 +475,9 @@ QR =
QR.max_width_video = QR.max_height_video = 2048
QR.max_duration_video = 120
QR.nodes.name.hidden = !$ '.postForm input[name=name]:not([type=hidden])'
QR.nodes.sub.hidden = !$ '.postForm input[name=sub]:not([type=hidden])'
QR.forcedAnon = !!$ '.postForm input[name=name][type=hidden]'
if QR.forcedAnon
$.addClass QR.nodes.el, 'forced-anon'
QR.spoiler = !!$ '.postForm input[name=spoiler]'
if QR.spoiler