summaryrefslogtreecommitdiffstats
path: root/apps/comments/js
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-12-29 21:09:19 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-02 10:28:09 +0100
commit4c0c3c0bef43fcaf831f82bd00ee90261408bfbd (patch)
tree158dbc2af730790817becb0dea357da48dd700bf /apps/comments/js
parentfa2fe34b7a2189fd147f5796b8c24696a4ed8131 (diff)
downloadnextcloud-server-4c0c3c0bef43fcaf831f82bd00ee90261408bfbd.tar.gz
nextcloud-server-4c0c3c0bef43fcaf831f82bd00ee90261408bfbd.zip
Show max warning comment lenth again
Fixes #7414 Since we no longer use an input field we have to use text instead of val. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/comments/js')
-rw-r--r--apps/comments/js/commentstabview.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/js/commentstabview.js b/apps/comments/js/commentstabview.js
index 9b75cb4671e..bd89c8bbb49 100644
--- a/apps/comments/js/commentstabview.js
+++ b/apps/comments/js/commentstabview.js
@@ -512,7 +512,7 @@
_onTypeComment: function(ev) {
var $field = $(ev.target);
- var len = $field.val().length;
+ var len = $field.text().length;
var $submitButton = $field.data('submitButtonEl');
if (!$submitButton) {
$submitButton = $field.closest('form').find('.submit');