jslint approved.

This commit is contained in:
Boaz Leskes 2013-11-06 22:25:43 +01:00
parent 4b56416a50
commit 16643f8b52

View file

@ -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 = [
{