Use $ instead of jQuery

This commit is contained in:
Bernerd Schaefer 2013-04-12 13:43:53 +02:00
parent 953334a4f7
commit 442a6d2b11
2 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ function submitQuery() {
}
function bindHandlers() {
jQuery.ajaxSetup({
$.ajaxSetup({
cache: false
});
$("#queryForm").submit(submitQuery);

View File

@ -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
});