summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/jquery
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-12-14 09:25:22 -0500
committerStephen Beaver <sbeaver@netgate.com>2015-12-14 09:25:41 -0500
commit9f6a9f24edf12d961c0318d95b02d969447e2d3d (patch)
tree4c583c54300a1ac4e69ed75fe76df595f09fed2d /src/usr/local/www/jquery
parentcd3f4b916c252980a257f5be1a0cf2688c078549 (diff)
downloadpfsense-9f6a9f24edf12d961c0318d95b02d969447e2d3d.zip
pfsense-9f6a9f24edf12d961c0318d95b02d969447e2d3d.tar.gz
Fixed #5638
Diffstat (limited to 'src/usr/local/www/jquery')
-rw-r--r--src/usr/local/www/jquery/pfSenseHelpers.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/usr/local/www/jquery/pfSenseHelpers.js b/src/usr/local/www/jquery/pfSenseHelpers.js
index db7c26c..f6e48e0 100644
--- a/src/usr/local/www/jquery/pfSenseHelpers.js
+++ b/src/usr/local/www/jquery/pfSenseHelpers.js
@@ -341,6 +341,21 @@ function add_row() {
}
});
}
+
+ // Not that we are no longer cloning the event handlers, we need to remove and re-add after a new row
+ // has been added to the table
+ $('[id^=delete]').unbind();
+ $('[id^=delete]').click(function(event) {
+ if($('.repeatable').length > 1) {
+ if((typeof retainhelp) == "undefined")
+ moveHelpText(event.target.id);
+
+ delete_row(event.target.id);
+ }
+ else
+ alert('You may not delete the last row!');
+ });
+
}
// These are action buttons, not submit buttons
OpenPOWER on IntegriCloud