Styling inline-blocks with percentages is impossible in Firefox. I'm not gonna use flexboxes for now.

Revert "Display filename."

This reverts commit 50e9a0e633e22f64d412ad19e56268dcf0f55dad.
This commit is contained in:
Nicolas Stepien 2012-01-27 16:50:35 +01:00
parent 19970a2faf
commit bd29db7551
2 changed files with 5 additions and 10 deletions

View File

@ -1435,7 +1435,6 @@
var url;
this.file = file;
this.el.title = file.name;
if (this === qr.selected) $('#filename', qr.el).textContent = file.name;
if (file.type === 'application/pdf') {
this.el.style.backgroundImage = null;
return;
@ -1460,7 +1459,6 @@
data = _ref2[_i];
$("[name=" + data + "]", qr.el).value = this[data];
}
$('#filename', qr.el).textContent = this.file ? this.file.name : null;
return $('#spoiler', qr.el).checked = this.spoiler;
};
@ -1570,7 +1568,7 @@
});
qr.mimeTypes = mimeTypes.split(', ');
qr.spoiler = !!$('#com_submit + label');
qr.el = ui.dialog('qr', 'top:0;right:0;', "<div class=move> Quick Reply <input type=checkbox name=autohide id=autohide title=Auto-hide> <span>" + (g.REPLY ? '' : threads) + " <a class=close>x</a></span></div><form> <div><input id=dump class=field type=button title='Dump mode' value=+><input name=name title=Name placeholder=Name class=field size=1><input name=email title=E-mail placeholder=E-mail class=field size=1><input name=sub title=Subject placeholder=Subject class=field size=1></div> <output id=replies><div><a id=addReply href=javascript:;>+</a></div></output> <div><textarea name=com title=Comment placeholder=Comment class=field></textarea></div> <div class=captcha title=Reload><img></div> <div><input name=captcha title=Verification class=field autocomplete=off size=1></div> <div><label for=upfile><input type=button value='Select Files' class=button></label><span id=filename></span><input type=submit class=button></div> <label id=spoilerLabel" + (qr.spoiler ? '' : ' hidden') + "><input type=checkbox id=spoiler> Spoiler Image</label> <div class=warning></div></form><input type=file id=upfile tabindex=-1 max=" + ($('[name=MAX_FILE_SIZE]').value) + " accept='" + mimeTypes + "' multiple>");
qr.el = ui.dialog('qr', 'top:0;right:0;', "<div class=move> Quick Reply <input type=checkbox name=autohide id=autohide title=Auto-hide> <span>" + (g.REPLY ? '' : threads) + " <a class=close>x</a></span></div><form> <div><input id=dump class=field type=button title='Dump mode' value=+><input name=name title=Name placeholder=Name class=field size=1><input name=email title=E-mail placeholder=E-mail class=field size=1><input name=sub title=Subject placeholder=Subject class=field size=1></div> <output id=replies><div><a id=addReply href=javascript:;>+</a></div></output> <div><textarea name=com title=Comment placeholder=Comment class=field></textarea></div> <div class=captcha title=Reload><img></div> <div><input name=captcha title=Verification class=field autocomplete=off size=1></div> <div><label for=upfile><input type=button value='Select Files' class=button></label><span id=fileInfo></span><input type=submit class=button></div> <label id=spoilerLabel" + (qr.spoiler ? '' : ' hidden') + "><input type=checkbox id=spoiler> Spoiler Image</label> <div class=warning></div></form><input type=file id=upfile tabindex=-1 max=" + ($('[name=MAX_FILE_SIZE]').value) + " accept='" + mimeTypes + "' multiple>");
if (!g.REPLY) {
$.on($('select', qr.el), 'mousedown', function(e) {
return e.stopPropagation();
@ -3662,7 +3660,7 @@ textarea.field {\
position: absolute;\
visibility: hidden;\
}\
#filename {\
#fileInfo {\
box-sizing: border-box;\
-moz-box-sizing: border-box;\
display: inline-block;\

View File

@ -1052,8 +1052,6 @@ qr =
qr.replies.push @
setFile: (@file) ->
@el.title = file.name
if @ is qr.selected
$('#filename', qr.el).textContent = file.name
if file.type is 'application/pdf'
@el.style.backgroundImage = null
return
@ -1072,8 +1070,7 @@ qr =
@el.parentNode.scrollLeft += rectEl.left + rectEl.width/2 - rectList.left - rectList.width/2
for data in ['name', 'email', 'sub', 'com']
$("[name=#{data}]", qr.el).value = @[data]
$('#filename', qr.el).textContent = if @file then @file.name else null
$('#spoiler', qr.el).checked = @spoiler
$('#spoiler', qr.el).checked = @spoiler
rm: ->
$.rm @el
index = qr.replies.indexOf @
@ -1161,7 +1158,7 @@ qr =
<div><textarea name=com title=Comment placeholder=Comment class=field></textarea></div>
<div class=captcha title=Reload><img></div>
<div><input name=captcha title=Verification class=field autocomplete=off size=1></div>
<div><label for=upfile><input type=button value='Select Files' class=button></label><span id=filename></span><input type=submit class=button></div>
<div><label for=upfile><input type=button value='Select Files' class=button></label><span id=fileInfo></span><input type=submit class=button></div>
<label id=spoilerLabel#{if qr.spoiler then '' else ' hidden'}><input type=checkbox id=spoiler> Spoiler Image</label>
<div class=warning></div>
</form>
@ -2900,7 +2897,7 @@ textarea.field {
position: absolute;
visibility: hidden;
}
#filename {
#fileInfo {
box-sizing: border-box;
-moz-box-sizing: border-box;
display: inline-block;