test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • sadesh Friend
    #154549

    I 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 Moderator
    #356438

    You can found those codes within the templatesja_teline_iiilayoutsblockshead.php

    sadesh Friend
    #356474

    Thank you tienhc. Where do I find split.js and caption.js.?

    Saguaros Moderator
    #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 🙁

    sadesh Friend
    #356813

    thank 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.

    http://goo.gl/Q1Kt

    I will mark the thread and ticket as solved.

Viewing 5 posts - 1 through 5 (of 5 total)

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