I needed to install CJ loader in order for FEC to function properly, after doing so I noticed that this CJ loader causes a problem on my login page. I have a script on my create account form that disables fields if the checkbox is checked, this part of the form disappears 1 second after loading the page, you can even see it here http://www.pazzle.co.uk/index.php?main_page=login
What does this CJ loader do exactly, it's interrupting other scripts on my site?
This is the loader syntax, placed after the <head> tag.
Code:
<?php
/**
* load the loader files
*/
if($RI_CJLoader->get('status') && (!isset($Ajax) || !$Ajax->status())){
$RI_CJLoader->autoloadLoaders();
$RI_CJLoader->loadCssJsFiles();
$files = $RI_CJLoader->header();
foreach($files['css'] as $file)
if($file['include']) include($file['src']);
else if(!$RI_CJLoader->get('minify') || $file['external']) echo "<link rel=\"stylesheet\" type=\"text/css\" href='{$file['src']}' />\n";
else echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"min/?f={$file['src']}&".$RI_CJLoader->get('minify_time')."\" />\n";
foreach($files['jscript'] as $file)
if($file['include']) include($file['src']);
else if(!$RI_CJLoader->get('minify') || $file['external']) echo "<script type='text/javascript' src='{$file['src']}'></script>\n";
else echo "<script type=\"text/javascript\" src=\"min/?f={$file['src']}&".$RI_CJLoader->get('minify_time')."\"></script>\n";
}
//DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->';
?>
Bookmarks