-
AuthorPosts
-
sadesh Friend
sadesh
- Join date:
- March 2009
- Posts:
- 63
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 26
- Thanked:
- 2 times in 1 posts
September 22, 2010 at 8:21 pm #154549I know the following scripts are useful in one way or other. I would like to know, which file(s) calls these scripts. If I know that detail, I am compiling a master.js file to reduce the number of scripts. I couldn’t able to track the origin of these files.
/media/system/js/caption.js
/templates/teline_iii/js/ja.script.js (where is this useful?)
/templates/teline_iii/js/ja.ddmod.js (where is this useful?)
/templates/teline_iii/js/menu/split.js
thank you!
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
sadesh Friendsadesh
- Join date:
- March 2009
- Posts:
- 63
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 26
- Thanked:
- 2 times in 1 posts
September 23, 2010 at 9:54 am #356474Thank you tienhc. Where do I find split.js and caption.js.?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
September 27, 2010 at 10:37 am #356801<em>@sadesh 195217 wrote:</em><blockquote>Thank you tienhc. Where do I find split.js and caption.js.?</blockquote>
You find code in this : templatesja_teline_iiilibsja.template.helper.php for loading the split.js file, in here
[PHP]function loadMenu ($params = null, $menutype = ‘css’) {
static $jamenu;
if (!isset($jamenu)) {
$file = dirname(__FILE__).DS.’menu’.DS.”$menutype.class.php”;
if (!is_file ($file)) return null;
require_once ($file);
$menuclass = “JAMenu{$menutype}”;
$jamenu = new $menuclass ($params);
//assign template object
$jamenu->_tmpl = $this;
//load menu
$jamenu->loadMenu();
//check css/js file
$file = $this->templatepath().DS.’css’.DS.’menu’.DS.”$menutype.css”;
if (is_file ($file)) $jamenu->_css = $this->templateurl().”/css/menu/$menutype.css”;
$file = $this->templatepath().DS.’js’.DS.’menu’.DS.”$menutype.js”;
if (is_file ($file)) $jamenu->_js = $this->templateurl().”/js/menu/$menutype.js”;
}
return $jamenu;
}[/PHP]caption.js is loaded by joomla system, i could not know where 🙁
1 user says Thank You to Saguaros for this useful post
sadesh Friendsadesh
- Join date:
- March 2009
- Posts:
- 63
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 26
- Thanked:
- 2 times in 1 posts
September 27, 2010 at 12:24 pm #356813thank you tienhc.
That solved the problem of split.js
For those who wonder, this tiny plugin helped me to remove caption.js, which is primarily used for joomla backend.
I will mark the thread and ticket as solved.
-
AuthorPosts
This topic contains 5 replies, has 2 voices, and was last updated by sadesh 14 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum