On the mobile page, autolink addon need jQuery and XE script lib, and this commit fix the file to load them.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12458 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2012-12-25 19:55:15 +00:00
parent 2d8d2df86d
commit 66c9ae5bb7

View file

@ -8,6 +8,10 @@ if(!defined('__XE__')) exit();
*/ */
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC") if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC")
{ {
if(Mobile::isFromMobilePhone()) {
Context::addJsFile('./common/js/jquery.min.js',false, '',-1000000);
Context::addJsFile('./common/js/xe.min.js',false, '',-1000000);
}
Context::loadFile(array('./addons/autolink/autolink.js', 'body', '', null), true); Context::loadFile(array('./addons/autolink/autolink.js', 'body', '', null), true);
} }
/* End of file autolink.addon.php */ /* End of file autolink.addon.php */