summaryrefslogtreecommitdiff
path: root/public_html
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-07-10 11:55:01 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2012-07-10 11:55:01 (GMT)
commitb3b383932b19f3a82d1235f3867439651cac4350 (patch)
tree25241d14d0c8958896d078061f8180e884e06339 /public_html
parent2fea14959bfb2827526d3791d3c8b6a9749dd3bb (diff)
downloadkolab-wap-b3b383932b19f3a82d1235f3867439651cac4350.tar.gz
Fixed maxcount attribute check
Diffstat (limited to 'public_html')
-rw-r--r--public_html/js/kolab_admin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 8488132..8859cc4 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -853,7 +853,7 @@ function kolab_admin()
span = $(this.parentNode.parentNode),
maxcount = $('textarea[name="'+name+'"]').attr('data-maxcount');
- if (maxcount && maxcount <= ('input', span).length) {
+ if (maxcount && maxcount <= span.parent().children().length) {
alert(kadm.t('form.maxcount.exceeded'));
return;
}