diff options
author | ayvis <ayvis.infra@gmail.com> | 2014-03-26 00:25:32 +0100 |
---|---|---|
committer | ayvis <ayvis.infra@gmail.com> | 2014-03-26 00:25:32 +0100 |
commit | 354ecfbc9eb6c90fb493984fb17b1ca81d9ea343 (patch) | |
tree | f5fb4ea9d21292f50fccda74328a467141543902 /usr/local/www/themes/pfsense_ng/javascript | |
parent | 07130afe2b5dd906d9f9b39585c355a07af006f9 (diff) | |
download | pfsense-354ecfbc9eb6c90fb493984fb17b1ca81d9ea343.zip pfsense-354ecfbc9eb6c90fb493984fb17b1ca81d9ea343.tar.gz |
javascript normalization
Diffstat (limited to 'usr/local/www/themes/pfsense_ng/javascript')
-rw-r--r-- | usr/local/www/themes/pfsense_ng/javascript/niftyjsCode.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/themes/pfsense_ng/javascript/niftyjsCode.js b/usr/local/www/themes/pfsense_ng/javascript/niftyjsCode.js index 8e76d46..e71ea14 100644 --- a/usr/local/www/themes/pfsense_ng/javascript/niftyjsCode.js +++ b/usr/local/www/themes/pfsense_ng/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"; |