Skip to content

Commit 5858284

Browse files
georges-armTamarChristinaArm
authored andcommitted
Fix misleading indentation in v4_graph.html.
Change-Id: Ida4bdce5cffb9804da83c07927a842a3cc388021
1 parent 2c1cc3d commit 5858284

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

lnt/server/ui/templates/v4_graph.html

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@
7373
var graph = $("#graph");
7474
var graph_options = {
7575
series : {
76-
lines : {
77-
lineWidth : 1 },
76+
lines : { lineWidth : 1 },
7877
shadowSize : 0
79-
},
78+
},
8079
highlight : {
8180
{% if revision_range is not none %}
8281
range: {{revision_range|tojson|safe}}
@@ -85,15 +84,19 @@
8584
{% endif %}
8685
},
8786
zoom : { interactive : false },
88-
pan : { interactive : true,
89-
frameRate: 60 },
87+
pan : {
88+
interactive : true,
89+
frameRate: 60
90+
},
9091
grid : {
9192
hoverable : true,
92-
clickable: true },
93-
yaxis: {
94-
transform: transform_fn,
95-
inverseTransform: inverse_transform_fn }
96-
};
93+
clickable: true
94+
},
95+
yaxis: {
96+
transform: transform_fn,
97+
inverseTransform: inverse_transform_fn
98+
}
99+
};
97100

98101
if (options.ystart_zero && !options.logarithmic_scale) {
99102
graph_options.yaxis.min = 0;
@@ -114,23 +117,22 @@
114117
var overview_plots = {{overview_plots|tojson|safe}};
115118
$.plot(overview, overview_plots, {
116119
series : {
117-
lines : {
118-
lineWidth : 1 },
119-
shadowSize : 0 },
120-
selection: { mode: "x" },
121-
touch: {
122-
enabled: false
120+
lines : { lineWidth : 1 },
121+
shadowSize : 0
123122
},
123+
selection: { mode: "x" },
124+
touch: { enabled: false },
124125
highlight : {
125126
{% if revision_range is not none %}
126-
range: {{revision_range|tojson|safe}},
127-
alpha: "1",
128-
stroke: true,
127+
range: {{revision_range|tojson|safe}},
128+
alpha: "1",
129+
stroke: true,
129130
{% else %}
130-
enabled: false
131+
enabled: false
131132
{% endif %}
132133
},
133-
yaxis: { ticks: [] } });
134+
yaxis: { ticks: [] }
135+
});
134136

135137
// Connect selection on the overview graph to the main plot.
136138
$("#overview").bind("plotselected", function (event, ranges) {

0 commit comments

Comments
 (0)