#19639708 fixed resize image addon for mobile

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8198 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2011-03-22 08:31:50 +00:00
parent 8a9f9dbbbd
commit e763329237
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1 @@
.xe_content img { max-width:100%; height:auto; }

View file

@ -8,7 +8,11 @@
**/
if($called_position == 'after_module_proc' && Context::getResponseMethod()=="HTML") {
Context::loadJavascriptPlugin('ui');
Context::addJsFile('./addons/resize_image/js/resize_image.min.js',false, '',null, 'body');
if(Mobile::isFromMobilePhone()) {
Context::addCssFile('./addons/resize_image/css/resize_image.mobile.css');
} else {
Context::loadJavascriptPlugin('ui');
Context::addJsFile('./addons/resize_image/js/resize_image.min.js',false, '',null, 'body');
}
}
?>