fix for auto posting
This commit is contained in:
parent
c35f959f42
commit
a43711ba27
@ -1365,11 +1365,10 @@
|
||||
if (!(e.keyCode === 13 && this.value)) {
|
||||
return;
|
||||
}
|
||||
if (QR.hasContent()) {
|
||||
return;
|
||||
QR.captchaPush(this);
|
||||
if (!QR.hasContent()) {
|
||||
return e.preventDefault();
|
||||
}
|
||||
e.preventDefault();
|
||||
return QR.captchaPush(this);
|
||||
},
|
||||
quote: function(e) {
|
||||
var i, ss, ta, text, v;
|
||||
|
||||
@ -1070,9 +1070,8 @@ QR =
|
||||
$('textarea', QR.el).value or $('[type=file]', QR.el).files.length
|
||||
keydown: (e) ->
|
||||
return unless e.keyCode is 13 and @value #enter, captcha filled
|
||||
return if QR.hasContent()
|
||||
e.preventDefault()
|
||||
QR.captchaPush @
|
||||
e.preventDefault() unless QR.hasContent()
|
||||
quote: (e) ->
|
||||
e.preventDefault()
|
||||
text = ">>#{@textContent}\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user