summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/jquery
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-21 14:16:45 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-21 14:19:25 -0500
commit43dc383036464d62687506bd8f2da65a1fd99ef9 (patch)
treeb5de1541f5ae3ef60f66cdb10193fe29d8a33b27 /src/usr/local/www/jquery
parent69560def1623424ba91f41847b6f57d0e84cfa7a (diff)
downloadpfsense-43dc383036464d62687506bd8f2da65a1fd99ef9.zip
pfsense-43dc383036464d62687506bd8f2da65a1fd99ef9.tar.gz
Fix row add/delete issues intorduced by PR https://github.com/pfsense/pfsense/commit/f35ce6d20e6fd1e3b66b5935c70532d7e5fa741f/
Diffstat (limited to 'src/usr/local/www/jquery')
-rw-r--r--src/usr/local/www/jquery/pfSenseHelpers.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js
index b183339..7dfd22e 100644
--- a/src/usr/local/www/jquery/pfSenseHelpers.js
+++ b/src/usr/local/www/jquery/pfSenseHelpers.js
@@ -268,7 +268,7 @@ function renumber() {
$(this).prop("name", this.name.replace(/\d+$/, "") + idx);
});
- $(this).find('label').attr('for', $(this).find('label').attr('for').replace(/\d+$/, "") + idx);
+// $(this).find('label').attr('for', $(this).find('label').attr('for').replace(/\d+$/, "") + idx);
idx++;
});
@@ -320,7 +320,8 @@ function add_row() {
});
// And for "for" tags
- $(newGroup).find('label').attr('for', bumpStringInt($(newGroup).find('label').attr('for')));
+// $(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
// Insert the updated/cloned row
OpenPOWER on IntegriCloud