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