diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-09-14 20:34:21 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-09-14 20:34:21 -0400 |
commit | d38d215d1d9429d3a1a15708f92b14cf3a15b247 (patch) | |
tree | e8f163a58943f33a2d62f0c2c44e51dff3932eb9 /src/usr/local | |
parent | 176b8f789e9dffb068ba96898edc9dec778b82b8 (diff) | |
download | pfsense-d38d215d1d9429d3a1a15708f92b14cf3a15b247.zip pfsense-d38d215d1d9429d3a1a15708f92b14cf3a15b247.tar.gz |
Fixed #6788 by clearing only the first label in the cloned row
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/js/pfSenseHelpers.js | 3 |
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 791e683..22f0e5f 100644 --- a/src/usr/local/www/js/pfSenseHelpers.js +++ b/src/usr/local/www/js/pfSenseHelpers.js @@ -294,6 +294,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)); @@ -328,7 +329,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); |