Revision d38d215d
Added by Stephen Beaver almost 9 years ago
src/usr/local/www/js/pfSenseHelpers.js | ||
---|---|---|
294 | 294 |
|
295 | 295 |
// Clone it |
296 | 296 |
var newGroup = lastRepeatableGroup.clone(); |
297 |
|
|
297 | 298 |
// Increment the suffix number for each input element in the new group |
298 | 299 |
$(newGroup).find('input').each(function() { |
299 | 300 |
$(this).prop("id", bumpStringInt(this.id)); |
... | ... | |
328 | 329 |
// And for "for" tags |
329 | 330 |
// $(newGroup).find('label').attr('for', bumpStringInt($(newGroup).find('label').attr('for'))); |
330 | 331 |
|
331 |
$(newGroup).find('label').text(""); // Clear the label. We only want it on the very first row |
|
332 |
$(newGroup).find('label:first').text(""); // Clear the label. We only want it on the very first row
|
|
332 | 333 |
|
333 | 334 |
// Insert the updated/cloned row |
334 | 335 |
$(lastRepeatableGroup).after(newGroup); |
Also available in: Unified diff
Fixed #6788 by clearing only the first label in the cloned row