Merge pull request #906 from laf/global-search

removed limit due to issue with typeahead
This commit is contained in:
Neil Lathwood 2015-05-03 22:37:15 +01:00
commit d998d06b02
2 changed files with 1 additions and 3 deletions

View File

@ -1626,6 +1626,7 @@ tr.search:nth-child(odd) {
left: -400px !important;
margin-bottom: 20px;
overflow: hidden;
padding: 5px;
background-color: #fff;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;

View File

@ -640,7 +640,6 @@ $('#gsearch').typeahead({
source: devices.ttAdapter(),
async: true,
display: name,
limit: 8,
templates: {
header: '<h5><strong>&nbsp;Devices</strong></h5>',
suggestion: Handlebars.compile('<p><a href="{{url}}"><img src="{{device_image}}" border="0"> <small><strong>{{name}}</strong> | {{device_os}} | {{version}} | {{device_hardware}} with {{device_ports}} port(s) | {{location}}</small></a></p>')
@ -650,7 +649,6 @@ $('#gsearch').typeahead({
source: ports.ttAdapter(),
async: true,
display: name,
limit: 8,
templates: {
header: '<h5><strong>&nbsp;Ports</strong></h5>',
suggestion: Handlebars.compile('<p><a href="{{url}}"><small><img src="images/icons/port.png" /> <strong>{{name}}</strong> {{hostname}}<br /><i>{{description}}</i></small></a></p>')
@ -660,7 +658,6 @@ $('#gsearch').typeahead({
source: bgp.ttAdapter(),
async: true,
display: name,
limit: 8,
templates: {
header: '<h5><strong>&nbsp;BGP Sessions</strong></h5>',
suggestion: Handlebars.compile('<p><a href="{{url}}"><small><img src="{{bgp_image}}" border="0">{{name}} - {{hostname}}<br />AS{{localas}} -> AS{{remoteas}}</small></a></p>')