From 0edf8ba4c89910d5659d60ee181fdb23b4f70c48 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 29 Jan 2010 23:57:44 +0000 Subject: [PATCH] Patch jQuery to test for 'nullpx' as well as 'NaNpx' --- skins/common/jquery.js | 2 +- skins/common/jquery.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/skins/common/jquery.js b/skins/common/jquery.js index 377bb51e95..c25ee31c89 100644 --- a/skins/common/jquery.js +++ b/skins/common/jquery.js @@ -1059,7 +1059,7 @@ jQuery.extend({ return letter.toUpperCase(); }); - if ( set && value != 'NaNpx' ) // Patched by Trevor, see http://is.gd/5NXiD + if ( set && value != 'NaNpx' && value != 'nullpx' ) // Patched by Trevor, see http://is.gd/5NXiD elem[ name ] = value; return elem[ name ]; diff --git a/skins/common/jquery.min.js b/skins/common/jquery.min.js index 6574100c64..d872c9f0da 100644 --- a/skins/common/jquery.min.js +++ b/skins/common/jquery.min.js @@ -121,7 +121,7 @@ elem.setAttribute(name,""+value);var attr=!jQuery.support.hrefNormalized&¬xml if(!jQuery.support.opacity&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+ (parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");} return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";} -name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set&&value!='NaNpx') +name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set&&value!='NaNpx'&&value!='nullpx') elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||typeof array==="string"||jQuery.isFunction(array)||array.setInterval) ret[0]=array;else while(i) -- 2.20.1