mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Reformat and add semicolons to graph.js
This commit is contained in:
parent
43dc377bee
commit
953334a4f7
|
@ -384,17 +384,17 @@ Prometheus.Graph.prototype.updateGraph = function(reloadGraph) {
|
|||
|
||||
jQuery(".x_label", element).each(function() {
|
||||
if ($(this).outerWidth() + element.offset().left > width) {
|
||||
$(this).addClass("flipped")
|
||||
$(this).addClass("flipped");
|
||||
} else {
|
||||
$(this).removeClass("flipped")
|
||||
$(this).removeClass("flipped");
|
||||
}
|
||||
})
|
||||
|
||||
jQuery(".item", element).each(function() {
|
||||
if ($(this).outerWidth() + element.offset().left > width) {
|
||||
$(this).addClass("flipped")
|
||||
$(this).addClass("flipped");
|
||||
} else {
|
||||
$(this).removeClass("flipped")
|
||||
$(this).removeClass("flipped");
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue