change1
This commit is contained in:
parent
65af9d0625
commit
234c9faae3
@ -1275,6 +1275,7 @@
|
|||||||
});
|
});
|
||||||
file = $('input', div);
|
file = $('input', div);
|
||||||
$.bind(file, 'change', QR.change);
|
$.bind(file, 'change', QR.change);
|
||||||
|
$.bind(file, 'change', QR.change1);
|
||||||
$.bind($('a', div), 'click', function() {
|
$.bind($('a', div), 'click', function() {
|
||||||
return $.rm(this.parentNode);
|
return $.rm(this.parentNode);
|
||||||
});
|
});
|
||||||
@ -1344,7 +1345,7 @@
|
|||||||
return $.replace(old, file);
|
return $.replace(old, file);
|
||||||
},
|
},
|
||||||
change1: function() {
|
change1: function() {
|
||||||
$.unbind(this, 'change', QR.change);
|
$.unbind(this, 'change', QR.change1);
|
||||||
return QR.attach();
|
return QR.attach();
|
||||||
},
|
},
|
||||||
close: function() {
|
close: function() {
|
||||||
|
|||||||
@ -1002,6 +1002,7 @@ QR =
|
|||||||
innerHTML: "#{QR.file}<a class=close>X</a>"
|
innerHTML: "#{QR.file}<a class=close>X</a>"
|
||||||
file = $ 'input', div
|
file = $ 'input', div
|
||||||
$.bind file, 'change', QR.change
|
$.bind file, 'change', QR.change
|
||||||
|
$.bind file, 'change', QR.change1
|
||||||
$.bind $('a', div), 'click', -> $.rm @parentNode
|
$.bind $('a', div), 'click', -> $.rm @parentNode
|
||||||
$.append $('#files', QR.qr), div
|
$.append $('#files', QR.qr), div
|
||||||
file.click()
|
file.click()
|
||||||
@ -1048,7 +1049,7 @@ QR =
|
|||||||
$.bind file, 'change', QR.change
|
$.bind file, 'change', QR.change
|
||||||
$.replace old, file
|
$.replace old, file
|
||||||
change1: ->
|
change1: ->
|
||||||
$.unbind @, 'change', QR.change
|
$.unbind @, 'change', QR.change1
|
||||||
QR.attach()
|
QR.attach()
|
||||||
close: ->
|
close: ->
|
||||||
$.rm QR.qr
|
$.rm QR.qr
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user