diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-04-13 08:33:27 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-04-13 08:34:38 -0400 |
commit | fee16977d2e3f01f9796f9ed88bd54bbe3827c5c (patch) | |
tree | 64447f6c83088eb640795cba8417a2e7a37a62a4 /src/usr/local/www/js | |
parent | 4c84c124f355965174065095970b4c71cae06475 (diff) | |
download | pfsense-fee16977d2e3f01f9796f9ed88bd54bbe3827c5c.zip pfsense-fee16977d2e3f01f9796f9ed88bd54bbe3827c5c.tar.gz |
Fixed #6128
(cherry picked from commit e8d6c134fe44f0ad1756caa246a7c6efbbd27bbc)
Diffstat (limited to 'src/usr/local/www/js')
-rw-r--r-- | src/usr/local/www/js/pfSenseHelpers.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js index 61453d5..c406d6d 100644 --- a/src/usr/local/www/js/pfSenseHelpers.js +++ b/src/usr/local/www/js/pfSenseHelpers.js @@ -514,14 +514,13 @@ $('.container .panel-heading a[data-toggle="collapse"]').each(function (idx, el) handle_colors(); - // Remove the temporary separator bar and replace it with the final version containing the + // Replace the temporary separator bar with the final version containing the // user's text and a delete icon $("#btnnewsep").click(function() { var septext = escapeHtml($('#newsep').val()); sepcols = $( "#ruletable tr th" ).length - 1; - $('#ruletable > tbody:last >tr:last').remove(); - $('#ruletable > tbody:last').append('<tr class="ui-sortable-handle separator">' + + $(this).parents('tr').replaceWith('<tr class="ui-sortable-handle separator">' + '<td class="' + gColor + '" colspan="' + sepcols + '">' + '<span class="' + gColor + '">' + septext + '</span></td>' + '<td class="' + gColor + '"><a href="#"><i class="fa fa-trash sepdel"></i></a>' + '</td></tr>'); |