summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/js
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-09-14 20:34:21 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-09-14 20:36:07 -0400
commit10fca5acebdc86b7af32992824fd3bb51e8b84c5 (patch)
tree0215705736bf8c7d4f6d40aa473a63c2ee7c4b32 /src/usr/local/www/js
parent786d411dca21d262ae36de5fb3f9a546a5984d1d (diff)
downloadpfsense-10fca5acebdc86b7af32992824fd3bb51e8b84c5.zip
pfsense-10fca5acebdc86b7af32992824fd3bb51e8b84c5.tar.gz
Fixed #6788 by clearing only the first label in the cloned row
(cherry picked from commit d38d215d1d9429d3a1a15708f92b14cf3a15b247)
Diffstat (limited to 'src/usr/local/www/js')
-rw-r--r--src/usr/local/www/js/pfSenseHelpers.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js
index ab1a12b..4b98392 100644
--- a/src/usr/local/www/js/pfSenseHelpers.js
+++ b/src/usr/local/www/js/pfSenseHelpers.js
@@ -326,6 +326,7 @@ function add_row() {
// Clone it
var newGroup = lastRepeatableGroup.clone();
+
// Increment the suffix number for each input element in the new group
$(newGroup).find('input').each(function() {
$(this).prop("id", bumpStringInt(this.id));
@@ -360,7 +361,7 @@ function add_row() {
// And for "for" tags
// $(newGroup).find('label').attr('for', bumpStringInt($(newGroup).find('label').attr('for')));
- $(newGroup).find('label').text(""); // Clear the label. We only want it on the very first row
+ $(newGroup).find('label:first').text(""); // Clear the label. We only want it on the very first row
// Insert the updated/cloned row
$(lastRepeatableGroup).after(newGroup);
OpenPOWER on IntegriCloud