From 354ecfbc9eb6c90fb493984fb17b1ca81d9ea343 Mon Sep 17 00:00:00 2001 From: ayvis Date: Wed, 26 Mar 2014 00:25:32 +0100 Subject: javascript normalization --- usr/local/www/themes/the_wall/javascript/niftyjsCode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www/themes/the_wall/javascript') diff --git a/usr/local/www/themes/the_wall/javascript/niftyjsCode.js b/usr/local/www/themes/the_wall/javascript/niftyjsCode.js index 8e76d46..e71ea14 100644 --- a/usr/local/www/themes/the_wall/javascript/niftyjsCode.js +++ b/usr/local/www/themes/the_wall/javascript/niftyjsCode.js @@ -3,7 +3,7 @@ if(!document.getElementById || !document.createElement) return(false); isXHTML=/html\:/.test(document.getElementsByTagName('body')[0].nodeName); if(Array.prototype.push==null){Array.prototype.push=function(){ - this[this.length]=arguments[0]; return(this.length);}} + this[this.length]=arguments[0]; return(this.length);};} return(true); } @@ -30,7 +30,7 @@ else if(opt && opt.indexOf("smooth")>=0){ if(opt && opt.indexOf("small")>=0) cn+="s"; prefixt=cn; prefixb=cn; -if(wich.indexOf("all")>=0){t=true;b=true} +if(wich.indexOf("all")>=0){t=true;b=true;} else if(wich.indexOf("top")>=0) t="true"; else if(wich.indexOf("tl")>=0){ t="true"; -- cgit v1.1