hide name/email/subject field when not useable

This commit is contained in:
ccd0 2014-06-08 12:31:35 -07:00
parent 42468dd5c6
commit e6712f9d34
2 changed files with 11 additions and 8 deletions

View File

@ -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;

View File

@ -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