Reformat and add semicolons to graph.js

This commit is contained in:
Bernerd Schaefer 2013-04-12 13:41:53 +02:00
parent 43dc377bee
commit 953334a4f7

View file

@ -384,17 +384,17 @@ Prometheus.Graph.prototype.updateGraph = function(reloadGraph) {
jQuery(".x_label", element).each(function() { jQuery(".x_label", element).each(function() {
if ($(this).outerWidth() + element.offset().left > width) { if ($(this).outerWidth() + element.offset().left > width) {
$(this).addClass("flipped") $(this).addClass("flipped");
} else { } else {
$(this).removeClass("flipped") $(this).removeClass("flipped");
} }
}) })
jQuery(".item", element).each(function() { jQuery(".item", element).each(function() {
if ($(this).outerWidth() + element.offset().left > width) { if ($(this).outerWidth() + element.offset().left > width) {
$(this).addClass("flipped") $(this).addClass("flipped");
} else { } else {
$(this).removeClass("flipped") $(this).removeClass("flipped");
} }
}) })
}, },