summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-08-29 14:14:46 -0400
committerSteve Beaver <sbeaver@netgate.com>2017-08-29 14:14:46 -0400
commit634d68709128495b22caffef36f9351e3361e2ff (patch)
tree6e1b39ca31bdf19e3189d1238299efd17b71f6bd /src
parentb2c7a79c5ff8eefda4b19cf2718056c1ba6c12ca (diff)
downloadpfsense-634d68709128495b22caffef36f9351e3361e2ff.zip
pfsense-634d68709128495b22caffef36f9351e3361e2ff.tar.gz
Fixed #7827
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/diag_dump_states.php32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/usr/local/www/diag_dump_states.php b/src/usr/local/www/diag_dump_states.php
index e05568a..6337b43 100644
--- a/src/usr/local/www/diag_dump_states.php
+++ b/src/usr/local/www/diag_dump_states.php
@@ -75,6 +75,7 @@ if (isset($_POST['filter']) && isset($_POST['killfilter'])) {
$pgtitle = array(gettext("Diagnostics"), gettext("States"), gettext("States"));
$pglinks = array("", "@self", "@self");
include("head.inc");
+$delmsg = gettext("Are you sure you wish to delete this state?");
?>
<script type="text/javascript">
@@ -84,19 +85,22 @@ events.push(function() {
var el = $(this);
var data = $(this).data('entry').split('|');
- $.ajax(
- '/diag_dump_states.php',
- {
- type: 'post',
- data: {
- action: 'remove',
- srcip: data[0],
- dstip: data[1]
- },
- success: function() {
- el.parents('tr').remove();
- },
- });
+ if (confirm("<?=$delmsg?>")) {
+
+ $.ajax(
+ '/diag_dump_states.php',
+ {
+ type: 'post',
+ data: {
+ action: 'remove',
+ srcip: data[0],
+ dstip: data[1]
+ },
+ success: function() {
+ el.parents('tr').remove();
+ },
+ });
+ }
});
});
//]]>
@@ -250,7 +254,7 @@ print $form;
<?= format_bytes($res[$i]['bytes out']) ?></td>
<td>
- <a class="btn fa fa-trash" data-entry="<?=$srcip?>|<?=$killdstip?>"
+ <a class="btn fa fa-trash no-confirm" data-entry="<?=$srcip?>|<?=$killdstip?>"
title="<?=sprintf(gettext('Remove all state entries from %1$s to %2$s'), $srcip, $killdstip);?>"></a>
</td>
</tr>
OpenPOWER on IntegriCloud