use CSS for all name+subject hiding
This commit is contained in:
parent
d59f9721eb
commit
7b5dc946c9
@ -869,6 +869,8 @@ span.hide-announcement {
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
|
#qr.forced-anon input[data-name=name],
|
||||||
|
#qr.forced-anon input[data-name=sub],
|
||||||
#qr.reply-to-thread input[data-name=sub] {
|
#qr.reply-to-thread input[data-name=sub] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -475,8 +475,9 @@ QR =
|
|||||||
QR.max_width_video = QR.max_height_video = 2048
|
QR.max_width_video = QR.max_height_video = 2048
|
||||||
QR.max_duration_video = 120
|
QR.max_duration_video = 120
|
||||||
|
|
||||||
QR.nodes.name.hidden = !$ '.postForm input[name=name]:not([type=hidden])'
|
QR.forcedAnon = !!$ '.postForm input[name=name][type=hidden]'
|
||||||
QR.nodes.sub.hidden = !$ '.postForm input[name=sub]:not([type=hidden])'
|
if QR.forcedAnon
|
||||||
|
$.addClass QR.nodes.el, 'forced-anon'
|
||||||
|
|
||||||
QR.spoiler = !!$ '.postForm input[name=spoiler]'
|
QR.spoiler = !!$ '.postForm input[name=spoiler]'
|
||||||
if QR.spoiler
|
if QR.spoiler
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user