| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/newsite/administrator/components/com_jaextmanager/assets/js/ |
Upload File : |
/**
* ------------------------------------------------------------------------
* JA Extenstion Manager Component for J25 & J3
* ------------------------------------------------------------------------
* Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
* @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
* Author: J.O.O.M Solutions Co., Ltd
* Websites: http://www.joomlart.com - http://www.joomlancers.com
* ------------------------------------------------------------------------
*/
var JATreeMenu = new
function () {
this.menuid = 'jacom-mainnav';
this.openedcls = 'opened';
this.closedcls = 'closed';
this.initmenu = function () {
var mainnav = document.getElementById(this.menuid);
if (!mainnav) return;
var uls = mainnav.getElementsByTagName('ul');
var menustatus = Cookie.read('menustatus');
open_obj = document.getElementById('menu_open');
close_obj = document.getElementById('menu_close');
if (menustatus == this.closedcls) {
close_obj.className = 'closeall';
open_obj.className = 'openall opened';
} else {
open_obj.className = 'openall';
close_obj.className = 'closeall closed';
}
for (var i = 1; i < uls.length; i++) {
var li = uls[i].parentNode;
if (li.tagName.toLowerCase() != 'li') continue;
if (li.className.indexOf('opened') == -1) {
if (menustatus == "" || menustatus == null) {
menustatus = this.openedcls;
}
li.className += " " + menustatus;
}
var a = li.getElementsByTagName('a')[0];
a._p = li;
a._o = this.openedcls;
a._c = this.closedcls;
a.onclick = function () {
var _p = this._p;
if (_p.className.indexOf(this._o) == -1) {
_p.className = _p.className.replace(new RegExp(" " + this._c + "\\b"), " " + this._o);
} else {
_p.className = _p.className.replace(new RegExp(" " + this._o + "\\b"), " " + this._c);
}
}
a.href = 'javascript:;';
}
};
this.openall = function () {
open_obj = document.getElementById('menu_open');
open_obj.className = 'openall';
close_obj = document.getElementById('menu_close');
close_obj.className = 'closeall closed';
Cookie.write('menustatus', this.openedcls);
var mainnav = document.getElementById(this.menuid);
if (!mainnav) return;
var uls = mainnav.getElementsByTagName('ul');
for (var i = 1; i < uls.length; i++) {
var li = uls[i].parentNode;
if (li.tagName.toLowerCase() != 'li') continue;
li.className = li.className.replace(new RegExp(" " + this.closedcls + "\\b"), " " + this.openedcls);
}
};
this.closeall = function () {
close_obj = document.getElementById('menu_close');
close_obj.className = 'closeall';
open_obj = document.getElementById('menu_open');
open_obj.className = 'openall opened';
Cookie.write('menustatus', this.closedcls);
var mainnav = document.getElementById(this.menuid);
if (!mainnav) return;
var uls = mainnav.getElementsByTagName('ul');
for (var i = 1; i < uls.length; i++) {
var li = uls[i].parentNode;
if (li.tagName.toLowerCase() != 'li') continue;
li.className = li.className.replace(new RegExp(" " + this.openedcls + "\\b"), " " + this.closedcls);
}
};
}