make port name clickable to restrict results only to that port
This commit is contained in:
@@ -23,9 +23,7 @@
|
||||
[% END %]
|
||||
</td>
|
||||
[% IF params.c_port %]
|
||||
<td>
|
||||
[% row.port | html_entity %]
|
||||
</td>
|
||||
<td><a class="this_port_only" href="#">[% row.port | html_entity %]</a></td>
|
||||
[% END %]
|
||||
[% IF params.c_descr %]
|
||||
<td class="center_cell">[% row.descr | html_entity %]</td>
|
||||
|
||||
@@ -70,6 +70,14 @@
|
||||
$('#ports_form').trigger('submit');
|
||||
});
|
||||
|
||||
// make all port names clickable to restrict results to that port only
|
||||
$('body').delegate('.this_port_only', 'click', function() {
|
||||
var port = $(this).text();
|
||||
sweep.val(port);
|
||||
$('.field_clear_icon').show();
|
||||
$('#ports_form').trigger('submit');
|
||||
});
|
||||
|
||||
// everything starts hidden and then we show defaults
|
||||
$('#nd_collapse_legend').click();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user