Add device/node/vlan/port specific search from Navbar
This commit is contained in:
		| @@ -8,15 +8,31 @@ body { | ||||
|  | ||||
| .navbar-inner .container { | ||||
|   background: url(../images/navbar_disco.png) no-repeat; | ||||
|   background-position: 13px 0px; | ||||
| } | ||||
|  | ||||
| /* magnifying glass icon for search box */ | ||||
| /* used for icons in sidebar search buttons */ | ||||
| .nd_navbar-icon { | ||||
|   vertical-align: sub; | ||||
|   margin-top: 4px; | ||||
|   cursor: pointer; | ||||
| } | ||||
|  | ||||
| /* careful align of navbar search button and menu */ | ||||
| .nd_navbar-search-group { | ||||
|   margin-top: 0px !important; | ||||
| } | ||||
| .nd_navbar-search-icon { | ||||
|   color: #999; | ||||
|   padding-left: 5px; | ||||
|   padding-right: 5px; | ||||
| } | ||||
| .nd_navbar-search-caret { | ||||
|   padding-top: 10px !important; | ||||
|   padding-left: 5px !important; | ||||
|   padding-right: 5px !important; | ||||
| } | ||||
|  | ||||
| /* for the "logged in as..." text */ | ||||
| .nd_navbar-text { | ||||
|   color: #666; | ||||
|   | ||||
| @@ -179,6 +179,15 @@ $(document).ready(function() { | ||||
|   $('#navsearchgo').click(function() { | ||||
|     $('#navsearchgo').parents('form').submit(); | ||||
|   }); | ||||
|   $('.nd_navsearchgo-specific').click(function(event) { | ||||
|     event.preventDefault(); | ||||
|     console.log($(this).data('tab')); | ||||
|     $(this).parents('form').append( | ||||
|       $(document.createElement('input')).attr('type', 'hidden') | ||||
|                                         .attr('name', 'tab') | ||||
|                                         .attr('value', $(this).data('tab')) | ||||
|     ).submit(); | ||||
|   }); | ||||
|  | ||||
|   // fix green background on search checkboxes | ||||
|   // https://github.com/twitter/bootstrap/issues/742 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user