Project

General

Profile

« Previous | Next » 

Revision 60d619bd

Added by Phil Davis over 9 years ago

Fix add delete of rows with buttons

Redmine #6101
Forum https://forum.pfsense.org/index.php?topic=109554.0

View differences:

src/usr/local/www/js/pfSenseHelpers.js
313 313
			$(this).val('');
314 314
	});
315 315

  
316
	// Increment the suffix number for each button element in the new group
317
	$(newGroup).find('button').each(function() {
318
		$(this).prop("id", bumpStringInt(this.id));
319
		$(this).prop("name", bumpStringInt(this.name));
320
	});
321

  
316 322
	// Do the same for selectors
317 323
	$(newGroup).find('select').each(function() {
318 324
		$(this).prop("id", bumpStringInt(this.id));

Also available in: Unified diff