mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
use existings webui option (global_search_result_limit) to set typeahead limit instead of introducing new config option
This commit is contained in:
@@ -204,7 +204,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_device.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
limit: '.$typeahead_limit.',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong> Devices</strong></h5>",
|
||||
@@ -241,7 +241,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_port.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
limit: '.$typeahead_limit.',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong> Ports</strong></h5>",
|
||||
@@ -277,7 +277,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_application.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
limit: '.$typeahead_limit.',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong> Applications</strong></h5>",
|
||||
@@ -315,7 +315,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_munin.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
limit: '.$typeahead_limit.',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong> Munin</strong></h5>",
|
||||
@@ -350,7 +350,7 @@ function '.$unique_id.'() {
|
||||
},
|
||||
{
|
||||
source: '.$unique_id.'_bill.ttAdapter(),
|
||||
limit: '.$config['typeahead_limit'].',
|
||||
limit: '.$typeahead_limit.',
|
||||
async: false,
|
||||
templates: {
|
||||
header: "<h5><strong><i class=\'fa fa-money\'></i> Bill</strong></h5>",
|
||||
@@ -437,3 +437,4 @@ else {
|
||||
$common_output[] = '<a href="graphs/'.$param.'/type='.$widget_settings['graph_type'].'/from='.$config['time'][$widget_settings['graph_range']].'"><img class="minigraph-image" width="'.$widget_dimensions['x'].'" height="'.$widget_dimensions['y'].'" src="graph.php?'.$param.'&from='.$config['time'][$widget_settings['graph_range']].'&to='.$config['time']['now'].'&width='.$widget_dimensions['x'].'&height='.$widget_dimensions['y'].'&type='.$widget_settings['graph_type'].'&legend='.($widget_settings['graph_legend'] == 1 ? 'yes' : 'no').'&absolute=1"/></a>';
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user