Fix #qr-filerm bringing up file dialog and showing without a file

This commit is contained in:
Jordan Bates 2013-04-18 07:52:34 -07:00
parent 1cd538ac23
commit dbdbd8a64c
5 changed files with 13 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -755,8 +755,8 @@ QR =
<span id=qr-filename-container class=field tabindex=60>
<span id=qr-no-file>No selected file</span>
<span id=qr-filename></span>
<a id=qr-filerm href=javascript:; title='Remove file' tabindex=80>×</a>
</span>
<a id=qr-filerm href=javascript:; title='Remove file' tabindex=80>×</a>
<input type=submit tabindex=70>
</div>
<input type=file multiple>

View File

@ -548,7 +548,8 @@ a.hide-announcement {
:root.hide-original-post-form .postingMode,
:root.hide-original-post-form #togglePostForm,
#qr.autohide:not(.has-focus):not(:hover) > form,
.postingMode ~ #qr select {
.postingMode ~ #qr select,
#file-n-submit:not(.has-file) #qr-filerm {
display: none;
}
#qr select, #dump-button, .remove, .captcha-img {
@ -662,9 +663,10 @@ input.field.tripped:not(:hover):not(:focus) {
padding: 2px 1px 0;
}
#qr-filerm {
position: absolute;
right: 3px;
top: 2px;
position: relative;
right: 14px;
bottom: 6px;
margin-right: -8px;
z-index: 2;
}
#file-n-submit {