2021-03-05 03:08:47 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
|
|
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
2021-12-21 14:44:50 +00:00
|
|
|
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
2021-03-05 03:08:47 +00:00
|
|
|
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2016-01-30 20:28:43 +00:00
|
|
|
// Some Global Values
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbbvws_required = false;
|
|
|
|
jform_vvvvwbdvwt_required = false;
|
|
|
|
jform_vvvvwbevwu_required = false;
|
|
|
|
jform_vvvvwbfvwv_required = false;
|
|
|
|
jform_vvvvwbgvww_required = false;
|
|
|
|
jform_vvvvwbrvwx_required = false;
|
|
|
|
jform_vvvvwbrvwy_required = false;
|
|
|
|
jform_vvvvwbwvwz_required = false;
|
|
|
|
jform_vvvvwbwvxa_required = false;
|
|
|
|
jform_vvvvwbwvxb_required = false;
|
|
|
|
jform_vvvvwbxvxc_required = false;
|
|
|
|
jform_vvvvwbyvxd_required = false;
|
|
|
|
jform_vvvvwbzvxe_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbb = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwbb(gettype_vvvvwbb);
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var main_source_vvvvwbc = jQuery("#jform_main_source").val();
|
|
|
|
vvvvwbc(main_source_vvvvwbc);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var main_source_vvvvwbd = jQuery("#jform_main_source").val();
|
|
|
|
vvvvwbd(main_source_vvvvwbd);
|
2017-10-06 14:53:22 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var main_source_vvvvwbe = jQuery("#jform_main_source").val();
|
|
|
|
vvvvwbe(main_source_vvvvwbe);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var main_source_vvvvwbf = jQuery("#jform_main_source").val();
|
|
|
|
vvvvwbf(main_source_vvvvwbf);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbg = jQuery("#jform_main_source").val();
|
|
|
|
vvvvwbg(main_source_vvvvwbg);
|
2018-03-09 03:26:44 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var addcalculation_vvvvwbh = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
vvvvwbh(addcalculation_vvvvwbh);
|
2018-03-09 03:26:44 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var addcalculation_vvvvwbi = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvwbi = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwbi(addcalculation_vvvvwbi,gettype_vvvvwbi);
|
2018-05-11 04:08:14 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var addcalculation_vvvvwbj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvwbj = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwbj(addcalculation_vvvvwbj,gettype_vvvvwbj);
|
2018-07-06 13:46:30 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var main_source_vvvvwbm = jQuery("#jform_main_source").val();
|
|
|
|
vvvvwbm(main_source_vvvvwbm);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbn = jQuery("#jform_main_source").val();
|
|
|
|
vvvvwbn(main_source_vvvvwbn);
|
2018-08-23 01:37:42 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_before_getitem_vvvvwbo = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
2019-12-03 02:17:35 +00:00
|
|
|
var gettype_vvvvwbo = jQuery("#jform_gettype").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
vvvvwbo(add_php_before_getitem_vvvvwbo,gettype_vvvvwbo);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_after_getitem_vvvvwbp = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvwbp = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwbp(add_php_after_getitem_vvvvwbp,gettype_vvvvwbp);
|
2019-06-12 20:06:19 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var gettype_vvvvwbr = jQuery("#jform_gettype").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
vvvvwbr(gettype_vvvvwbr);
|
2019-06-12 20:36:05 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_getlistquery_vvvvwbs = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
2019-12-03 02:17:35 +00:00
|
|
|
var gettype_vvvvwbs = jQuery("#jform_gettype").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
vvvvwbs(add_php_getlistquery_vvvvwbs,gettype_vvvvwbs);
|
2019-01-29 14:43:27 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_before_getitems_vvvvwbt = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
2019-12-03 02:17:35 +00:00
|
|
|
var gettype_vvvvwbt = jQuery("#jform_gettype").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
vvvvwbt(add_php_before_getitems_vvvvwbt,gettype_vvvvwbt);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_after_getitems_vvvvwbu = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvwbu = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwbu(add_php_after_getitems_vvvvwbu,gettype_vvvvwbu);
|
2019-07-15 20:00:46 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var gettype_vvvvwbw = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwbw(gettype_vvvvwbw);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var gettype_vvvvwbx = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwbx(gettype_vvvvwbx);
|
2019-08-08 15:35:58 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var gettype_vvvvwby = jQuery("#jform_gettype").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
vvvvwby(gettype_vvvvwby);
|
|
|
|
|
|
|
|
var gettype_vvvvwbz = jQuery("#jform_gettype").val();
|
|
|
|
var add_php_router_parse_vvvvwbz = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
|
|
|
vvvvwbz(gettype_vvvvwbz,add_php_router_parse_vvvvwbz);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwcb = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwcb(gettype_vvvvwcb);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbb function
|
|
|
|
function vvvvwbb(gettype_vvvvwbb)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbb) && gettype_vvvvwbb.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbb = gettype_vvvvwbb;
|
|
|
|
var gettype_vvvvwbb = [];
|
|
|
|
gettype_vvvvwbb.push(temp_vvvvwbb);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbb))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbb = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbb.some(gettype_vvvvwbb_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to getcustom field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbbvws_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('getcustom',0);
|
|
|
|
jQuery('#jform_getcustom').prop('required','required');
|
|
|
|
jQuery('#jform_getcustom').attr('aria-required',true);
|
|
|
|
jQuery('#jform_getcustom').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbbvws_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from getcustom field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbbvws_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('getcustom',1);
|
|
|
|
jQuery('#jform_getcustom').removeAttr('required');
|
|
|
|
jQuery('#jform_getcustom').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_getcustom').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbbvws_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbb Some function
|
|
|
|
function gettype_vvvvwbb_SomeFunc(gettype_vvvvwbb)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbb == 3 || gettype_vvvvwbb == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbc function
|
|
|
|
function vvvvwbc(main_source_vvvvwbc)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(main_source_vvvvwbc) && main_source_vvvvwbc.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbc = main_source_vvvvwbc;
|
|
|
|
var main_source_vvvvwbc = [];
|
|
|
|
main_source_vvvvwbc.push(temp_vvvvwbc);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(main_source_vvvvwbc))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbc = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source = main_source_vvvvwbc.some(main_source_vvvvwbc_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
2019-01-29 14:43:27 +00:00
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_select_all').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_select_all').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbc Some function
|
|
|
|
function main_source_vvvvwbc_SomeFunc(main_source_vvvvwbc)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (main_source_vvvvwbc == 1 || main_source_vvvvwbc == 2)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbd function
|
|
|
|
function vvvvwbd(main_source_vvvvwbd)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(main_source_vvvvwbd) && main_source_vvvvwbd.constructor !== Array)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbd = main_source_vvvvwbd;
|
|
|
|
var main_source_vvvvwbd = [];
|
|
|
|
main_source_vvvvwbd.push(temp_vvvvwbd);
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(main_source_vvvvwbd))
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbd = [];
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source = main_source_vvvvwbd.some(main_source_vvvvwbd_SomeFunc);
|
2019-01-29 14:43:27 +00:00
|
|
|
|
|
|
|
|
2016-01-30 20:28:43 +00:00
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_table_main').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to view_table_main field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbdvwt_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('view_table_main',0);
|
|
|
|
jQuery('#jform_view_table_main').prop('required','required');
|
|
|
|
jQuery('#jform_view_table_main').attr('aria-required',true);
|
|
|
|
jQuery('#jform_view_table_main').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbdvwt_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_table_main').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from view_table_main field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbdvwt_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('view_table_main',1);
|
|
|
|
jQuery('#jform_view_table_main').removeAttr('required');
|
|
|
|
jQuery('#jform_view_table_main').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_view_table_main').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbdvwt_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbd Some function
|
|
|
|
function main_source_vvvvwbd_SomeFunc(main_source_vvvvwbd)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (main_source_vvvvwbd == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbe function
|
|
|
|
function vvvvwbe(main_source_vvvvwbe)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(main_source_vvvvwbe) && main_source_vvvvwbe.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbe = main_source_vvvvwbe;
|
|
|
|
var main_source_vvvvwbe = [];
|
|
|
|
main_source_vvvvwbe.push(temp_vvvvwbe);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(main_source_vvvvwbe))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbe = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source = main_source_vvvvwbe.some(main_source_vvvvwbe_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_selection').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to view_selection field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbevwu_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('view_selection',0);
|
|
|
|
jQuery('#jform_view_selection').prop('required','required');
|
|
|
|
jQuery('#jform_view_selection').attr('aria-required',true);
|
|
|
|
jQuery('#jform_view_selection').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbevwu_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_selection').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from view_selection field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbevwu_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('view_selection',1);
|
|
|
|
jQuery('#jform_view_selection').removeAttr('required');
|
|
|
|
jQuery('#jform_view_selection').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_view_selection').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbevwu_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbe Some function
|
|
|
|
function main_source_vvvvwbe_SomeFunc(main_source_vvvvwbe)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (main_source_vvvvwbe == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbf function
|
|
|
|
function vvvvwbf(main_source_vvvvwbf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(main_source_vvvvwbf) && main_source_vvvvwbf.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbf = main_source_vvvvwbf;
|
|
|
|
var main_source_vvvvwbf = [];
|
|
|
|
main_source_vvvvwbf.push(temp_vvvvwbf);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(main_source_vvvvwbf))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbf = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source = main_source_vvvvwbf.some(main_source_vvvvwbf_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_table_main').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to db_table_main field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbfvwv_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('db_table_main',0);
|
|
|
|
jQuery('#jform_db_table_main').prop('required','required');
|
|
|
|
jQuery('#jform_db_table_main').attr('aria-required',true);
|
|
|
|
jQuery('#jform_db_table_main').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbfvwv_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_table_main').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from db_table_main field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbfvwv_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('db_table_main',1);
|
|
|
|
jQuery('#jform_db_table_main').removeAttr('required');
|
|
|
|
jQuery('#jform_db_table_main').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_db_table_main').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbfvwv_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbf Some function
|
|
|
|
function main_source_vvvvwbf_SomeFunc(main_source_vvvvwbf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (main_source_vvvvwbf == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbg function
|
|
|
|
function vvvvwbg(main_source_vvvvwbg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(main_source_vvvvwbg) && main_source_vvvvwbg.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbg = main_source_vvvvwbg;
|
|
|
|
var main_source_vvvvwbg = [];
|
|
|
|
main_source_vvvvwbg.push(temp_vvvvwbg);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(main_source_vvvvwbg))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbg = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source = main_source_vvvvwbg.some(main_source_vvvvwbg_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_selection').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to db_selection field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbgvww_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('db_selection',0);
|
|
|
|
jQuery('#jform_db_selection').prop('required','required');
|
|
|
|
jQuery('#jform_db_selection').attr('aria-required',true);
|
|
|
|
jQuery('#jform_db_selection').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbgvww_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_selection').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from db_selection field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbgvww_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('db_selection',1);
|
|
|
|
jQuery('#jform_db_selection').removeAttr('required');
|
|
|
|
jQuery('#jform_db_selection').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_db_selection').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbgvww_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbg Some function
|
|
|
|
function main_source_vvvvwbg_SomeFunc(main_source_vvvvwbg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (main_source_vvvvwbg == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbh function
|
|
|
|
function vvvvwbh(addcalculation_vvvvwbh)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (addcalculation_vvvvwbh == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_calculation-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_calculation-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbi function
|
|
|
|
function vvvvwbi(addcalculation_vvvvwbi,gettype_vvvvwbi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(addcalculation_vvvvwbi) && addcalculation_vvvvwbi.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbi = addcalculation_vvvvwbi;
|
|
|
|
var addcalculation_vvvvwbi = [];
|
|
|
|
addcalculation_vvvvwbi.push(temp_vvvvwbi);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvwbi))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var addcalculation_vvvvwbi = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var addcalculation = addcalculation_vvvvwbi.some(addcalculation_vvvvwbi_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbi) && gettype_vvvvwbi.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbi = gettype_vvvvwbi;
|
|
|
|
var gettype_vvvvwbi = [];
|
|
|
|
gettype_vvvvwbi.push(temp_vvvvwbi);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbi))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbi = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbi.some(gettype_vvvvwbi_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (addcalculation && gettype)
|
|
|
|
{
|
|
|
|
jQuery('.note_calculation_item').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_calculation_item').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbi Some function
|
|
|
|
function addcalculation_vvvvwbi_SomeFunc(addcalculation_vvvvwbi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (addcalculation_vvvvwbi == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbi Some function
|
|
|
|
function gettype_vvvvwbi_SomeFunc(gettype_vvvvwbi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbi == 1 || gettype_vvvvwbi == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbj function
|
|
|
|
function vvvvwbj(addcalculation_vvvvwbj,gettype_vvvvwbj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(addcalculation_vvvvwbj) && addcalculation_vvvvwbj.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbj = addcalculation_vvvvwbj;
|
|
|
|
var addcalculation_vvvvwbj = [];
|
|
|
|
addcalculation_vvvvwbj.push(temp_vvvvwbj);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvwbj))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var addcalculation_vvvvwbj = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var addcalculation = addcalculation_vvvvwbj.some(addcalculation_vvvvwbj_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbj) && gettype_vvvvwbj.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbj = gettype_vvvvwbj;
|
|
|
|
var gettype_vvvvwbj = [];
|
|
|
|
gettype_vvvvwbj.push(temp_vvvvwbj);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbj))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbj = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbj.some(gettype_vvvvwbj_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (addcalculation && gettype)
|
|
|
|
{
|
|
|
|
jQuery('.note_calculation_items').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_calculation_items').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbj Some function
|
|
|
|
function addcalculation_vvvvwbj_SomeFunc(addcalculation_vvvvwbj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (addcalculation_vvvvwbj == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbj Some function
|
|
|
|
function gettype_vvvvwbj_SomeFunc(gettype_vvvvwbj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbj == 2 || gettype_vvvvwbj == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbm function
|
|
|
|
function vvvvwbm(main_source_vvvvwbm)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(main_source_vvvvwbm) && main_source_vvvvwbm.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbm = main_source_vvvvwbm;
|
|
|
|
var main_source_vvvvwbm = [];
|
|
|
|
main_source_vvvvwbm.push(temp_vvvvwbm);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(main_source_vvvvwbm))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbm = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source = main_source_vvvvwbm.some(main_source_vvvvwbm_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_custom_get-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_custom_get-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbm Some function
|
|
|
|
function main_source_vvvvwbm_SomeFunc(main_source_vvvvwbm)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (main_source_vvvvwbm == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbn function
|
|
|
|
function vvvvwbn(main_source_vvvvwbn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(main_source_vvvvwbn) && main_source_vvvvwbn.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbn = main_source_vvvvwbn;
|
|
|
|
var main_source_vvvvwbn = [];
|
|
|
|
main_source_vvvvwbn.push(temp_vvvvwbn);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(main_source_vvvvwbn))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source_vvvvwbn = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var main_source = main_source_vvvvwbn.some(main_source_vvvvwbn_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
2017-10-06 14:53:22 +00:00
|
|
|
jQuery('#jform_filter-lbl').closest('.control-group').show();
|
|
|
|
jQuery('#jform_global-lbl').closest('.control-group').show();
|
2019-04-09 20:42:19 +00:00
|
|
|
jQuery('#jform_group-lbl').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
jQuery('#jform_order-lbl').closest('.control-group').show();
|
|
|
|
jQuery('#jform_where-lbl').closest('.control-group').show();
|
|
|
|
jQuery('#jform_join_db_table-lbl').closest('.control-group').show();
|
|
|
|
jQuery('#jform_join_view_table-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-10-06 14:53:22 +00:00
|
|
|
jQuery('#jform_filter-lbl').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_global-lbl').closest('.control-group').hide();
|
2019-04-09 20:42:19 +00:00
|
|
|
jQuery('#jform_group-lbl').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
jQuery('#jform_order-lbl').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_where-lbl').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_join_db_table-lbl').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_join_view_table-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbn Some function
|
|
|
|
function main_source_vvvvwbn_SomeFunc(main_source_vvvvwbn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (main_source_vvvvwbn == 1 || main_source_vvvvwbn == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbo function
|
|
|
|
function vvvvwbo(add_php_before_getitem_vvvvwbo,gettype_vvvvwbo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(add_php_before_getitem_vvvvwbo) && add_php_before_getitem_vvvvwbo.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbo = add_php_before_getitem_vvvvwbo;
|
|
|
|
var add_php_before_getitem_vvvvwbo = [];
|
|
|
|
add_php_before_getitem_vvvvwbo.push(temp_vvvvwbo);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(add_php_before_getitem_vvvvwbo))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_before_getitem_vvvvwbo = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_before_getitem = add_php_before_getitem_vvvvwbo.some(add_php_before_getitem_vvvvwbo_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbo) && gettype_vvvvwbo.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbo = gettype_vvvvwbo;
|
|
|
|
var gettype_vvvvwbo = [];
|
|
|
|
gettype_vvvvwbo.push(temp_vvvvwbo);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbo))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbo = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbo.some(gettype_vvvvwbo_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_before_getitem && gettype)
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_before_getitem-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_before_getitem-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbo Some function
|
|
|
|
function add_php_before_getitem_vvvvwbo_SomeFunc(add_php_before_getitem_vvvvwbo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (add_php_before_getitem_vvvvwbo == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbo Some function
|
|
|
|
function gettype_vvvvwbo_SomeFunc(gettype_vvvvwbo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbo == 1 || gettype_vvvvwbo == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbp function
|
|
|
|
function vvvvwbp(add_php_after_getitem_vvvvwbp,gettype_vvvvwbp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(add_php_after_getitem_vvvvwbp) && add_php_after_getitem_vvvvwbp.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbp = add_php_after_getitem_vvvvwbp;
|
|
|
|
var add_php_after_getitem_vvvvwbp = [];
|
|
|
|
add_php_after_getitem_vvvvwbp.push(temp_vvvvwbp);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(add_php_after_getitem_vvvvwbp))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_after_getitem_vvvvwbp = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_after_getitem = add_php_after_getitem_vvvvwbp.some(add_php_after_getitem_vvvvwbp_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbp) && gettype_vvvvwbp.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbp = gettype_vvvvwbp;
|
|
|
|
var gettype_vvvvwbp = [];
|
|
|
|
gettype_vvvvwbp.push(temp_vvvvwbp);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbp))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbp = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbp.some(gettype_vvvvwbp_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_after_getitem && gettype)
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_after_getitem-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_after_getitem-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbp Some function
|
|
|
|
function add_php_after_getitem_vvvvwbp_SomeFunc(add_php_after_getitem_vvvvwbp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (add_php_after_getitem_vvvvwbp == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbp Some function
|
|
|
|
function gettype_vvvvwbp_SomeFunc(gettype_vvvvwbp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbp == 1 || gettype_vvvvwbp == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbr function
|
|
|
|
function vvvvwbr(gettype_vvvvwbr)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbr) && gettype_vvvvwbr.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbr = gettype_vvvvwbr;
|
|
|
|
var gettype_vvvvwbr = [];
|
|
|
|
gettype_vvvvwbr.push(temp_vvvvwbr);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbr))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbr = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbr.some(gettype_vvvvwbr_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitem').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to add_php_after_getitem field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbrvwx_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_after_getitem',0);
|
|
|
|
jQuery('#jform_add_php_after_getitem').prop('required','required');
|
|
|
|
jQuery('#jform_add_php_after_getitem').attr('aria-required',true);
|
|
|
|
jQuery('#jform_add_php_after_getitem').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbrvwx_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to add_php_before_getitem field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbrvwy_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_before_getitem',0);
|
|
|
|
jQuery('#jform_add_php_before_getitem').prop('required','required');
|
|
|
|
jQuery('#jform_add_php_before_getitem').attr('aria-required',true);
|
|
|
|
jQuery('#jform_add_php_before_getitem').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbrvwy_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from add_php_after_getitem field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbrvwx_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_after_getitem',1);
|
|
|
|
jQuery('#jform_add_php_after_getitem').removeAttr('required');
|
|
|
|
jQuery('#jform_add_php_after_getitem').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_add_php_after_getitem').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbrvwx_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from add_php_before_getitem field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbrvwy_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_before_getitem',1);
|
|
|
|
jQuery('#jform_add_php_before_getitem').removeAttr('required');
|
|
|
|
jQuery('#jform_add_php_before_getitem').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_add_php_before_getitem').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbrvwy_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbr Some function
|
|
|
|
function gettype_vvvvwbr_SomeFunc(gettype_vvvvwbr)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbr == 1 || gettype_vvvvwbr == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbs function
|
|
|
|
function vvvvwbs(add_php_getlistquery_vvvvwbs,gettype_vvvvwbs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(add_php_getlistquery_vvvvwbs) && add_php_getlistquery_vvvvwbs.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbs = add_php_getlistquery_vvvvwbs;
|
|
|
|
var add_php_getlistquery_vvvvwbs = [];
|
|
|
|
add_php_getlistquery_vvvvwbs.push(temp_vvvvwbs);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(add_php_getlistquery_vvvvwbs))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_getlistquery_vvvvwbs = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_getlistquery = add_php_getlistquery_vvvvwbs.some(add_php_getlistquery_vvvvwbs_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbs) && gettype_vvvvwbs.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbs = gettype_vvvvwbs;
|
|
|
|
var gettype_vvvvwbs = [];
|
|
|
|
gettype_vvvvwbs.push(temp_vvvvwbs);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbs))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbs = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbs.some(gettype_vvvvwbs_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_getlistquery && gettype)
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbs Some function
|
|
|
|
function add_php_getlistquery_vvvvwbs_SomeFunc(add_php_getlistquery_vvvvwbs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (add_php_getlistquery_vvvvwbs == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbs Some function
|
|
|
|
function gettype_vvvvwbs_SomeFunc(gettype_vvvvwbs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbs == 2 || gettype_vvvvwbs == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbt function
|
|
|
|
function vvvvwbt(add_php_before_getitems_vvvvwbt,gettype_vvvvwbt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(add_php_before_getitems_vvvvwbt) && add_php_before_getitems_vvvvwbt.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbt = add_php_before_getitems_vvvvwbt;
|
|
|
|
var add_php_before_getitems_vvvvwbt = [];
|
|
|
|
add_php_before_getitems_vvvvwbt.push(temp_vvvvwbt);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(add_php_before_getitems_vvvvwbt))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_before_getitems_vvvvwbt = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_before_getitems = add_php_before_getitems_vvvvwbt.some(add_php_before_getitems_vvvvwbt_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbt) && gettype_vvvvwbt.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbt = gettype_vvvvwbt;
|
|
|
|
var gettype_vvvvwbt = [];
|
|
|
|
gettype_vvvvwbt.push(temp_vvvvwbt);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbt))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbt = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbt.some(gettype_vvvvwbt_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_before_getitems && gettype)
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_before_getitems-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbt Some function
|
|
|
|
function add_php_before_getitems_vvvvwbt_SomeFunc(add_php_before_getitems_vvvvwbt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (add_php_before_getitems_vvvvwbt == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbt Some function
|
|
|
|
function gettype_vvvvwbt_SomeFunc(gettype_vvvvwbt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbt == 2 || gettype_vvvvwbt == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbu function
|
|
|
|
function vvvvwbu(add_php_after_getitems_vvvvwbu,gettype_vvvvwbu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(add_php_after_getitems_vvvvwbu) && add_php_after_getitems_vvvvwbu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbu = add_php_after_getitems_vvvvwbu;
|
|
|
|
var add_php_after_getitems_vvvvwbu = [];
|
|
|
|
add_php_after_getitems_vvvvwbu.push(temp_vvvvwbu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(add_php_after_getitems_vvvvwbu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_after_getitems_vvvvwbu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_after_getitems = add_php_after_getitems_vvvvwbu.some(add_php_after_getitems_vvvvwbu_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbu) && gettype_vvvvwbu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbu = gettype_vvvvwbu;
|
|
|
|
var gettype_vvvvwbu = [];
|
|
|
|
gettype_vvvvwbu.push(temp_vvvvwbu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbu.some(gettype_vvvvwbu_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_after_getitems && gettype)
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_after_getitems-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbu Some function
|
|
|
|
function add_php_after_getitems_vvvvwbu_SomeFunc(add_php_after_getitems_vvvvwbu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (add_php_after_getitems_vvvvwbu == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbu Some function
|
|
|
|
function gettype_vvvvwbu_SomeFunc(gettype_vvvvwbu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbu == 2 || gettype_vvvvwbu == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbw function
|
|
|
|
function vvvvwbw(gettype_vvvvwbw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbw) && gettype_vvvvwbw.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbw = gettype_vvvvwbw;
|
|
|
|
var gettype_vvvvwbw = [];
|
|
|
|
gettype_vvvvwbw.push(temp_vvvvwbw);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbw))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbw = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbw.some(gettype_vvvvwbw_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitems').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to add_php_after_getitems field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbwvwz_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_after_getitems',0);
|
|
|
|
jQuery('#jform_add_php_after_getitems').prop('required','required');
|
|
|
|
jQuery('#jform_add_php_after_getitems').attr('aria-required',true);
|
|
|
|
jQuery('#jform_add_php_after_getitems').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbwvwz_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to add_php_before_getitems field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbwvxa_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_before_getitems',0);
|
|
|
|
jQuery('#jform_add_php_before_getitems').prop('required','required');
|
|
|
|
jQuery('#jform_add_php_before_getitems').attr('aria-required',true);
|
|
|
|
jQuery('#jform_add_php_before_getitems').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbwvxa_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to add_php_getlistquery field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbwvxb_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_getlistquery',0);
|
|
|
|
jQuery('#jform_add_php_getlistquery').prop('required','required');
|
|
|
|
jQuery('#jform_add_php_getlistquery').attr('aria-required',true);
|
|
|
|
jQuery('#jform_add_php_getlistquery').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbwvxb_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from add_php_after_getitems field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbwvwz_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_after_getitems',1);
|
|
|
|
jQuery('#jform_add_php_after_getitems').removeAttr('required');
|
|
|
|
jQuery('#jform_add_php_after_getitems').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_add_php_after_getitems').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbwvwz_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from add_php_before_getitems field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbwvxa_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_before_getitems',1);
|
|
|
|
jQuery('#jform_add_php_before_getitems').removeAttr('required');
|
|
|
|
jQuery('#jform_add_php_before_getitems').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_add_php_before_getitems').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbwvxa_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from add_php_getlistquery field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbwvxb_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_getlistquery',1);
|
|
|
|
jQuery('#jform_add_php_getlistquery').removeAttr('required');
|
|
|
|
jQuery('#jform_add_php_getlistquery').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_add_php_getlistquery').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbwvxb_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbw Some function
|
|
|
|
function gettype_vvvvwbw_SomeFunc(gettype_vvvvwbw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbw == 2 || gettype_vvvvwbw == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbx function
|
|
|
|
function vvvvwbx(gettype_vvvvwbx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbx) && gettype_vvvvwbx.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbx = gettype_vvvvwbx;
|
|
|
|
var gettype_vvvvwbx = [];
|
|
|
|
gettype_vvvvwbx.push(temp_vvvvwbx);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbx))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbx = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbx.some(gettype_vvvvwbx_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to pagination field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbxvxc_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('pagination',0);
|
|
|
|
jQuery('#jform_pagination').prop('required','required');
|
|
|
|
jQuery('#jform_pagination').attr('aria-required',true);
|
|
|
|
jQuery('#jform_pagination').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbxvxc_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from pagination field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbxvxc_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('pagination',1);
|
|
|
|
jQuery('#jform_pagination').removeAttr('required');
|
|
|
|
jQuery('#jform_pagination').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_pagination').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbxvxc_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbx Some function
|
|
|
|
function gettype_vvvvwbx_SomeFunc(gettype_vvvvwbx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbx == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwby function
|
|
|
|
function vvvvwby(gettype_vvvvwby)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwby) && gettype_vvvvwby.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwby = gettype_vvvvwby;
|
|
|
|
var gettype_vvvvwby = [];
|
|
|
|
gettype_vvvvwby.push(temp_vvvvwby);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwby))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwby = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwby.some(gettype_vvvvwby_SomeFunc);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_router_parse').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to add_php_router_parse field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbyvxd_required)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_router_parse',0);
|
|
|
|
jQuery('#jform_add_php_router_parse').prop('required','required');
|
|
|
|
jQuery('#jform_add_php_router_parse').attr('aria-required',true);
|
|
|
|
jQuery('#jform_add_php_router_parse').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbyvxd_required = false;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_router_parse').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from add_php_router_parse field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbyvxd_required)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('add_php_router_parse',1);
|
|
|
|
jQuery('#jform_add_php_router_parse').removeAttr('required');
|
|
|
|
jQuery('#jform_add_php_router_parse').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_add_php_router_parse').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbyvxd_required = true;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwby Some function
|
|
|
|
function gettype_vvvvwby_SomeFunc(gettype_vvvvwby)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwby == 1 || gettype_vvvvwby == 2)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbz function
|
|
|
|
function vvvvwbz(gettype_vvvvwbz,add_php_router_parse_vvvvwbz)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwbz) && gettype_vvvvwbz.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbz = gettype_vvvvwbz;
|
|
|
|
var gettype_vvvvwbz = [];
|
|
|
|
gettype_vvvvwbz.push(temp_vvvvwbz);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwbz))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwbz = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwbz.some(gettype_vvvvwbz_SomeFunc);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(add_php_router_parse_vvvvwbz) && add_php_router_parse_vvvvwbz.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwbz = add_php_router_parse_vvvvwbz;
|
|
|
|
var add_php_router_parse_vvvvwbz = [];
|
|
|
|
add_php_router_parse_vvvvwbz.push(temp_vvvvwbz);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(add_php_router_parse_vvvvwbz))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_router_parse_vvvvwbz = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var add_php_router_parse = add_php_router_parse_vvvvwbz.some(add_php_router_parse_vvvvwbz_SomeFunc);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype && add_php_router_parse)
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_router_parse').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_router_parse field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwbzvxe_required)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_router_parse',0);
|
|
|
|
jQuery('#jform_php_router_parse').prop('required','required');
|
|
|
|
jQuery('#jform_php_router_parse').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_router_parse').addClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbzvxe_required = false;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_router_parse').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_router_parse field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwbzvxe_required)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_router_parse',1);
|
|
|
|
jQuery('#jform_php_router_parse').removeAttr('required');
|
|
|
|
jQuery('#jform_php_router_parse').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_router_parse').removeClass('required');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwbzvxe_required = true;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbz Some function
|
|
|
|
function gettype_vvvvwbz_SomeFunc(gettype_vvvvwbz)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwbz == 1 || gettype_vvvvwbz == 2)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwbz Some function
|
|
|
|
function add_php_router_parse_vvvvwbz_SomeFunc(add_php_router_parse_vvvvwbz)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (add_php_router_parse_vvvvwbz == 1)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcb function
|
|
|
|
function vvvvwcb(gettype_vvvvwcb)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(gettype_vvvvwcb) && gettype_vvvvwcb.constructor !== Array)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcb = gettype_vvvvwcb;
|
|
|
|
var gettype_vvvvwcb = [];
|
|
|
|
gettype_vvvvwcb.push(temp_vvvvwcb);
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(gettype_vvvvwcb))
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype_vvvvwcb = [];
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var gettype = gettype_vvvvwcb.some(gettype_vvvvwcb_SomeFunc);
|
2018-08-23 01:37:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_plugin_events').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_plugin_events').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcb Some function
|
|
|
|
function gettype_vvvvwcb_SomeFunc(gettype_vvvvwcb)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (gettype_vvvvwcb == 1)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2020-02-27 21:05:28 +00:00
|
|
|
// update fields required
|
|
|
|
function updateFieldRequired(name, status) {
|
|
|
|
// check if not_required exist
|
|
|
|
if (jQuery('#jform_not_required').length > 0) {
|
|
|
|
var not_required = jQuery('#jform_not_required').val().split(",");
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2020-02-27 21:05:28 +00:00
|
|
|
if(status == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2020-02-27 21:05:28 +00:00
|
|
|
not_required.push(name);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2020-02-27 21:05:28 +00:00
|
|
|
not_required = removeFieldFromNotRequired(not_required, name);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2020-02-27 21:05:28 +00:00
|
|
|
|
|
|
|
jQuery('#jform_not_required').val(fixNotRequiredArray(not_required).toString());
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2020-02-27 21:05:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// remove field from not_required
|
|
|
|
function removeFieldFromNotRequired(array, what) {
|
|
|
|
return array.filter(function(element){
|
|
|
|
return element !== what;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// fix not required array
|
|
|
|
function fixNotRequiredArray(array) {
|
|
|
|
var seen = {};
|
|
|
|
return removeEmptyFromNotRequiredArray(array).filter(function(item) {
|
|
|
|
return seen.hasOwnProperty(item) ? false : (seen[item] = true);
|
|
|
|
});
|
|
|
|
}
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2020-02-27 21:05:28 +00:00
|
|
|
// remove empty from not_required array
|
|
|
|
function removeEmptyFromNotRequiredArray(array) {
|
|
|
|
return array.filter(function (el) {
|
|
|
|
// remove ( 一_一) as well - lol
|
|
|
|
return (el.length > 0 && '一_一' !== el);
|
|
|
|
});
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// the isSet function
|
|
|
|
function isSet(val)
|
|
|
|
{
|
|
|
|
if ((val != undefined) && (val != null) && 0 !== val.length){
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-03-11 02:44:43 +00:00
|
|
|
|
2018-01-15 15:54:05 +00:00
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
|
|
|
// get the linked details
|
|
|
|
getLinked();
|
2018-01-23 22:05:57 +00:00
|
|
|
var valueSwitch = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
|
|
|
getDynamicScripts(valueSwitch);
|
2019-01-31 21:44:21 +00:00
|
|
|
// check and load all the custom code edit buttons
|
|
|
|
getEditCustomCodeButtons();
|
2018-01-15 15:54:05 +00:00
|
|
|
});
|
|
|
|
|
2019-01-29 14:43:27 +00:00
|
|
|
function setSelectAll(select_all){
|
|
|
|
// get source type
|
|
|
|
var main_source = jQuery("#jform_main_source").val();
|
|
|
|
if (1 == main_source) {
|
|
|
|
var key = 'view';
|
|
|
|
} else if (2 == main_source) {
|
|
|
|
var key = 'db';
|
|
|
|
} else {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
// only continue if set
|
|
|
|
if (select_all == 1) {
|
|
|
|
// set default notice
|
|
|
|
jQuery("#jform_"+key+"_selection").val('a.*');
|
|
|
|
// set the selection text area to read only
|
|
|
|
jQuery("#jform_"+key+"_selection").prop("readonly", true);
|
|
|
|
} else {
|
|
|
|
// remove the read only from selection text area
|
|
|
|
jQuery("#jform_"+key+"_selection").prop("readonly", false);
|
|
|
|
// get selected options
|
|
|
|
var value_main = jQuery("#jform_"+key+"_table_main option:selected").val();
|
|
|
|
// make sure that all fields are set as selected
|
|
|
|
if (key === 'view') {
|
|
|
|
getViewTableColumns(value_main, 'a', key, 3, true, '', '');
|
|
|
|
} else {
|
|
|
|
getDbTableColumns(value_main, 'a', key, 3, true, '', '');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function getViewTableColumns_server(viewId,asKey,rowType){
|
2019-07-08 16:05:54 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.viewTableColumns&format=json&raw=true");
|
2016-01-30 20:28:43 +00:00
|
|
|
if (token.length > 0 && viewId > 0 && asKey.length > 0)
|
|
|
|
{
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&as='+asKey+'&type='+rowType+'&id='+viewId;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2016-01-30 20:28:43 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-01-29 14:43:27 +00:00
|
|
|
function getViewTableColumns(id, asKey, key, rowType, main, table_, nr_){
|
|
|
|
// check if this is the main view
|
|
|
|
if (main){
|
|
|
|
var select_all = jQuery("#jform_select_all input[type='radio']:checked").val();
|
|
|
|
// do not continue if set
|
|
|
|
if (select_all == 1){
|
|
|
|
setSelectAll(select_all);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
2019-12-10 23:18:55 +00:00
|
|
|
getViewTableColumns_server(id, asKey, rowType).done(function(result) {
|
|
|
|
if (result) {
|
2017-10-06 14:53:22 +00:00
|
|
|
loadSelectionData(result, 'view', key, main, table_, nr_);
|
2019-12-10 23:18:55 +00:00
|
|
|
} else {
|
2017-10-06 14:53:22 +00:00
|
|
|
loadSelectionData(false, 'view', key, main, table_, nr_);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
function getDbTableColumns_server(name,asKey,rowType)
|
|
|
|
{
|
2019-07-08 16:05:54 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.dbTableColumns&format=json&raw=true");
|
2019-12-10 23:18:55 +00:00
|
|
|
if (token.length > 0 && name.length > 0 && asKey.length > 0) {
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&as='+asKey+'&type='+rowType+'&name='+name;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2016-01-30 20:28:43 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-01-29 14:43:27 +00:00
|
|
|
function getDbTableColumns(name, asKey, key, rowType, main, table_, nr_){
|
|
|
|
// check if this is the main view
|
|
|
|
if (main){
|
|
|
|
var select_all = jQuery("#jform_select_all input[type='radio']:checked").val();
|
|
|
|
// do not continue if set
|
|
|
|
if (select_all == 1){
|
|
|
|
setSelectAll(select_all);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
2016-01-30 20:28:43 +00:00
|
|
|
getDbTableColumns_server(name,asKey,rowType).done(function(result) {
|
2019-12-10 23:18:55 +00:00
|
|
|
if (result) {
|
2017-10-06 14:53:22 +00:00
|
|
|
loadSelectionData(result, 'db', key, main, table_, nr_);
|
2019-12-10 23:18:55 +00:00
|
|
|
} else {
|
2017-10-06 14:53:22 +00:00
|
|
|
loadSelectionData(false, 'db', key, main, table_, nr_);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
function loadSelectionData(result, type, key, main, table_, nr_)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
if (main)
|
|
|
|
{
|
|
|
|
var textArea = 'textarea#jform_'+key+'_selection';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-10-06 14:53:22 +00:00
|
|
|
var textArea = 'textarea#jform_join_'+type+'_table'+table_+'_join_'+type+'_table'+key+nr_+'_selection';
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
// no update the text area
|
|
|
|
if (result)
|
|
|
|
{
|
|
|
|
jQuery(textArea).val(result);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery(textArea).val('');
|
|
|
|
}
|
2017-10-06 14:53:22 +00:00
|
|
|
}
|
2019-01-29 14:43:27 +00:00
|
|
|
function updateSubItems(fieldName, fieldNr, table_, nr_) {
|
2017-10-06 14:53:22 +00:00
|
|
|
if(jQuery('#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_'+fieldName+'_table').length) {
|
|
|
|
jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_'+fieldName+'_table',function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
// get options
|
|
|
|
var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
|
|
|
|
var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
|
|
|
|
var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
|
|
|
|
if (fieldName === 'view') {
|
|
|
|
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
|
|
|
} else {
|
|
|
|
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_as',function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
// get options
|
|
|
|
var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
|
|
|
|
var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
|
|
|
|
var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
|
|
|
|
if (fieldName === 'view') {
|
|
|
|
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
|
|
|
} else {
|
|
|
|
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_row_type',function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
// get options
|
|
|
|
var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
|
|
|
|
var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
|
|
|
|
var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
|
|
|
|
if (fieldName === 'view') {
|
|
|
|
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
|
|
|
} else {
|
|
|
|
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function getDynamicScripts(id){
|
|
|
|
if (1 == id) {
|
|
|
|
// get the current values
|
|
|
|
var current_router_parse = jQuery('textarea#jform_php_router_parse').val();
|
|
|
|
// set the router parse method script
|
|
|
|
if(current_router_parse.length == 0){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'routerparse', 'type', 'getDynamicScripts').done(function(result) {
|
2018-01-23 22:05:57 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_php_router_parse').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 23:18:55 +00:00
|
|
|
function getCodeFrom_server(id, type, type_name, callingName){
|
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax." + callingName + "&format=json&raw=true&vdm="+vastDevMod);
|
|
|
|
if(token.length > 0 && id > 0 && type.length > 0) {
|
|
|
|
var request = token + '=1&' + type_name + '=' + type + '&id=' + id;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'json',
|
|
|
|
data: request,
|
|
|
|
jsonp: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-01-31 21:44:21 +00:00
|
|
|
function getEditCustomCodeButtons_server(id){
|
2019-07-08 16:05:54 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getEditCustomCodeButtons&format=json&raw=true&vdm="+vastDevMod);
|
2019-01-31 21:44:21 +00:00
|
|
|
if(token.length > 0 && id > 0){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&id='+id+'&return_here='+return_here;
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'json',
|
|
|
|
data: request,
|
|
|
|
jsonp: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getEditCustomCodeButtons(){
|
|
|
|
// get the id
|
|
|
|
id = jQuery("#jform_id").val();
|
|
|
|
getEditCustomCodeButtons_server(id).done(function(result) {
|
|
|
|
if(isObject(result)){
|
|
|
|
jQuery.each(result, function( field, buttons ) {
|
2019-05-15 22:50:45 +00:00
|
|
|
jQuery('<div class="control-group"><div class="control-label"><label>Add/Edit Customcode</label></div><div class="controls control-customcode-buttons-'+field+'"></div></div>').insertBefore(".control-wrapper-"+ field);
|
2019-01-31 21:44:21 +00:00
|
|
|
jQuery.each(buttons, function( name, button ) {
|
|
|
|
jQuery(".control-customcode-buttons-"+field).append(button);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// check object is not empty
|
|
|
|
function isObject(obj) {
|
|
|
|
for(var prop in obj) {
|
|
|
|
if (Object.prototype.hasOwnProperty.call(obj, prop)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getLinked(){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').done(function(result) {
|
2019-01-31 21:44:21 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('#display_linked_to').html(result);
|
|
|
|
}
|
|
|
|
});
|
2021-03-05 03:08:47 +00:00
|
|
|
}
|