summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2013-11-01 22:57:28 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2013-11-11 18:40:35 (GMT)
commit27fec538a0d828610db2cf6d9774af641a3cefd4 (patch)
tree4f96cbb02d1aa10f4150b54185a9f8206fc664af
parent1ebf0dcf4818c6b32ec94e7d9679f88a20d2d3c2 (diff)
downloadkolab-wap-27fec538a0d828610db2cf6d9774af641a3cefd4.tar.gz
Fix #2466 - List removes last input field when other similar input fields exists in the form.
-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 a93d515..af2463f 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -935,7 +935,7 @@ function kolab_admin()
$('span[class="reset"]', elem).click(function() {
var span = $(this.parentNode.parentNode),
name = data.name.replace(/\[[0-9]+\]$/, ''),
- l = $('input[name^="' + name + '"]', form),
+ l = $('input[name^="' + name + '["]', form),
key = $(this).data('key');
if (l.length > 1 || $('input[name="' + name + '"]', form).attr('data-autocomplete'))