mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add config option for typeahead limit
This commit is contained in:
@@ -204,6 +204,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_device.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong> Devices</strong></h5>",
|
||||
@@ -240,6 +241,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_port.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong> Ports</strong></h5>",
|
||||
@@ -275,6 +277,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_application.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong> Applications</strong></h5>",
|
||||
@@ -312,6 +315,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_munin.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong> Munin</strong></h5>",
|
||||
@@ -346,6 +350,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_bill.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong><i class=\'fa fa-money\'></i> Bill</strong></h5>",
|
||||
|
||||
@@ -717,6 +717,7 @@ $('#gsearch').typeahead({
|
||||
},
|
||||
{
|
||||
source: devices.ttAdapter(),
|
||||
limit: '<?php echo($config['typeahead_limit']); ?>',
|
||||
async: true,
|
||||
display: 'name',
|
||||
valueKey: 'name',
|
||||
@@ -727,6 +728,7 @@ $('#gsearch').typeahead({
|
||||
},
|
||||
{
|
||||
source: ports.ttAdapter(),
|
||||
limit: '<?php echo($config['typeahead_limit']); ?>',
|
||||
async: true,
|
||||
display: 'name',
|
||||
valueKey: 'name',
|
||||
@@ -737,6 +739,7 @@ $('#gsearch').typeahead({
|
||||
},
|
||||
{
|
||||
source: bgp.ttAdapter(),
|
||||
limit: '<?php echo($config['typeahead_limit']); ?>',
|
||||
async: true,
|
||||
display: 'name',
|
||||
valueKey: 'name',
|
||||
|
||||
@@ -871,3 +871,6 @@ $config['ignore_unmapable_port'] = False;
|
||||
// InfluxDB default configuration
|
||||
$config['influxdb']['timeout'] = 0;
|
||||
$config['influxdb']['verifySSL'] = false;
|
||||
|
||||
// Typeahead default configuration
|
||||
$config['typeahead_limit'] = 5;
|
||||
|
||||
Reference in New Issue
Block a user