add drop-down control for the topo form fields

This commit is contained in:
Oliver Gorwits
2013-05-07 21:47:05 +01:00
parent 5744b6845f
commit 52ab7d1266
2 changed files with 26 additions and 4 deletions

View File

@@ -15,6 +15,7 @@
// get all devices on device input focus
$(".nd_topo_dev").on('focus', function(e) { $(this).autocomplete('search', '%') });
$(".nd_topo_dev_caret").on('click', function(e) { $(this).siblings('.nd_topo_dev').autocomplete('search', '%') });
// activate typeahead on the topo boxes
$('.nd_topo_port.nd_topo_dev1').autocomplete({
@@ -40,6 +41,7 @@
// get all ports on port input focus
$(".nd_topo_port").on('focus', function(e) { $(this).autocomplete('search') });
$(".nd_topo_port_caret").on('click', function(e) { $(this).siblings('.nd_topo_port').autocomplete('search') });
// activity for admin task tables
// dynamically bind to all forms in the table