diff --git a/src/usr/local/www/js/pfSenseHelpers.js b/src/usr/local/www/js/pfSenseHelpers.js index 61453d50ef..c406d6d488 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('' + + $(this).parents('tr').replaceWith('' + '' + '' + septext + '' + '' + '');