From: <jon...@us...> - 2009-02-06 23:32:00
|
Revision: 16597 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=16597&view=rev Author: jonnybradley Date: 2009-02-06 23:31:54 +0000 (Fri, 06 Feb 2009) Log Message: ----------- [FIX] Eliminate annoying JS exceptions (will try to feed back to 3rd party) Modified Paths: -------------- third_party/xajax/xajax_core/xajaxAIO.inc.php Modified: third_party/xajax/xajax_core/xajaxAIO.inc.php =================================================================== --- third_party/xajax/xajax_core/xajaxAIO.inc.php 2009-02-06 22:37:27 UTC (rev 16596) +++ third_party/xajax/xajax_core/xajaxAIO.inc.php 2009-02-06 23:31:54 UTC (rev 16597) @@ -1120,7 +1120,7 @@ else if('deferred'==$this->bDeferScriptGeneration){$this->printJavascriptConfig();} } function getJavascriptConfig(){ob_start();$this->printJavascriptConfig();return ob_get_clean();} -function printJavascriptConfig(){$sCrLf="\n";echo $sCrLf;echo '<';echo 'script type="text/javascript" ';echo $this->sDefer;echo 'charset="UTF-8">';echo $sCrLf;echo '/* <';echo '![CDATA[ */';echo $sCrLf;echo 'try { if (undefined == xajax.config) xajax.config = {}; } catch (e) { xajax = {}; xajax.config = {}; };';echo $sCrLf;echo 'xajax.config.requestURI = "';echo $this->sRequestURI;echo '";';echo $sCrLf;echo 'xajax.config.statusMessages = ';echo $this->sStatusMessages;echo ';';echo $sCrLf;echo 'xajax.config.waitCursor = ';echo $this->sWaitCursor;echo ';';echo $sCrLf;echo 'xajax.config.version = "';echo $this->sVersion;echo '";';echo $sCrLf;echo 'xajax.config.legacy = false;';echo $sCrLf;echo 'xajax.config.defaultMode = "';echo $this->sDefaultMode;echo '";';echo $sCrLf;echo 'xajax.config.defaultMethod = "';echo $this->sDefaultMethod;echo '";';if(false===(null===$this->nResponseQueueSize)){echo $sCrLf;echo 'xajax.config.responseQueueSize = ';echo $this->nResponseQueueSize;echo ';';} +function printJavascriptConfig(){$sCrLf="\n";echo $sCrLf;echo '<';echo 'script type="text/javascript" ';echo $this->sDefer;echo 'charset="UTF-8">';echo $sCrLf;echo '/* <';echo '![CDATA[ */';echo $sCrLf;echo 'if (typeof xajax == "undefined") { xajax = {}; xajax.config = {}; } else if (typeof xajax.config == "undefined") { xajax.config = {}; };';echo $sCrLf;echo 'xajax.config.requestURI = "';echo $this->sRequestURI;echo '";';echo $sCrLf;echo 'xajax.config.statusMessages = ';echo $this->sStatusMessages;echo ';';echo $sCrLf;echo 'xajax.config.waitCursor = ';echo $this->sWaitCursor;echo ';';echo $sCrLf;echo 'xajax.config.version = "';echo $this->sVersion;echo '";';echo $sCrLf;echo 'xajax.config.legacy = false;';echo $sCrLf;echo 'xajax.config.defaultMode = "';echo $this->sDefaultMode;echo '";';echo $sCrLf;echo 'xajax.config.defaultMethod = "';echo $this->sDefaultMethod;echo '";';if(false===(null===$this->nResponseQueueSize)){echo $sCrLf;echo 'xajax.config.responseQueueSize = ';echo $this->nResponseQueueSize;echo ';';} echo $sCrLf;echo '/* ]]> */';echo $sCrLf;echo '<';echo '/script>';echo $sCrLf;} function getJavascriptInclude(){ob_start();$this->printJavascriptInclude();return ob_get_clean();} function printJavascriptInclude(){$aJsFiles=$this->aJsFiles;$sJsURI=$this->sJsURI;if(0==count($aJsFiles)){$aJsFiles[]=array($this->_getScriptFilename('xajax_js/xajax_core.js'),'xajax');if(true===$this->bDebug) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |