Skip to content
Snippets Groups Projects
Commit 79cab287 authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Fixed bug with loading of /undefined path due to the former .js image preloading.

parent 9376efc7
Branches
Tags
1 merge request!2Issue #3342445: jQuery .live() is deprecated
......@@ -92,10 +92,6 @@
// object after init!
Drupal.behaviors.jquery_loadinganimation.Loadinganimation = this;
// Preload images.
jQuery.preload_images(Drupal.settings.basePath
+ Drupal.settings.jquery_loadinganimation.img_src);
/**
* Displays the loading animation.
*/
......@@ -116,22 +112,6 @@
};
};
/**
* Preload images via jQuery.
*/
(function($) {
var images_cache = [];
// Arguments are image paths relative to the current page.
$.preload_images = function() {
var arg_length = arguments.length;
for ( var i = arg_length; i--;) {
var image_to_cache = document.createElement('img');
image_to_cache.src = arguments[i];
images_cache.push(image_to_cache);
}
};
})(jQuery);
/**
* Initialization
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment