(Untitled)

I have an odd problem that I can't figure out. It's probably something simple but i don't see it!

Behind the log-in on the admin pages sometimes when a page loads it loads with this at the very top...

var subst = param; switch (pType) { case 'b': subst = parseInt(param).toString(2); break; case 'c': subst = String.fromCharCode(parseInt(param)); break; case 'd': subst = parseInt(param)? parseInt(param) : 0; break; case 'u': subst = Math.abs(param); break; case 'f': subst = (precision > -1)? Math.round(parseFloat(param) * Math.pow(10, precision)) / Math.pow(10, precision) : parseFloat(param); break; case 'o': subst = parseInt(param).toString(8); break; case 's': subst = param; break; case 'x': subst = ('' + parseInt(param).toString(16)).toLowerCase(); break; case 'X': subst = ('' + parseInt(param).toString(16)).toUpperCase(); break; } var padLeft = minLength - subst.toString().length; if (padLeft > 0) { var arrTmp = new Array(padLeft+1); var padding = arrTmp.join(pad?pad:" "); } else { var padding = ""; } } str = leftpart + padding + subst + rightPart; } return str; }

I've searched all the files related to zenPhoto and i can't find this anywhere. I can't figure out what it is, and therefore i can't figure out how to fix it.
Any help would be appreciated.

Comments

  • Generally this is a browser problem. It is displaying Javascript when it should not. We have been working on finding these places in Zenphoto where the browser gets confused and adding things to try to prevent it from happening. I suggest you try the nightly build and see if the problem persists.
  • acrylian Administrator, Developer
    More specific it is a Webkit based browser issue (Safari, Chrome). This should actually not be the case with 1.3 anymore (at least I do not see that anymore with Safari 4.1).
Sign In or Register to comment.