| Server IP : 138.197.176.125 / Your IP : 216.73.217.55 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/GoogleOffice365Suite/modules/CTBrowserExt1/ |
Upload File : |
/*+*******************************************************************************
* The content of this file is subject to the CRMTiger Pro license.
* ("License"); You may not use this file except in compliance with the License
* The Initial Developer of the Original Code is vTiger
* The Modified Code of the Original Code owned by https://crmtiger.com/
* Portions created by CRMTiger.com are Copyright(C) CRMTiger.com
* All Rights Reserved.
***************************************************************************** */
if(typeof($) == 'undefined') {
$ = function(id) {
var node = document.getElementById(id);
if(typeof(node) == 'undefined') node = false;
return node;
}
$fnT = function(id1, id2) {
var node1 = $(id1);
var node2 = $(id2);
if(node1) node1.style.display = 'none';
if(node2) node2.style.display = 'block';
}
$fnFocus = function(id) {
try {
var node = $(id);
node.focus();
} catch(error) {
}
}
$fnAddClass = function(node, toadd) {
var classValue = node.className;
var regex = new RegExp(toadd, "g");
if(classValue.match(regex) == null) {
classValue += " " + toadd;
node.className = classValue;
}
}
$fnRemoveClass = function(node, toremove) {
var classValue = node.className;
var regex = new RegExp(toremove, "g");
classValue = classValue.replace(regex, '');
node.className = classValue;
}
$fnCheckboxOn = function(idprefix) {
//$fnT((idprefix+'_on'), (idprefix+'_off'));
var nodeon = $(idprefix+'_on');
var nodeoff = $(idprefix+'_off');
if(nodeon) $fnAddClass(nodeon.parentNode, 'hide');
if(nodeoff) $fnRemoveClass(nodeoff.parentNode, 'hide');
}
$fnCheckboxOff = function(idprefix) {
//$fnT((idprefix+'_off'), (idprefix+'_on'));
var nodeon = $(idprefix+'_on');
var nodeoff = $(idprefix+'_off');
if(nodeon) $fnRemoveClass(nodeon.parentNode, 'hide');
if(nodeoff) $fnAddClass(nodeoff.parentNode, 'hide');
}
}