stats on file removal

This commit is contained in:
James Campos 2011-09-21 20:06:41 -07:00
parent ad3af8c087
commit dc19a799a7
2 changed files with 9 additions and 4 deletions

View File

@ -1266,13 +1266,15 @@
$.bind($('img', box), 'click', function() {
return this.previousSibling.click();
});
$.bind($('.x', box), 'click', function() {
return $.rm(this.parentNode);
});
$.bind($('.x', box), 'click', QR.rmThumb);
$.add(files, box);
file.click();
return QR.stats();
},
rmThumb: function() {
$.rm(this.parentNode);
return QR.stats();
},
captchaNode: function(e) {
QR.captcha = {
challenge: e.target.value,

View File

@ -977,10 +977,13 @@ QR =
file = $ 'input', box
$.bind file, 'change', QR.change
$.bind $('img', box), 'click', -> @previousSibling.click()
$.bind $('.x', box), 'click', -> $.rm @parentNode
$.bind $('.x', box), 'click', QR.rmThumb
$.add files, box
file.click()
QR.stats()
rmThumb: ->
$.rm @parentNode
QR.stats()
captchaNode: (e) ->
QR.captcha =
challenge: e.target.value