##
## static content
##
-static: htdocs/javascript/core.js htdocs/javascript@VERSION
+static: htdocs/javascript/core.js htdocs/javascript@VERSION htdocs/javascript/json2.js
htdocs/javascript/core.js:
cd htdocs/javascript/ && ln -s ../../core/htdocs/javascript/core.js
%@VERSION: % Makefile ChangeLog
cd $< && rm -f $(VERSION) && ln -sf . $(VERSION)
+htdocs/javascript/json2.js: DOWNLOAD_SRC = https://github.com/douglascrockford/JSON-js/raw/master/json2.js --no-check-certificate
+htdocs/javascript/json2.js:
+ @$(download)
+
##
## wiki
##
$this->assign('is_admin', may_update());
$this->assign('is_member', is_member());
}
+ if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) {
+ $this->addJsLink('json2.js');
+ }
$this->addJsLink('jquery.xorg.js');
$this->addJsLink('overlib.js');
$this->addJsLink('core.js');
// Set the default page
$this->changeTpl('platal/index.tpl');
+ if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) {
+ $this->addJsLink('json2.js');
+ }
$this->addJsLink('jquery.xorg.js');
$this->addJsLink('overlib.js');
$this->addJsLink('core.js');
# jQuery and its plugins are downloaded by the Makefile
/jquery*.*js
/core.js
+/json2.js
!/jquery.autocomplete.js