2021-03-05 03:08:47 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
2022-07-09 15:45:08 +00:00
|
|
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
|
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
2021-03-05 03:08:47 +00:00
|
|
|
* @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
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzgvwi_required = false;
|
2024-04-21 22:59:42 +00:00
|
|
|
jform_vvvvvzivwj_required = false;
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzjvwk_required = false;
|
|
|
|
jform_vvvvvzkvwl_required = false;
|
|
|
|
jform_vvvvvzlvwm_required = false;
|
|
|
|
jform_vvvvvzwvwn_required = false;
|
|
|
|
jform_vvvvvzwvwo_required = false;
|
|
|
|
jform_vvvvwabvwp_required = false;
|
|
|
|
jform_vvvvwabvwq_required = false;
|
|
|
|
jform_vvvvwabvwr_required = false;
|
|
|
|
jform_vvvvwacvws_required = false;
|
|
|
|
jform_vvvvwadvwt_required = false;
|
|
|
|
jform_vvvvwaevwu_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
2024-03-02 20:10:30 +00:00
|
|
|
document.addEventListener('DOMContentLoaded', function()
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzg = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzg(gettype_vvvvvzg);
|
|
|
|
|
|
|
|
var main_source_vvvvvzh = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzh(main_source_vvvvvzh);
|
|
|
|
|
|
|
|
var main_source_vvvvvzi = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzi(main_source_vvvvvzi);
|
2024-04-09 11:44:08 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var main_source_vvvvvzj = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzj(main_source_vvvvvzj);
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var main_source_vvvvvzk = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzk(main_source_vvvvvzk);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var main_source_vvvvvzl = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzl(main_source_vvvvvzl);
|
2017-10-06 14:53:22 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
var addcalculation_vvvvvzm = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
vvvvvzm(addcalculation_vvvvvzm);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
var addcalculation_vvvvvzn = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzn = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var addcalculation_vvvvvzo = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzo = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzo(addcalculation_vvvvvzo,gettype_vvvvvzo);
|
2018-03-09 03:26:44 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzr = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzr(main_source_vvvvvzr);
|
2018-05-11 04:08:14 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzs = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzs(main_source_vvvvvzs);
|
2018-07-06 13:46:30 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_before_getitem_vvvvvzt = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzt(add_php_before_getitem_vvvvvzt,gettype_vvvvvzt);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_after_getitem_vvvvvzu = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzu = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzu(add_php_after_getitem_vvvvvzu,gettype_vvvvvzu);
|
2018-08-23 01:37:42 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
|
2024-06-20 23:32:05 +00:00
|
|
|
vvvvvzw(gettype_vvvvvzw);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_getlistquery_vvvvvzx = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzx = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzx(add_php_getlistquery_vvvvvzx,gettype_vvvvvzx);
|
|
|
|
|
|
|
|
var add_php_before_getitems_vvvvvzy = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
2024-04-21 22:59:42 +00:00
|
|
|
var gettype_vvvvvzy = jQuery("#jform_gettype").val();
|
2024-06-20 23:32:05 +00:00
|
|
|
vvvvvzy(add_php_before_getitems_vvvvvzy,gettype_vvvvvzy);
|
2019-06-12 20:06:19 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_after_getitems_vvvvvzz = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
2024-04-21 22:59:42 +00:00
|
|
|
var gettype_vvvvvzz = jQuery("#jform_gettype").val();
|
2024-06-20 23:32:05 +00:00
|
|
|
vvvvvzz(add_php_after_getitems_vvvvvzz,gettype_vvvvvzz);
|
2019-01-29 14:43:27 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var gettype_vvvvwab = jQuery("#jform_gettype").val();
|
2024-06-20 23:32:05 +00:00
|
|
|
vvvvwab(gettype_vvvvwab);
|
|
|
|
|
|
|
|
var gettype_vvvvwac = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwac(gettype_vvvvwac);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var gettype_vvvvwad = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwad(gettype_vvvvwad);
|
2019-07-15 20:00:46 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var gettype_vvvvwae = jQuery("#jform_gettype").val();
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_router_parse_vvvvwae = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
|
|
|
vvvvwae(gettype_vvvvwae,add_php_router_parse_vvvvwae);
|
2019-08-08 15:35:58 +00:00
|
|
|
|
2024-04-21 22:59:42 +00:00
|
|
|
var gettype_vvvvwag = jQuery("#jform_gettype").val();
|
2024-06-20 23:32:05 +00:00
|
|
|
vvvvwag(gettype_vvvvwag);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzg function
|
|
|
|
function vvvvvzg(gettype_vvvvvzg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzg) && gettype_vvvvvzg.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzg = gettype_vvvvvzg;
|
|
|
|
var gettype_vvvvvzg = [];
|
|
|
|
gettype_vvvvvzg.push(temp_vvvvvzg);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzg))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzg = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzg.some(gettype_vvvvvzg_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvvzgvwi_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzgvwi_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvvzgvwi_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzgvwi_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzg Some function
|
|
|
|
function gettype_vvvvvzg_SomeFunc(gettype_vvvvvzg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzg == 3 || gettype_vvvvvzg == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzh function
|
|
|
|
function vvvvvzh(main_source_vvvvvzh)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(main_source_vvvvvzh) && main_source_vvvvvzh.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzh = main_source_vvvvvzh;
|
|
|
|
var main_source_vvvvvzh = [];
|
|
|
|
main_source_vvvvvzh.push(temp_vvvvvzh);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzh))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzh = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source = main_source_vvvvvzh.some(main_source_vvvvvzh_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzh Some function
|
|
|
|
function main_source_vvvvvzh_SomeFunc(main_source_vvvvvzh)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (main_source_vvvvvzh == 1 || main_source_vvvvvzh == 2)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzi function
|
|
|
|
function vvvvvzi(main_source_vvvvvzi)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(main_source_vvvvvzi) && main_source_vvvvvzi.constructor !== Array)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzi = main_source_vvvvvzi;
|
|
|
|
var main_source_vvvvvzi = [];
|
|
|
|
main_source_vvvvvzi.push(temp_vvvvvzi);
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzi))
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzi = [];
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source = main_source_vvvvvzi.some(main_source_vvvvvzi_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvvzivwj_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzivwj_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvvzivwj_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzivwj_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzi Some function
|
|
|
|
function main_source_vvvvvzi_SomeFunc(main_source_vvvvvzi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (main_source_vvvvvzi == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzj function
|
|
|
|
function vvvvvzj(main_source_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(main_source_vvvvvzj) && main_source_vvvvvzj.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzj = main_source_vvvvvzj;
|
|
|
|
var main_source_vvvvvzj = [];
|
|
|
|
main_source_vvvvvzj.push(temp_vvvvvzj);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzj))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzj = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source = main_source_vvvvvzj.some(main_source_vvvvvzj_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvvzjvwk_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzjvwk_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvvzjvwk_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzjvwk_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzj Some function
|
|
|
|
function main_source_vvvvvzj_SomeFunc(main_source_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (main_source_vvvvvzj == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzk function
|
|
|
|
function vvvvvzk(main_source_vvvvvzk)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(main_source_vvvvvzk) && main_source_vvvvvzk.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzk = main_source_vvvvvzk;
|
|
|
|
var main_source_vvvvvzk = [];
|
|
|
|
main_source_vvvvvzk.push(temp_vvvvvzk);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzk))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzk = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source = main_source_vvvvvzk.some(main_source_vvvvvzk_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvvzkvwl_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzkvwl_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvvzkvwl_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzkvwl_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzk Some function
|
|
|
|
function main_source_vvvvvzk_SomeFunc(main_source_vvvvvzk)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (main_source_vvvvvzk == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzl function
|
|
|
|
function vvvvvzl(main_source_vvvvvzl)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(main_source_vvvvvzl) && main_source_vvvvvzl.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzl = main_source_vvvvvzl;
|
|
|
|
var main_source_vvvvvzl = [];
|
|
|
|
main_source_vvvvvzl.push(temp_vvvvvzl);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzl))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzl = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source = main_source_vvvvvzl.some(main_source_vvvvvzl_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvvzlvwm_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzlvwm_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvvzlvwm_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzlvwm_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzl Some function
|
|
|
|
function main_source_vvvvvzl_SomeFunc(main_source_vvvvvzl)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (main_source_vvvvvzl == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzm function
|
|
|
|
function vvvvvzm(addcalculation_vvvvvzm)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (addcalculation_vvvvvzm == 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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzn function
|
|
|
|
function vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(addcalculation_vvvvvzn) && addcalculation_vvvvvzn.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzn = addcalculation_vvvvvzn;
|
|
|
|
var addcalculation_vvvvvzn = [];
|
|
|
|
addcalculation_vvvvvzn.push(temp_vvvvvzn);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvvzn))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var addcalculation_vvvvvzn = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var addcalculation = addcalculation_vvvvvzn.some(addcalculation_vvvvvzn_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzn) && gettype_vvvvvzn.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzn = gettype_vvvvvzn;
|
|
|
|
var gettype_vvvvvzn = [];
|
|
|
|
gettype_vvvvvzn.push(temp_vvvvvzn);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzn))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzn = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzn.some(gettype_vvvvvzn_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzn Some function
|
|
|
|
function addcalculation_vvvvvzn_SomeFunc(addcalculation_vvvvvzn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (addcalculation_vvvvvzn == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzn Some function
|
|
|
|
function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzn == 1 || gettype_vvvvvzn == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzo function
|
|
|
|
function vvvvvzo(addcalculation_vvvvvzo,gettype_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(addcalculation_vvvvvzo) && addcalculation_vvvvvzo.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzo = addcalculation_vvvvvzo;
|
|
|
|
var addcalculation_vvvvvzo = [];
|
|
|
|
addcalculation_vvvvvzo.push(temp_vvvvvzo);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvvzo))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var addcalculation_vvvvvzo = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var addcalculation = addcalculation_vvvvvzo.some(addcalculation_vvvvvzo_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzo) && gettype_vvvvvzo.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzo = gettype_vvvvvzo;
|
|
|
|
var gettype_vvvvvzo = [];
|
|
|
|
gettype_vvvvvzo.push(temp_vvvvvzo);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzo))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzo = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzo.some(gettype_vvvvvzo_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzo Some function
|
|
|
|
function addcalculation_vvvvvzo_SomeFunc(addcalculation_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (addcalculation_vvvvvzo == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzo Some function
|
|
|
|
function gettype_vvvvvzo_SomeFunc(gettype_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzo == 2 || gettype_vvvvvzo == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzr function
|
|
|
|
function vvvvvzr(main_source_vvvvvzr)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(main_source_vvvvvzr) && main_source_vvvvvzr.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzr = main_source_vvvvvzr;
|
|
|
|
var main_source_vvvvvzr = [];
|
|
|
|
main_source_vvvvvzr.push(temp_vvvvvzr);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzr))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzr = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source = main_source_vvvvvzr.some(main_source_vvvvvzr_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzr Some function
|
|
|
|
function main_source_vvvvvzr_SomeFunc(main_source_vvvvvzr)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (main_source_vvvvvzr == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzs function
|
|
|
|
function vvvvvzs(main_source_vvvvvzs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(main_source_vvvvvzs) && main_source_vvvvvzs.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzs = main_source_vvvvvzs;
|
|
|
|
var main_source_vvvvvzs = [];
|
|
|
|
main_source_vvvvvzs.push(temp_vvvvvzs);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzs))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source_vvvvvzs = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var main_source = main_source_vvvvvzs.some(main_source_vvvvvzs_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzs Some function
|
|
|
|
function main_source_vvvvvzs_SomeFunc(main_source_vvvvvzs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (main_source_vvvvvzs == 1 || main_source_vvvvvzs == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzt function
|
|
|
|
function vvvvvzt(add_php_before_getitem_vvvvvzt,gettype_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(add_php_before_getitem_vvvvvzt) && add_php_before_getitem_vvvvvzt.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzt = add_php_before_getitem_vvvvvzt;
|
|
|
|
var add_php_before_getitem_vvvvvzt = [];
|
|
|
|
add_php_before_getitem_vvvvvzt.push(temp_vvvvvzt);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(add_php_before_getitem_vvvvvzt))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_before_getitem_vvvvvzt = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_before_getitem = add_php_before_getitem_vvvvvzt.some(add_php_before_getitem_vvvvvzt_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzt) && gettype_vvvvvzt.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzt = gettype_vvvvvzt;
|
|
|
|
var gettype_vvvvvzt = [];
|
|
|
|
gettype_vvvvvzt.push(temp_vvvvvzt);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzt))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzt = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzt.some(gettype_vvvvvzt_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzt Some function
|
|
|
|
function add_php_before_getitem_vvvvvzt_SomeFunc(add_php_before_getitem_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (add_php_before_getitem_vvvvvzt == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzt Some function
|
|
|
|
function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzt == 1 || gettype_vvvvvzt == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzu function
|
|
|
|
function vvvvvzu(add_php_after_getitem_vvvvvzu,gettype_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(add_php_after_getitem_vvvvvzu) && add_php_after_getitem_vvvvvzu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzu = add_php_after_getitem_vvvvvzu;
|
|
|
|
var add_php_after_getitem_vvvvvzu = [];
|
|
|
|
add_php_after_getitem_vvvvvzu.push(temp_vvvvvzu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(add_php_after_getitem_vvvvvzu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_after_getitem_vvvvvzu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_after_getitem = add_php_after_getitem_vvvvvzu.some(add_php_after_getitem_vvvvvzu_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzu) && gettype_vvvvvzu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzu = gettype_vvvvvzu;
|
|
|
|
var gettype_vvvvvzu = [];
|
|
|
|
gettype_vvvvvzu.push(temp_vvvvvzu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzu.some(gettype_vvvvvzu_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzu Some function
|
|
|
|
function add_php_after_getitem_vvvvvzu_SomeFunc(add_php_after_getitem_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (add_php_after_getitem_vvvvvzu == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzu Some function
|
|
|
|
function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzu == 1 || gettype_vvvvvzu == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzw function
|
|
|
|
function vvvvvzw(gettype_vvvvvzw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzw = gettype_vvvvvzw;
|
|
|
|
var gettype_vvvvvzw = [];
|
|
|
|
gettype_vvvvvzw.push(temp_vvvvvzw);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzw))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzw = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzw.some(gettype_vvvvvzw_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvvzwvwn_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzwvwn_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvvzwvwo_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzwvwo_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvvzwvwn_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzwvwn_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvvzwvwo_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvvzwvwo_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzw Some function
|
|
|
|
function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzw == 1 || gettype_vvvvvzw == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzx function
|
|
|
|
function vvvvvzx(add_php_getlistquery_vvvvvzx,gettype_vvvvvzx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(add_php_getlistquery_vvvvvzx) && add_php_getlistquery_vvvvvzx.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzx = add_php_getlistquery_vvvvvzx;
|
|
|
|
var add_php_getlistquery_vvvvvzx = [];
|
|
|
|
add_php_getlistquery_vvvvvzx.push(temp_vvvvvzx);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(add_php_getlistquery_vvvvvzx))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_getlistquery_vvvvvzx = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_getlistquery = add_php_getlistquery_vvvvvzx.some(add_php_getlistquery_vvvvvzx_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzx) && gettype_vvvvvzx.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzx = gettype_vvvvvzx;
|
|
|
|
var gettype_vvvvvzx = [];
|
|
|
|
gettype_vvvvvzx.push(temp_vvvvvzx);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzx))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzx = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzx.some(gettype_vvvvvzx_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzx Some function
|
|
|
|
function add_php_getlistquery_vvvvvzx_SomeFunc(add_php_getlistquery_vvvvvzx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (add_php_getlistquery_vvvvvzx == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzx Some function
|
|
|
|
function gettype_vvvvvzx_SomeFunc(gettype_vvvvvzx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzx == 2 || gettype_vvvvvzx == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzy function
|
|
|
|
function vvvvvzy(add_php_before_getitems_vvvvvzy,gettype_vvvvvzy)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(add_php_before_getitems_vvvvvzy) && add_php_before_getitems_vvvvvzy.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzy = add_php_before_getitems_vvvvvzy;
|
|
|
|
var add_php_before_getitems_vvvvvzy = [];
|
|
|
|
add_php_before_getitems_vvvvvzy.push(temp_vvvvvzy);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(add_php_before_getitems_vvvvvzy))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_before_getitems_vvvvvzy = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_before_getitems = add_php_before_getitems_vvvvvzy.some(add_php_before_getitems_vvvvvzy_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzy = gettype_vvvvvzy;
|
|
|
|
var gettype_vvvvvzy = [];
|
|
|
|
gettype_vvvvvzy.push(temp_vvvvvzy);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzy))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzy = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzy.some(gettype_vvvvvzy_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzy Some function
|
|
|
|
function add_php_before_getitems_vvvvvzy_SomeFunc(add_php_before_getitems_vvvvvzy)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (add_php_before_getitems_vvvvvzy == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzy Some function
|
|
|
|
function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzy == 2 || gettype_vvvvvzy == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzz function
|
|
|
|
function vvvvvzz(add_php_after_getitems_vvvvvzz,gettype_vvvvvzz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(add_php_after_getitems_vvvvvzz) && add_php_after_getitems_vvvvvzz.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzz = add_php_after_getitems_vvvvvzz;
|
|
|
|
var add_php_after_getitems_vvvvvzz = [];
|
|
|
|
add_php_after_getitems_vvvvvzz.push(temp_vvvvvzz);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(add_php_after_getitems_vvvvvzz))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_after_getitems_vvvvvzz = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_after_getitems = add_php_after_getitems_vvvvvzz.some(add_php_after_getitems_vvvvvzz_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvvzz) && gettype_vvvvvzz.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvvzz = gettype_vvvvvzz;
|
|
|
|
var gettype_vvvvvzz = [];
|
|
|
|
gettype_vvvvvzz.push(temp_vvvvvzz);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzz))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvvzz = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvvzz.some(gettype_vvvvvzz_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzz Some function
|
|
|
|
function add_php_after_getitems_vvvvvzz_SomeFunc(add_php_after_getitems_vvvvvzz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (add_php_after_getitems_vvvvvzz == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvvzz Some function
|
|
|
|
function gettype_vvvvvzz_SomeFunc(gettype_vvvvvzz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvvzz == 2 || gettype_vvvvvzz == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwab function
|
|
|
|
function vvvvwab(gettype_vvvvwab)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvwab) && gettype_vvvvwab.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvwab = gettype_vvvvwab;
|
|
|
|
var gettype_vvvvwab = [];
|
|
|
|
gettype_vvvvwab.push(temp_vvvvwab);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvwab))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvwab = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvwab.some(gettype_vvvvwab_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvwabvwp_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwabvwp_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvwabvwq_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwabvwq_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvwabvwr_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwabvwr_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvwabvwp_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwabvwp_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvwabvwq_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwabvwq_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvwabvwr_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwabvwr_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwab Some function
|
|
|
|
function gettype_vvvvwab_SomeFunc(gettype_vvvvwab)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvwab == 2 || gettype_vvvvwab == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwac function
|
|
|
|
function vvvvwac(gettype_vvvvwac)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvwac) && gettype_vvvvwac.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvwac = gettype_vvvvwac;
|
|
|
|
var gettype_vvvvwac = [];
|
|
|
|
gettype_vvvvwac.push(temp_vvvvwac);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvwac))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvwac = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvwac.some(gettype_vvvvwac_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvwacvws_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwacvws_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvwacvws_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwacvws_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwac Some function
|
|
|
|
function gettype_vvvvwac_SomeFunc(gettype_vvvvwac)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvwac == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwad function
|
|
|
|
function vvvvwad(gettype_vvvvwad)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvwad) && gettype_vvvvwad.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvwad = gettype_vvvvwad;
|
|
|
|
var gettype_vvvvwad = [];
|
|
|
|
gettype_vvvvwad.push(temp_vvvvwad);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvwad))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvwad = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvwad.some(gettype_vvvvwad_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvwadvwt_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwadvwt_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvwadvwt_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwadvwt_required = true;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwad Some function
|
|
|
|
function gettype_vvvvwad_SomeFunc(gettype_vvvvwad)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvwad == 1 || gettype_vvvvwad == 2)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwae function
|
|
|
|
function vvvvwae(gettype_vvvvwae,add_php_router_parse_vvvvwae)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvwae) && gettype_vvvvwae.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvwae = gettype_vvvvwae;
|
|
|
|
var gettype_vvvvwae = [];
|
|
|
|
gettype_vvvvwae.push(temp_vvvvwae);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvwae))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvwae = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvwae.some(gettype_vvvvwae_SomeFunc);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(add_php_router_parse_vvvvwae) && add_php_router_parse_vvvvwae.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvwae = add_php_router_parse_vvvvwae;
|
|
|
|
var add_php_router_parse_vvvvwae = [];
|
|
|
|
add_php_router_parse_vvvvwae.push(temp_vvvvwae);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(add_php_router_parse_vvvvwae))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_router_parse_vvvvwae = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var add_php_router_parse = add_php_router_parse_vvvvwae.some(add_php_router_parse_vvvvwae_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (jform_vvvvwaevwu_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwaevwu_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
|
2024-06-20 23:32:05 +00:00
|
|
|
if (!jform_vvvvwaevwu_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');
|
2024-06-20 23:32:05 +00:00
|
|
|
jform_vvvvwaevwu_required = true;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwae Some function
|
|
|
|
function gettype_vvvvwae_SomeFunc(gettype_vvvvwae)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvwae == 1 || gettype_vvvvwae == 2)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwae Some function
|
|
|
|
function add_php_router_parse_vvvvwae_SomeFunc(add_php_router_parse_vvvvwae)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (add_php_router_parse_vvvvwae == 1)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwag function
|
|
|
|
function vvvvwag(gettype_vvvvwag)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
if (isSet(gettype_vvvvwag) && gettype_vvvvwag.constructor !== Array)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var temp_vvvvwag = gettype_vvvvwag;
|
|
|
|
var gettype_vvvvwag = [];
|
|
|
|
gettype_vvvvwag.push(temp_vvvvwag);
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
else if (!isSet(gettype_vvvvwag))
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype_vvvvwag = [];
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2024-06-20 23:32:05 +00:00
|
|
|
var gettype = gettype_vvvvwag.some(gettype_vvvvwag_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-20 23:32:05 +00:00
|
|
|
// the vvvvwag Some function
|
|
|
|
function gettype_vvvvwag_SomeFunc(gettype_vvvvwag)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-06-20 23:32:05 +00:00
|
|
|
if (gettype_vvvvwag == 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
|
2024-03-02 20:10:30 +00:00
|
|
|
if (document.getElementById('jform_not_required')) {
|
2020-02-27 21:05:28 +00:00
|
|
|
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){
|
2023-10-18 07:26:30 +00:00
|
|
|
getCodeFrom_server(1, 'routerparse', 'type', 'getDynamicScripts').then(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
|
|
|
}
|
|
|
|
|
2023-10-18 07:26:30 +00:00
|
|
|
function getCodeFrom_server(id, type, type_name, callingName) {
|
|
|
|
var url = "index.php?option=com_componentbuilder&task=ajax." + callingName + "&format=json&raw=true&vdm="+vastDevMod;
|
|
|
|
if (token.length > 0 && id > 0 && type.length > 0) {
|
|
|
|
url += '&' + token + '=1&' + type_name + '=' + type + '&id=' + id;
|
2019-12-10 23:18:55 +00:00
|
|
|
}
|
2023-10-18 07:26:30 +00:00
|
|
|
var getUrl = JRouter(url);
|
|
|
|
return fetch(getUrl, {
|
|
|
|
method: 'GET',
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
}
|
|
|
|
}).then(function(response) {
|
|
|
|
if (response.ok) {
|
|
|
|
return response.json();
|
|
|
|
} else {
|
|
|
|
throw new Error('Network response was not ok');
|
|
|
|
}
|
|
|
|
}).then(function(data) {
|
|
|
|
return data;
|
|
|
|
}).catch(function(error) {
|
|
|
|
console.error('There was a problem with the fetch operation:', error);
|
2019-12-10 23:18:55 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-03-02 20:10:30 +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);
|
2024-03-02 20:10:30 +00:00
|
|
|
let requestParams = '';
|
|
|
|
if (token.length > 0 && id > 0) {
|
|
|
|
requestParams = token+'=1&id='+id+'&return_here='+return_here;
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
2024-03-02 20:10:30 +00:00
|
|
|
// Construct URL with parameters for GET request
|
|
|
|
const urlWithParams = getUrl + '&' + requestParams;
|
|
|
|
|
|
|
|
// Using the Fetch API for the GET request
|
|
|
|
return fetch(urlWithParams, {
|
|
|
|
method: 'GET',
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
}
|
|
|
|
}).then(response => {
|
|
|
|
if (!response.ok) {
|
|
|
|
throw new Error('Network response was not ok');
|
|
|
|
}
|
|
|
|
return response.json();
|
2019-01-31 21:44:21 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-03-02 20:10:30 +00:00
|
|
|
function getEditCustomCodeButtons() {
|
|
|
|
// Get the id using pure JavaScript
|
|
|
|
const id = document.querySelector("#jform_id").value;
|
|
|
|
getEditCustomCodeButtons_server(id).then(function(result) {
|
|
|
|
if (typeof result === 'object') {
|
|
|
|
Object.entries(result).forEach(([field, buttons]) => {
|
|
|
|
// Creating the div element for buttons
|
|
|
|
const div = document.createElement('div');
|
|
|
|
div.className = 'control-group';
|
|
|
|
div.innerHTML = '<div class="control-label"><label>Add/Edit Customcode</label></div><div class="controls control-customcode-buttons-'+field+'"></div>';
|
|
|
|
|
|
|
|
// Insert the div before .control-wrapper-{field}
|
|
|
|
const insertBeforeElement = document.querySelector(".control-wrapper-"+field);
|
2024-10-07 22:31:55 +00:00
|
|
|
if (insertBeforeElement) {
|
|
|
|
insertBeforeElement.parentNode.insertBefore(div, insertBeforeElement);
|
|
|
|
}
|
2024-03-02 20:10:30 +00:00
|
|
|
|
|
|
|
// Adding buttons to the div
|
|
|
|
Object.entries(buttons).forEach(([name, button]) => {
|
|
|
|
const controlsDiv = document.querySelector(".control-customcode-buttons-"+field);
|
2024-10-07 22:31:55 +00:00
|
|
|
if (controlsDiv) {
|
|
|
|
controlsDiv.innerHTML += button;
|
|
|
|
}
|
2019-01-31 21:44:21 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
2024-03-02 20:10:30 +00:00
|
|
|
}).catch(error => {
|
|
|
|
console.error('Error:', error);
|
|
|
|
});
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
|
2024-08-14 23:37:23 +00:00
|
|
|
function getLinked() {
|
2023-10-18 07:26:30 +00:00
|
|
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
2024-08-14 23:37:23 +00:00
|
|
|
if (result.error) {
|
|
|
|
console.error(result.error);
|
|
|
|
} else if (result) {
|
|
|
|
document.getElementById('display_linked_to').innerHTML = result;
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
});
|
2024-03-02 20:10:30 +00:00
|
|
|
}
|