derp
This commit is contained in:
parent
6a59e5dff2
commit
17a55d0542
@ -1248,7 +1248,7 @@
|
|||||||
fileDiv = $.el('div', {
|
fileDiv = $.el('div', {
|
||||||
innerHTML: '<input type=file name=upfile><a>X</a>'
|
innerHTML: '<input type=file name=upfile><a>X</a>'
|
||||||
});
|
});
|
||||||
$.bind(fileDiv.firstChild('change', qr.validateFileSize));
|
$.bind(fileDiv.firstChild, 'change', qr.validateFileSize);
|
||||||
$.bind(fileDiv.lastChild, 'click', (function() {
|
$.bind(fileDiv.lastChild, 'click', (function() {
|
||||||
return $.rm(this.parentNode);
|
return $.rm(this.parentNode);
|
||||||
}));
|
}));
|
||||||
|
|||||||
@ -988,7 +988,7 @@ qr =
|
|||||||
attach: ->
|
attach: ->
|
||||||
$('#auto', qr.el).checked = true
|
$('#auto', qr.el).checked = true
|
||||||
fileDiv = $.el 'div', innerHTML: '<input type=file name=upfile><a>X</a>'
|
fileDiv = $.el 'div', innerHTML: '<input type=file name=upfile><a>X</a>'
|
||||||
$.bind fileDiv.firstChild 'change', qr.validateFileSize
|
$.bind fileDiv.firstChild, 'change', qr.validateFileSize
|
||||||
$.bind fileDiv.lastChild, 'click', (-> $.rm @parentNode)
|
$.bind fileDiv.lastChild, 'click', (-> $.rm @parentNode)
|
||||||
$.prepend qr.files, fileDiv
|
$.prepend qr.files, fileDiv
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user