Revision 634d6870
Added by Steve Beaver almost 8 years ago
src/usr/local/www/diag_dump_states.php | ||
---|---|---|
75 | 75 |
$pgtitle = array(gettext("Diagnostics"), gettext("States"), gettext("States")); |
76 | 76 |
$pglinks = array("", "@self", "@self"); |
77 | 77 |
include("head.inc"); |
78 |
$delmsg = gettext("Are you sure you wish to delete this state?"); |
|
78 | 79 |
?> |
79 | 80 |
|
80 | 81 |
<script type="text/javascript"> |
... | ... | |
84 | 85 |
var el = $(this); |
85 | 86 |
var data = $(this).data('entry').split('|'); |
86 | 87 |
|
87 |
$.ajax( |
|
88 |
'/diag_dump_states.php', |
|
89 |
{ |
|
90 |
type: 'post', |
|
91 |
data: { |
|
92 |
action: 'remove', |
|
93 |
srcip: data[0], |
|
94 |
dstip: data[1] |
|
95 |
}, |
|
96 |
success: function() { |
|
97 |
el.parents('tr').remove(); |
|
98 |
}, |
|
99 |
}); |
|
88 |
if (confirm("<?=$delmsg?>")) { |
|
89 |
|
|
90 |
$.ajax( |
|
91 |
'/diag_dump_states.php', |
|
92 |
{ |
|
93 |
type: 'post', |
|
94 |
data: { |
|
95 |
action: 'remove', |
|
96 |
srcip: data[0], |
|
97 |
dstip: data[1] |
|
98 |
}, |
|
99 |
success: function() { |
|
100 |
el.parents('tr').remove(); |
|
101 |
}, |
|
102 |
}); |
|
103 |
} |
|
100 | 104 |
}); |
101 | 105 |
}); |
102 | 106 |
//]]> |
... | ... | |
250 | 254 |
<?= format_bytes($res[$i]['bytes out']) ?></td> |
251 | 255 |
|
252 | 256 |
<td> |
253 |
<a class="btn fa fa-trash" data-entry="<?=$srcip?>|<?=$killdstip?>" |
|
257 |
<a class="btn fa fa-trash no-confirm" data-entry="<?=$srcip?>|<?=$killdstip?>"
|
|
254 | 258 |
title="<?=sprintf(gettext('Remove all state entries from %1$s to %2$s'), $srcip, $killdstip);?>"></a> |
255 | 259 |
</td> |
256 | 260 |
</tr> |
Also available in: Unified diff
Fixed #7827