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