From 7cbb9cc07d7abbffa1dc2e3516dfdb8eb8077282 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Wed, 29 Feb 2012 14:34:30 +0000 Subject: [PATCH] [-] FO : fix bug #PSFV-540 - JS error with homeslider and IE < 9 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13741 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/homeslider/js/jquery.bxSlider.min.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/homeslider/js/jquery.bxSlider.min.js b/modules/homeslider/js/jquery.bxSlider.min.js index 3d1d50460..a214174f4 100755 --- a/modules/homeslider/js/jquery.bxSlider.min.js +++ b/modules/homeslider/js/jquery.bxSlider.min.js @@ -1,4 +1,5 @@ /** + * WARNING : library has been patched (search for START PATCH tag) from base version 3.0 to fix an error with IE < 9 * jQuery bxSlider v3.0 * http://bxslider.com * @@ -111,4 +112,4 @@ while(loopLength>0){$.each(array,function(index,val){if(loopLength>0){if(!startP return sample;} this.each(function(){base.initShow();});return this;} jQuery.fx.prototype.cur=function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];} -var r=parseFloat(jQuery.css(this.elem,this.prop));return r;}})(jQuery); \ No newline at end of file +var r=parseFloat(jQuery.css(this.elem,this.prop));/* START PATCH Patch applied on top of library version 3.0 (see https://github.com/wandoledzep/bxslider/issues/89) Empty strings, null, undefined and "auto" are converted to 0, complex values such as "rotate(1rad)" are returned as is, simple values such as "10px" are parsed to Float.*/return isNaN(parsed = parseFloat(r)) ? !r || r === "auto" ? 0 : r : parsed;/* END PATCH - BEFORE PATCH WAS return r; */}})(jQuery); \ No newline at end of file