add drop-down control for the topo form fields
This commit is contained in:
@@ -11,10 +11,30 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<form name="add">
|
<form name="add">
|
||||||
<td class="center_cell"><input class="nd_topo_dev nd_topo_dev1" name="dev1" type="text"></td>
|
<td class="center_cell">
|
||||||
<td class="center_cell"><input class="nd_topo_port nd_topo_dev1" name="port1" type="text"></td>
|
<div class="input-append">
|
||||||
<td class="center_cell"><input class="nd_topo_dev nd_topo_dev2" name="dev2" type="text"></td>
|
<input class="nd_topo_dev nd_topo_dev1" name="dev1" type="text">
|
||||||
<td class="center_cell"><input class="nd_topo_port nd_topo_dev2" name="port2" type="text"></td>
|
<span class="add-on nd_topo_dev_caret"><i class="icon-caret-down icon-large"></i></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="center_cell">
|
||||||
|
<div class="input-append">
|
||||||
|
<input class="nd_topo_port nd_topo_dev1" name="port1" type="text">
|
||||||
|
<span class="add-on nd_topo_port_caret"><i class="icon-caret-down icon-large"></i></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="center_cell">
|
||||||
|
<div class="input-append">
|
||||||
|
<input class="nd_topo_dev nd_topo_dev2" name="dev2" type="text">
|
||||||
|
<span class="add-on nd_topo_dev_caret"><i class="icon-caret-down icon-large"></i></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td class="center_cell">
|
||||||
|
<div class="input-append">
|
||||||
|
<input class="nd_topo_port nd_topo_dev2" name="port2" type="text">
|
||||||
|
<span class="add-on nd_topo_port_caret"><i class="icon-caret-down icon-large"></i></span>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td class="center_cell">
|
<td class="center_cell">
|
||||||
<button class="btn btn-small" name="add" type="submit"><i class="icon-plus-sign"></i> Add</button>
|
<button class="btn btn-small" name="add" type="submit"><i class="icon-plus-sign"></i> Add</button>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
// get all devices on device input focus
|
// get all devices on device input focus
|
||||||
$(".nd_topo_dev").on('focus', function(e) { $(this).autocomplete('search', '%') });
|
$(".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
|
// activate typeahead on the topo boxes
|
||||||
$('.nd_topo_port.nd_topo_dev1').autocomplete({
|
$('.nd_topo_port.nd_topo_dev1').autocomplete({
|
||||||
@@ -40,6 +41,7 @@
|
|||||||
|
|
||||||
// get all ports on port input focus
|
// get all ports on port input focus
|
||||||
$(".nd_topo_port").on('focus', function(e) { $(this).autocomplete('search') });
|
$(".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
|
// activity for admin task tables
|
||||||
// dynamically bind to all forms in the table
|
// dynamically bind to all forms in the table
|
||||||
|
|||||||
Reference in New Issue
Block a user