parent
fd844f3eb3
commit
7ac1cb68f6
|
@ -301,6 +301,11 @@
|
||||||
var limitExceeded = (len > this._commentMaxLength);
|
var limitExceeded = (len > this._commentMaxLength);
|
||||||
$field.toggleClass('error', limitExceeded);
|
$field.toggleClass('error', limitExceeded);
|
||||||
$submitButton.prop('disabled', limitExceeded);
|
$submitButton.prop('disabled', limitExceeded);
|
||||||
|
|
||||||
|
//submits form on ctrlEnter
|
||||||
|
if (ev.keyCode === 13 && ev.ctrlKey) {
|
||||||
|
$submitButton.click();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_onClickComment: function(ev) {
|
_onClickComment: function(ev) {
|
||||||
|
|
Loading…
Reference in New Issue