Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Use the local spinner.gif rather than rely on an external sit…

…e. Fixes issue #168"

This reverts commit 7209139.
  • Loading branch information...
commit 5f938bb34f45eaa5578ddc5367d23c48bbf76c75 1 parent 4823415
@markkevans markkevans authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  catalog/ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js
View
2  catalog/ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js
@@ -8,7 +8,7 @@ Released under the GPL license:
http://www.gnu.org/licenses/gpl.html
*/
-(function($){$.fn.extend({bxGallery:function(options){var defaults={maxwidth:'',maxheight:'',thumbwidth:200,thumbcrop:false,croppercent:.35,thumbplacement:'bottom',thumbcontainer:'',opacity:.7,load_text:'',load_image:'spinner.gif',wrapperclass:'outer'}
+(function($){$.fn.extend({bxGallery:function(options){var defaults={maxwidth:'',maxheight:'',thumbwidth:200,thumbcrop:false,croppercent:.35,thumbplacement:'bottom',thumbcontainer:'',opacity:.7,load_text:'',load_image:'http://i302.photobucket.com/albums/nn92/wandoledzep/spinner.gif',wrapperclass:'outer'}
var options=$.extend(defaults,options);var o=options;var cont='';var caption='';var $outer='';var $orig=this;var tall=0;var wide=0;var showing=0;var i=0;var k=$orig.find('img').size();var current;preload_img();function preload_img(){$orig.hide();if(o.load_text!=''){$orig.before('<div id="loading">'+o.load_text+'</div>');}else{$orig.before('<div id="loading"><img src="'+o.load_image+'" /></div>');}
$orig.parent().find('#loading').css({'textAlign':'center','width':o.maxwidth});$orig.find('img').each(function(){var the_source=$(this).attr('src');var the_img=new Image();the_img.onload=function(){preload_check();};the_img.src=the_source;});}
function preload_check(){i++;if(i==k){init();}}
Please sign in to comment.
Something went wrong with that request. Please try again.