don't need img bind
This commit is contained in:
parent
2f2a398e13
commit
f90c12dc83
@ -1263,9 +1263,6 @@
|
||||
});
|
||||
file = $('input', box);
|
||||
$.bind(file, 'change', QR.change);
|
||||
$.bind($('img', box), 'click', function() {
|
||||
return $('input', this.parentNode).click();
|
||||
});
|
||||
$.bind($('.x', box), 'click', QR.rmThumb);
|
||||
$.add(files, box);
|
||||
file.click();
|
||||
|
||||
@ -976,7 +976,6 @@ QR =
|
||||
innerHTML: "<img><input type=file name=upfile accept='#{QR.accept}'><a class=x>X</a>"
|
||||
file = $ 'input', box
|
||||
$.bind file, 'change', QR.change
|
||||
$.bind $('img', box), 'click', -> $('input', @parentNode).click()
|
||||
$.bind $('.x', box), 'click', QR.rmThumb
|
||||
$.add files, box
|
||||
file.click()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user