derpy, prevent calling QR.hasContent twice
This commit is contained in:
parent
5ffcb63fb3
commit
56aa4f92f1
@ -1391,9 +1391,8 @@
|
||||
return;
|
||||
}
|
||||
QR.captchaPush(this);
|
||||
if (!QR.hasContent()) {
|
||||
return e.preventDefault();
|
||||
}
|
||||
e.preventDefault();
|
||||
return e.submit();
|
||||
},
|
||||
quote: function(e) {
|
||||
var i, ss, ta, text, v;
|
||||
|
||||
@ -1094,7 +1094,8 @@ QR =
|
||||
keydown: (e) ->
|
||||
return unless e.keyCode is 13 and @value #enter, captcha filled
|
||||
QR.captchaPush @
|
||||
e.preventDefault() unless QR.hasContent()
|
||||
e.preventDefault()
|
||||
e.submit() #derpy, but prevents calling QR.hasContent twice
|
||||
quote: (e) ->
|
||||
e.preventDefault()
|
||||
text = ">>#{@textContent}\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user