diff --git a/4chan_x.user.js b/4chan_x.user.js index f98dfbdac..62d98e36e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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() { diff --git a/script.coffee b/script.coffee index 50635b028..a21320021 100644 --- a/script.coffee +++ b/script.coffee @@ -1002,6 +1002,7 @@ QR = innerHTML: "#{QR.file}X" 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