mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
jslint approved.
This commit is contained in:
parent
4b56416a50
commit
16643f8b52
1 changed files with 23 additions and 18 deletions
|
@ -66,7 +66,9 @@ var show = ARGS.show.split(',') || [];
|
|||
// Now populate the query service with our objects
|
||||
dashboard.services.query = {
|
||||
list: queries,
|
||||
ids : _.map(_.keys(queries),function(v){return parseInt(v,10);}),
|
||||
ids: _.map(_.keys(queries), function (v) {
|
||||
return parseInt(v, 10);
|
||||
}),
|
||||
};
|
||||
|
||||
// Lets also add a default time filter, the value of which can be specified by the user
|
||||
|
@ -336,7 +338,9 @@ var showedSomething;
|
|||
dashboard.rows = _.map(rows, function (r) {
|
||||
_.defaults(r, row_defaults);
|
||||
_.each(r.panels, function (panel) {
|
||||
if (!panel.type) panel.type = "histogram";
|
||||
if (!panel.type) {
|
||||
panel.type = "histogram";
|
||||
}
|
||||
_.defaults(panel, panel_defaults_by_type[panel.type]);
|
||||
if (_.contains(show, panel.value_field)) {
|
||||
showedSomething = true;
|
||||
|
@ -348,7 +352,8 @@ dashboard.rows = _.map(rows, function(r) {
|
|||
|
||||
if (!showedSomething && dashboard.rows.length > 0) {
|
||||
dashboard.rows[0].collapse = false;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
dashboard.pulldowns = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue