This commit is contained in:
James Campos 2011-09-03 16:58:35 -07:00
parent 65af9d0625
commit 234c9faae3
2 changed files with 4 additions and 2 deletions

View File

@ -1275,6 +1275,7 @@
});
file = $('input', div);
$.bind(file, 'change', QR.change);
$.bind(file, 'change', QR.change1);
$.bind($('a', div), 'click', function() {
return $.rm(this.parentNode);
});
@ -1344,7 +1345,7 @@
return $.replace(old, file);
},
change1: function() {
$.unbind(this, 'change', QR.change);
$.unbind(this, 'change', QR.change1);
return QR.attach();
},
close: function() {

View File

@ -1002,6 +1002,7 @@ QR =
innerHTML: "#{QR.file}<a class=close>X</a>"
file = $ 'input', div
$.bind file, 'change', QR.change
$.bind file, 'change', QR.change1
$.bind $('a', div), 'click', -> $.rm @parentNode
$.append $('#files', QR.qr), div
file.click()
@ -1048,7 +1049,7 @@ QR =
$.bind file, 'change', QR.change
$.replace old, file
change1: ->
$.unbind @, 'change', QR.change
$.unbind @, 'change', QR.change1
QR.attach()
close: ->
$.rm QR.qr