mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 03:09:55 +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
|
|
@ -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