diff --git a/Netdisco/views/ajax/device/ports.tt b/Netdisco/views/ajax/device/ports.tt
index de91f54d..9ad71ebe 100644
--- a/Netdisco/views/ajax/device/ports.tt
+++ b/Netdisco/views/ajax/device/ports.tt
@@ -23,9 +23,7 @@
[% END %]
[% IF params.c_port %]
-
- [% row.port | html_entity %]
- |
+ [% row.port | html_entity %] |
[% END %]
[% IF params.c_descr %]
[% row.descr | html_entity %] |
diff --git a/Netdisco/views/js/device.js b/Netdisco/views/js/device.js
index 0f725d8f..19b1a7a2 100644
--- a/Netdisco/views/js/device.js
+++ b/Netdisco/views/js/device.js
@@ -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();
});