mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#19278739 head에서 load 되는 js 파일 정리
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7863 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4f279059c7
commit
2ffceda21b
5 changed files with 7 additions and 6 deletions
|
|
@ -7,6 +7,6 @@
|
|||
* @brief 자동 링크 애드온
|
||||
**/
|
||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC") {
|
||||
Context::addJsFile('./addons/autolink/autolink.js');
|
||||
Context::addJsFile('./addons/autolink/autolink.js', false ,'', null, 'body');
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
if(Context::getRequestMethod()!='XMLRPC' && Context::getRequestMethod()!=='JSON')
|
||||
{
|
||||
Context::addHtmlHeader('<script type="text/javascript"> var captchaTargetAct = new Array("'.implode('","',$target_acts).'"); </script>');
|
||||
Context::addJsFile('./addons/captcha/captcha.js',false);
|
||||
Context::addJsFile('./addons/captcha/captcha.js',false, '', null, 'body');
|
||||
}
|
||||
|
||||
// 게시판/ 이슈트래커의 글쓰기/댓글쓰기 액션 호출시 세션 비교
|
||||
|
|
|
|||
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()=="HTML") {
|
||||
Context::loadJavascriptPlugin('ui');
|
||||
Context::addJsFile('./addons/resize_image/js/resize_image.min.js',false);
|
||||
Context::addJsFile('./addons/resize_image/js/resize_image.min.js',false, '',null, 'body');
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1167,6 +1167,7 @@
|
|||
* @brief js file을 추가
|
||||
**/
|
||||
function _addJsFile($file, $targetie = '',$index=null,$type="head") {
|
||||
if($type != 'body') $type = 'head';
|
||||
if(strpos($file,'://')===false && $file{0}!='/' && $file{0}!='.') $file = './'.$file;
|
||||
$file = preg_replace('@/\./|(?<!:)\/\/@', '/', $file);
|
||||
while(strpos($file,'/../')) $file = preg_replace('/\/([^\/]+)\/\.\.\//s','/',$file,1);
|
||||
|
|
@ -1357,7 +1358,7 @@
|
|||
$filename = trim($list[$i]);
|
||||
if(!$filename) continue;
|
||||
if(substr($filename,0,2)=='./') $filename = substr($filename,2);
|
||||
if(preg_match('/\.js$/i',$filename)) $this->_addJsFile($plugin_path.$filename, '', null);
|
||||
if(preg_match('/\.js$/i',$filename)) $this->_addJsFile($plugin_path.$filename, '', null, 'body');
|
||||
elseif(preg_match('/\.css$/i',$filename)) $this->_addCSSFile($plugin_path.$filename, 'all','', null);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ class HTMLDisplayHandler {
|
|||
$oContext->_addJsFile("./common/js/x.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/common.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/js_app.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/xml_handler.js", '', -100000);
|
||||
$oContext->_addJsFile("./common/js/xml_handler.js", '', -100000, 'body');
|
||||
$oContext->_addJsFile("./common/js/xml_js_filter.js", '', -100000, 'body');
|
||||
$oContext->_addCSSFile("./common/css/default.css", 'all', '', -100000);
|
||||
$oContext->_addCSSFile("./common/css/button.css", 'all', '', -100000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue