hide name/email/subject field when not useable
This commit is contained in:
parent
42468dd5c6
commit
e6712f9d34
@ -845,9 +845,9 @@ span.hide-announcement {
|
||||
font-size: 10pt;
|
||||
}
|
||||
.persona {
|
||||
width: 248px;
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
#dump-button {
|
||||
width: 10%;
|
||||
@ -865,10 +865,9 @@ span.hide-announcement {
|
||||
padding: 1px 0px 2px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.persona .field:not(#dump) {
|
||||
width: 95px;
|
||||
min-width: 33.3%;
|
||||
max-width: 33.3%;
|
||||
.persona .field {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
}
|
||||
#qr textarea.field {
|
||||
height: 14.8em;
|
||||
|
||||
@ -474,7 +474,11 @@ QR =
|
||||
QR.max_width_video = QR.max_height_video = 2048
|
||||
QR.max_duration_video = 120
|
||||
|
||||
QR.spoiler = !!$ 'input[name=spoiler]'
|
||||
QR.nodes.name.hidden = !$ '.postForm input[name=name]:not([type=hidden])'
|
||||
QR.nodes.email.hidden = !$ '.postForm input[name=email]:not([type=hidden])'
|
||||
QR.nodes.sub.hidden = !$ '.postForm input[name=sub]:not([type=hidden])'
|
||||
|
||||
QR.spoiler = !!$ '.postForm input[name=spoiler]'
|
||||
if QR.spoiler
|
||||
$.addClass QR.nodes.el, 'has-spoiler'
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user