Added headers for devices / groups

This commit is contained in:
laf
2015-05-03 17:49:19 +01:00
parent 80028465cb
commit ac1d85235c
2 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,7 @@ $('#target').typeahead({
displayKey: 'name',
valueKey: name,
templates: {
header: '<h5><strong>&nbsp;Devices</strong></h5>',
suggestion: Handlebars.compile('<p>&nbsp;{{name}}</p>')
}
},
@ -156,6 +157,7 @@ $('#target').typeahead({
displayKey: 'name',
valueKey: name,
templates: {
header: '<h5><strong>&nbsp;Groups</strong></h5>',
suggestion: Handlebars.compile('<p>&nbsp;{{name}}</p>')
}
});

View File

@ -286,6 +286,7 @@ $('#map-stub').typeahead({
displayKey: 'name',
valueKey: name,
templates: {
header: '<h5><strong>&nbsp;Devices</strong></h5>',
suggestion: Handlebars.compile('<p>&nbsp;{{name}}</p>')
}
},
@ -295,6 +296,7 @@ $('#map-stub').typeahead({
displayKey: 'name',
valueKey: name,
templates: {
header: '<h5><strong>&nbsp;Groups</strong></h5>',
suggestion: Handlebars.compile('<p>&nbsp;{{name}}</p>')
}
});