%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/old/templates/sj_icenter/html/mod_noo_maps/elements/assets/js/ |
Upload File : |
/** * ------------------------------------------------------------------------ * JS Options: enhance function for module configuration * ------------------------------------------------------------------------ * Copyright (C) 2008-2013 Joomseller Solutions. All Rights Reserved. * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html * Author: Joomseller * Websites: http://www.joomseller.com * ------------------------------------------------------------------------ */ /** * Function for hide options. * * @param array sub_fields The list of fields to Hide. */ function js_HideOptions(sub_fields) { if((/^\s*$/).test(sub_fields)) { return; } fields = sub_fields.split(','); for(var i = 0; i < fields.length; i ++){ js_HideOption(fields[i]); } } /** * Function for show options. * * @param array sub_fields The list of fields to Show. */ function js_ShowOptions(sub_fields) { if((/^\s*$/).test(sub_fields)) { return; } fields = sub_fields.split(','); for(var i = 0; i < fields.length; i ++){ if((/^\s*$/).test(fields[i])) { continue; } js_ShowOption(fields[i]); } } /** * Function for show options. * * @param array sub_fields The list of fields to Show. */ function js_ShowOptionsByControl(control_field, sub_fields_array) { if((/^\s*$/).test(control_field)) { return; } if($(control_field) == null){ return; } var key = $(control_field).get("value"); var sub_fields = sub_fields_array[key]; if(sub_fields === undefined) { return; } fields = sub_fields.split(','); for(var i = 0; i < fields.length; i ++){ if((/^\s*$/).test(fields[i])) { continue; } js_ShowOption(fields[i]); } } /** * Function for Show one options * * @param string field_name Name of Field to show. */ function js_ShowOption(field_id) { var field = $(field_id); if(field == null) { field = $(field_id + '-lbl'); } if(field == null) { return; } // Joomla 3.0 var control = field.getParent('div.control-group'); // Joomla 2.5 field if(control == null) { control = field.getParent('li'); } // Show if(control !== null && control.hasClass('hide')) { control.removeClass('hide'); } } /** * Function for Hide one options * * @param string field_name Name of Field to hide. */ function js_HideOption(field_id) { var field = $(field_id); if(field == null) { field = $(field_id + '-lbl'); } if(field == null) { return; } // Joomla 3.0 var control = field.getParent('div.control-group'); // Joomla 2.5 field if(control == null) { control = field.getParent('li'); } // Hide if(control !== null && !control.hasClass('hide')) { control.addClass('hide'); } }