stats on file removal
This commit is contained in:
parent
ad3af8c087
commit
dc19a799a7
@ -1266,13 +1266,15 @@
|
|||||||
$.bind($('img', box), 'click', function() {
|
$.bind($('img', box), 'click', function() {
|
||||||
return this.previousSibling.click();
|
return this.previousSibling.click();
|
||||||
});
|
});
|
||||||
$.bind($('.x', box), 'click', function() {
|
$.bind($('.x', box), 'click', QR.rmThumb);
|
||||||
return $.rm(this.parentNode);
|
|
||||||
});
|
|
||||||
$.add(files, box);
|
$.add(files, box);
|
||||||
file.click();
|
file.click();
|
||||||
return QR.stats();
|
return QR.stats();
|
||||||
},
|
},
|
||||||
|
rmThumb: function() {
|
||||||
|
$.rm(this.parentNode);
|
||||||
|
return QR.stats();
|
||||||
|
},
|
||||||
captchaNode: function(e) {
|
captchaNode: function(e) {
|
||||||
QR.captcha = {
|
QR.captcha = {
|
||||||
challenge: e.target.value,
|
challenge: e.target.value,
|
||||||
|
|||||||
@ -977,10 +977,13 @@ QR =
|
|||||||
file = $ 'input', box
|
file = $ 'input', box
|
||||||
$.bind file, 'change', QR.change
|
$.bind file, 'change', QR.change
|
||||||
$.bind $('img', box), 'click', -> @previousSibling.click()
|
$.bind $('img', box), 'click', -> @previousSibling.click()
|
||||||
$.bind $('.x', box), 'click', -> $.rm @parentNode
|
$.bind $('.x', box), 'click', QR.rmThumb
|
||||||
$.add files, box
|
$.add files, box
|
||||||
file.click()
|
file.click()
|
||||||
QR.stats()
|
QR.stats()
|
||||||
|
rmThumb: ->
|
||||||
|
$.rm @parentNode
|
||||||
|
QR.stats()
|
||||||
captchaNode: (e) ->
|
captchaNode: (e) ->
|
||||||
QR.captcha =
|
QR.captcha =
|
||||||
challenge: e.target.value
|
challenge: e.target.value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user