change1
This commit is contained in:
parent
65af9d0625
commit
234c9faae3
@ -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() {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user