don't need img bind

This commit is contained in:
James Campos 2011-09-21 23:11:41 -07:00
parent 2f2a398e13
commit f90c12dc83
2 changed files with 0 additions and 4 deletions

View File

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

View File

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