From 442a6d2b1134a1b08be094d56e178c2ce516b265 Mon Sep 17 00:00:00 2001 From: Bernerd Schaefer Date: Fri, 12 Apr 2013 13:43:53 +0200 Subject: [PATCH] Use $ instead of jQuery --- web/static/js/exprBrowser.js | 2 +- web/static/js/graph.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/static/js/exprBrowser.js b/web/static/js/exprBrowser.js index ec04036a9..4917f8310 100644 --- a/web/static/js/exprBrowser.js +++ b/web/static/js/exprBrowser.js @@ -17,7 +17,7 @@ function submitQuery() { } function bindHandlers() { - jQuery.ajaxSetup({ + $.ajaxSetup({ cache: false }); $("#queryForm").submit(submitQuery); diff --git a/web/static/js/graph.js b/web/static/js/graph.js index cb0f2ee54..f319868b1 100644 --- a/web/static/js/graph.js +++ b/web/static/js/graph.js @@ -380,9 +380,9 @@ Prometheus.Graph.prototype.updateGraph = function(reloadGraph) { }, onRender: function() { var width = this.graph.width; - var element = jQuery(this.element); + var element = $(this.element); - jQuery(".x_label", element).each(function() { + $(".x_label", element).each(function() { if ($(this).outerWidth() + element.offset().left > width) { $(this).addClass("flipped"); } else { @@ -390,7 +390,7 @@ Prometheus.Graph.prototype.updateGraph = function(reloadGraph) { } }) - jQuery(".item", element).each(function() { + $(".item", element).each(function() { if ($(this).outerWidth() + element.offset().left > width) { $(this).addClass("flipped"); } else { @@ -457,7 +457,7 @@ function addGraph(options) { } function init() { - jQuery.ajaxSetup({ + $.ajaxSetup({ cache: false });