2018-05-18 06:28:27 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
|
|
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
|
|
|
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
2019-02-23 13:28:54 +00:00
|
|
|
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
2018-05-18 06:28:27 +00:00
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Some Global Values
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzivwm_required = false;
|
|
|
|
jform_vvvvvzkvwn_required = false;
|
|
|
|
jform_vvvvvzlvwo_required = false;
|
|
|
|
jform_vvvvvzmvwp_required = false;
|
|
|
|
jform_vvvvvznvwq_required = false;
|
|
|
|
jform_vvvvvzyvwr_required = false;
|
|
|
|
jform_vvvvvzyvws_required = false;
|
|
|
|
jform_vvvvwadvwt_required = false;
|
|
|
|
jform_vvvvwadvwu_required = false;
|
|
|
|
jform_vvvvwadvwv_required = false;
|
|
|
|
jform_vvvvwaevww_required = false;
|
|
|
|
jform_vvvvwafvwx_required = false;
|
|
|
|
jform_vvvvwagvwy_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvvzi = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzi(gettype_vvvvvzi);
|
2016-12-30 10:47:19 +00:00
|
|
|
|
2019-05-15 17:39:27 +00:00
|
|
|
var main_source_vvvvvzj = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzj(main_source_vvvvvzj);
|
2017-09-13 00:37:43 +00:00
|
|
|
|
2019-06-12 20:06:19 +00:00
|
|
|
var main_source_vvvvvzk = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzk(main_source_vvvvvzk);
|
2017-12-14 23:10:47 +00:00
|
|
|
|
2019-06-12 20:36:05 +00:00
|
|
|
var main_source_vvvvvzl = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzl(main_source_vvvvvzl);
|
2017-12-14 23:10:47 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzm = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzm(main_source_vvvvvzm);
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzn = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzn(main_source_vvvvvzn);
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2019-06-12 20:36:05 +00:00
|
|
|
var addcalculation_vvvvvzo = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
2019-07-15 20:00:46 +00:00
|
|
|
vvvvvzo(addcalculation_vvvvvzo);
|
2017-10-06 14:53:22 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var addcalculation_vvvvvzp = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var addcalculation_vvvvvzq = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzq = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzt = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzt(main_source_vvvvvzt);
|
2018-03-09 03:26:44 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzu = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzu(main_source_vvvvvzu);
|
2018-03-09 03:26:44 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_before_getitem_vvvvvzv = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzv = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzv(add_php_before_getitem_vvvvvzv,gettype_vvvvvzv);
|
2018-05-11 04:08:14 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_after_getitem_vvvvvzw = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzw(add_php_after_getitem_vvvvvzw,gettype_vvvvvzw);
|
2018-07-06 13:46:30 +00:00
|
|
|
|
2019-06-12 20:06:19 +00:00
|
|
|
var gettype_vvvvvzy = jQuery("#jform_gettype").val();
|
2019-07-15 20:00:46 +00:00
|
|
|
vvvvvzy(gettype_vvvvvzy);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_getlistquery_vvvvvzz = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
2019-06-12 20:36:05 +00:00
|
|
|
var gettype_vvvvvzz = jQuery("#jform_gettype").val();
|
2019-07-15 20:00:46 +00:00
|
|
|
vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz);
|
2018-08-23 01:37:42 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_before_getitems_vvvvwaa = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvwaa = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwaa(add_php_before_getitems_vvvvwaa,gettype_vvvvwaa);
|
2019-05-15 17:39:27 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_after_getitems_vvvvwab = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvwab = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab);
|
2019-06-12 20:06:19 +00:00
|
|
|
|
|
|
|
var gettype_vvvvwad = jQuery("#jform_gettype").val();
|
2019-06-12 20:36:05 +00:00
|
|
|
vvvvwad(gettype_vvvvwad);
|
|
|
|
|
|
|
|
var gettype_vvvvwae = jQuery("#jform_gettype").val();
|
2019-07-15 20:00:46 +00:00
|
|
|
vvvvwae(gettype_vvvvwae);
|
|
|
|
|
|
|
|
var gettype_vvvvwaf = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwaf(gettype_vvvvwaf);
|
2019-01-29 14:43:27 +00:00
|
|
|
|
2019-06-12 20:36:05 +00:00
|
|
|
var gettype_vvvvwag = jQuery("#jform_gettype").val();
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_router_parse_vvvvwag = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
|
|
|
vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag);
|
|
|
|
|
|
|
|
var gettype_vvvvwai = jQuery("#jform_gettype").val();
|
|
|
|
vvvvwai(gettype_vvvvwai);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzi function
|
|
|
|
function vvvvvzi(gettype_vvvvvzi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvvzi) && gettype_vvvvvzi.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzi = gettype_vvvvvzi;
|
|
|
|
var gettype_vvvvvzi = [];
|
|
|
|
gettype_vvvvvzi.push(temp_vvvvvzi);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzi))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvvzi = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvvzi.some(gettype_vvvvvzi_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvvzivwm_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzivwm_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvvzivwm_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzivwm_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzi Some function
|
|
|
|
function gettype_vvvvvzi_SomeFunc(gettype_vvvvvzi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvvzi == 3 || gettype_vvvvvzi == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzj function
|
|
|
|
function vvvvvzj(main_source_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(main_source_vvvvvzj) && main_source_vvvvvzj.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +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
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzj))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzj = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source = main_source_vvvvvzj.some(main_source_vvvvvzj_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzj Some function
|
|
|
|
function main_source_vvvvvzj_SomeFunc(main_source_vvvvvzj)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (main_source_vvvvvzj == 1 || main_source_vvvvvzj == 2)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzk function
|
|
|
|
function vvvvvzk(main_source_vvvvvzk)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(main_source_vvvvvzk) && main_source_vvvvvzk.constructor !== Array)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzk = main_source_vvvvvzk;
|
|
|
|
var main_source_vvvvvzk = [];
|
|
|
|
main_source_vvvvvzk.push(temp_vvvvvzk);
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzk))
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzk = [];
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source = main_source_vvvvvzk.some(main_source_vvvvvzk_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvvzkvwn_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzkvwn_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvvzkvwn_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzkvwn_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (main_source_vvvvvzk == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzl function
|
|
|
|
function vvvvvzl(main_source_vvvvvzl)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(main_source_vvvvvzl) && main_source_vvvvvzl.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +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
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzl))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzl = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +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_view_selection').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to view_selection field
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvvzlvwo_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzlvwo_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvvzlvwo_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzlvwo_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (main_source_vvvvvzl == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzm function
|
|
|
|
function vvvvvzm(main_source_vvvvvzm)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(main_source_vvvvvzm) && main_source_vvvvvzm.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzm = main_source_vvvvvzm;
|
|
|
|
var main_source_vvvvvzm = [];
|
|
|
|
main_source_vvvvvzm.push(temp_vvvvvzm);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzm))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzm = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source = main_source_vvvvvzm.some(main_source_vvvvvzm_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvvzmvwp_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzmvwp_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvvzmvwp_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzmvwp_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzm Some function
|
|
|
|
function main_source_vvvvvzm_SomeFunc(main_source_vvvvvzm)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (main_source_vvvvvzm == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzn function
|
|
|
|
function vvvvvzn(main_source_vvvvvzn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(main_source_vvvvvzn) && main_source_vvvvvzn.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzn = main_source_vvvvvzn;
|
|
|
|
var main_source_vvvvvzn = [];
|
|
|
|
main_source_vvvvvzn.push(temp_vvvvvzn);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzn))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzn = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source = main_source_vvvvvzn.some(main_source_vvvvvzn_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvvznvwq_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvznvwq_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvvznvwq_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvznvwq_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzn Some function
|
|
|
|
function main_source_vvvvvzn_SomeFunc(main_source_vvvvvzn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (main_source_vvvvvzn == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzo function
|
|
|
|
function vvvvvzo(addcalculation_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (addcalculation_vvvvvzo == 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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzp function
|
|
|
|
function vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(addcalculation_vvvvvzp) && addcalculation_vvvvvzp.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzp = addcalculation_vvvvvzp;
|
|
|
|
var addcalculation_vvvvvzp = [];
|
|
|
|
addcalculation_vvvvvzp.push(temp_vvvvvzp);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvvzp))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var addcalculation_vvvvvzp = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var addcalculation = addcalculation_vvvvvzp.some(addcalculation_vvvvvzp_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvvzp) && gettype_vvvvvzp.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzp = gettype_vvvvvzp;
|
|
|
|
var gettype_vvvvvzp = [];
|
|
|
|
gettype_vvvvvzp.push(temp_vvvvvzp);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzp))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvvzp = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvvzp.some(gettype_vvvvvzp_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzp Some function
|
|
|
|
function addcalculation_vvvvvzp_SomeFunc(addcalculation_vvvvvzp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (addcalculation_vvvvvzp == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzp Some function
|
|
|
|
function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvvzp == 1 || gettype_vvvvvzp == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzq function
|
|
|
|
function vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(addcalculation_vvvvvzq) && addcalculation_vvvvvzq.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzq = addcalculation_vvvvvzq;
|
|
|
|
var addcalculation_vvvvvzq = [];
|
|
|
|
addcalculation_vvvvvzq.push(temp_vvvvvzq);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvvzq))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var addcalculation_vvvvvzq = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var addcalculation = addcalculation_vvvvvzq.some(addcalculation_vvvvvzq_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvvzq) && gettype_vvvvvzq.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzq = gettype_vvvvvzq;
|
|
|
|
var gettype_vvvvvzq = [];
|
|
|
|
gettype_vvvvvzq.push(temp_vvvvvzq);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzq))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvvzq = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvvzq.some(gettype_vvvvvzq_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzq Some function
|
|
|
|
function addcalculation_vvvvvzq_SomeFunc(addcalculation_vvvvvzq)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (addcalculation_vvvvvzq == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzq Some function
|
|
|
|
function gettype_vvvvvzq_SomeFunc(gettype_vvvvvzq)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvvzq == 2 || gettype_vvvvvzq == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzt function
|
|
|
|
function vvvvvzt(main_source_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(main_source_vvvvvzt) && main_source_vvvvvzt.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzt = main_source_vvvvvzt;
|
|
|
|
var main_source_vvvvvzt = [];
|
|
|
|
main_source_vvvvvzt.push(temp_vvvvvzt);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzt))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzt = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source = main_source_vvvvvzt.some(main_source_vvvvvzt_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzt Some function
|
|
|
|
function main_source_vvvvvzt_SomeFunc(main_source_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (main_source_vvvvvzt == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzu function
|
|
|
|
function vvvvvzu(main_source_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(main_source_vvvvvzu) && main_source_vvvvvzu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzu = main_source_vvvvvzu;
|
|
|
|
var main_source_vvvvvzu = [];
|
|
|
|
main_source_vvvvvzu.push(temp_vvvvvzu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source_vvvvvzu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var main_source = main_source_vvvvvzu.some(main_source_vvvvvzu_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzu Some function
|
|
|
|
function main_source_vvvvvzu_SomeFunc(main_source_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (main_source_vvvvvzu == 1 || main_source_vvvvvzu == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzv function
|
|
|
|
function vvvvvzv(add_php_before_getitem_vvvvvzv,gettype_vvvvvzv)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(add_php_before_getitem_vvvvvzv) && add_php_before_getitem_vvvvvzv.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzv = add_php_before_getitem_vvvvvzv;
|
|
|
|
var add_php_before_getitem_vvvvvzv = [];
|
|
|
|
add_php_before_getitem_vvvvvzv.push(temp_vvvvvzv);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(add_php_before_getitem_vvvvvzv))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_before_getitem_vvvvvzv = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_before_getitem = add_php_before_getitem_vvvvvzv.some(add_php_before_getitem_vvvvvzv_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvvzv) && gettype_vvvvvzv.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzv = gettype_vvvvvzv;
|
|
|
|
var gettype_vvvvvzv = [];
|
|
|
|
gettype_vvvvvzv.push(temp_vvvvvzv);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzv))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvvzv = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvvzv.some(gettype_vvvvvzv_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzv Some function
|
|
|
|
function add_php_before_getitem_vvvvvzv_SomeFunc(add_php_before_getitem_vvvvvzv)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (add_php_before_getitem_vvvvvzv == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzv Some function
|
|
|
|
function gettype_vvvvvzv_SomeFunc(gettype_vvvvvzv)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvvzv == 1 || gettype_vvvvvzv == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzw function
|
|
|
|
function vvvvvzw(add_php_after_getitem_vvvvvzw,gettype_vvvvvzw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(add_php_after_getitem_vvvvvzw) && add_php_after_getitem_vvvvvzw.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzw = add_php_after_getitem_vvvvvzw;
|
|
|
|
var add_php_after_getitem_vvvvvzw = [];
|
|
|
|
add_php_after_getitem_vvvvvzw.push(temp_vvvvvzw);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(add_php_after_getitem_vvvvvzw))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_after_getitem_vvvvvzw = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_after_getitem = add_php_after_getitem_vvvvvzw.some(add_php_after_getitem_vvvvvzw_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzw = gettype_vvvvvzw;
|
|
|
|
var gettype_vvvvvzw = [];
|
|
|
|
gettype_vvvvvzw.push(temp_vvvvvzw);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzw))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvvzw = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvvzw.some(gettype_vvvvvzw_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzw Some function
|
|
|
|
function add_php_after_getitem_vvvvvzw_SomeFunc(add_php_after_getitem_vvvvvzw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (add_php_after_getitem_vvvvvzw == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzw Some function
|
|
|
|
function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvvzw == 1 || gettype_vvvvvzw == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzy function
|
|
|
|
function vvvvvzy(gettype_vvvvvzy)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzy = gettype_vvvvvzy;
|
|
|
|
var gettype_vvvvvzy = [];
|
|
|
|
gettype_vvvvvzy.push(temp_vvvvvzy);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzy))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvvzy = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvvzy.some(gettype_vvvvvzy_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvvzyvwr_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzyvwr_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvvzyvws_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzyvws_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvvzyvwr_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzyvwr_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvvzyvws_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvvzyvws_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzy Some function
|
|
|
|
function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvvzy == 1 || gettype_vvvvvzy == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzz function
|
|
|
|
function vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(add_php_getlistquery_vvvvvzz) && add_php_getlistquery_vvvvvzz.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzz = add_php_getlistquery_vvvvvzz;
|
|
|
|
var add_php_getlistquery_vvvvvzz = [];
|
|
|
|
add_php_getlistquery_vvvvvzz.push(temp_vvvvvzz);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(add_php_getlistquery_vvvvvzz))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_getlistquery_vvvvvzz = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_getlistquery = add_php_getlistquery_vvvvvzz.some(add_php_getlistquery_vvvvvzz_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvvzz) && gettype_vvvvvzz.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvvzz = gettype_vvvvvzz;
|
|
|
|
var gettype_vvvvvzz = [];
|
|
|
|
gettype_vvvvvzz.push(temp_vvvvvzz);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzz))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvvzz = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +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_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzz Some function
|
|
|
|
function add_php_getlistquery_vvvvvzz_SomeFunc(add_php_getlistquery_vvvvvzz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (add_php_getlistquery_vvvvvzz == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvvzz Some function
|
|
|
|
function gettype_vvvvvzz_SomeFunc(gettype_vvvvvzz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvvzz == 2 || gettype_vvvvvzz == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwaa function
|
|
|
|
function vvvvwaa(add_php_before_getitems_vvvvwaa,gettype_vvvvwaa)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(add_php_before_getitems_vvvvwaa) && add_php_before_getitems_vvvvwaa.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwaa = add_php_before_getitems_vvvvwaa;
|
|
|
|
var add_php_before_getitems_vvvvwaa = [];
|
|
|
|
add_php_before_getitems_vvvvwaa.push(temp_vvvvwaa);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(add_php_before_getitems_vvvvwaa))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_before_getitems_vvvvwaa = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_before_getitems = add_php_before_getitems_vvvvwaa.some(add_php_before_getitems_vvvvwaa_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvwaa) && gettype_vvvvwaa.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwaa = gettype_vvvvwaa;
|
|
|
|
var gettype_vvvvwaa = [];
|
|
|
|
gettype_vvvvwaa.push(temp_vvvvwaa);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvwaa))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvwaa = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvwaa.some(gettype_vvvvwaa_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwaa Some function
|
|
|
|
function add_php_before_getitems_vvvvwaa_SomeFunc(add_php_before_getitems_vvvvwaa)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (add_php_before_getitems_vvvvwaa == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwaa Some function
|
|
|
|
function gettype_vvvvwaa_SomeFunc(gettype_vvvvwaa)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvwaa == 2 || gettype_vvvvwaa == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwab function
|
|
|
|
function vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(add_php_after_getitems_vvvvwab) && add_php_after_getitems_vvvvwab.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwab = add_php_after_getitems_vvvvwab;
|
|
|
|
var add_php_after_getitems_vvvvwab = [];
|
|
|
|
add_php_after_getitems_vvvvwab.push(temp_vvvvwab);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(add_php_after_getitems_vvvvwab))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_after_getitems_vvvvwab = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_after_getitems = add_php_after_getitems_vvvvwab.some(add_php_after_getitems_vvvvwab_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvwab) && gettype_vvvvwab.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwab = gettype_vvvvwab;
|
|
|
|
var gettype_vvvvwab = [];
|
|
|
|
gettype_vvvvwab.push(temp_vvvvwab);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvwab))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvwab = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvwab.some(gettype_vvvvwab_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwab Some function
|
|
|
|
function add_php_after_getitems_vvvvwab_SomeFunc(add_php_after_getitems_vvvvwab)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (add_php_after_getitems_vvvvwab == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwab Some function
|
|
|
|
function gettype_vvvvwab_SomeFunc(gettype_vvvvwab)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvwab == 2 || gettype_vvvvwab == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwad function
|
|
|
|
function vvvvwad(gettype_vvvvwad)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvwad) && gettype_vvvvwad.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwad = gettype_vvvvwad;
|
|
|
|
var gettype_vvvvwad = [];
|
|
|
|
gettype_vvvvwad.push(temp_vvvvwad);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvwad))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvwad = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvwad.some(gettype_vvvvwad_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvwadvwt_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwadvwt_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvwadvwu_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwadvwu_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvwadvwv_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwadvwv_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvwadvwt_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwadvwt_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvwadvwu_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwadvwu_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvwadvwv_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwadvwv_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwad Some function
|
|
|
|
function gettype_vvvvwad_SomeFunc(gettype_vvvvwad)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvwad == 2 || gettype_vvvvwad == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwae function
|
|
|
|
function vvvvwae(gettype_vvvvwae)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvwae) && gettype_vvvvwae.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwae = gettype_vvvvwae;
|
|
|
|
var gettype_vvvvwae = [];
|
|
|
|
gettype_vvvvwae.push(temp_vvvvwae);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvwae))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvwae = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvwae.some(gettype_vvvvwae_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvwaevww_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwaevww_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvwaevww_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwaevww_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwae Some function
|
|
|
|
function gettype_vvvvwae_SomeFunc(gettype_vvvvwae)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvwae == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwaf function
|
|
|
|
function vvvvwaf(gettype_vvvvwaf)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvwaf) && gettype_vvvvwaf.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwaf = gettype_vvvvwaf;
|
|
|
|
var gettype_vvvvwaf = [];
|
|
|
|
gettype_vvvvwaf.push(temp_vvvvwaf);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvwaf))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvwaf = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvwaf.some(gettype_vvvvwaf_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvwafvwx_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwafvwx_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvwafvwx_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwafvwx_required = true;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwaf Some function
|
|
|
|
function gettype_vvvvwaf_SomeFunc(gettype_vvvvwaf)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvwaf == 1 || gettype_vvvvwaf == 2)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwag function
|
|
|
|
function vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvwag) && gettype_vvvvwag.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwag = gettype_vvvvwag;
|
|
|
|
var gettype_vvvvwag = [];
|
|
|
|
gettype_vvvvwag.push(temp_vvvvwag);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvwag))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvwag = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvwag.some(gettype_vvvvwag_SomeFunc);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(add_php_router_parse_vvvvwag) && add_php_router_parse_vvvvwag.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwag = add_php_router_parse_vvvvwag;
|
|
|
|
var add_php_router_parse_vvvvwag = [];
|
|
|
|
add_php_router_parse_vvvvwag.push(temp_vvvvwag);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(add_php_router_parse_vvvvwag))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_router_parse_vvvvwag = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var add_php_router_parse = add_php_router_parse_vvvvwag.some(add_php_router_parse_vvvvwag_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (jform_vvvvwagvwy_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwagvwy_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
|
2019-07-15 20:00:46 +00:00
|
|
|
if (!jform_vvvvwagvwy_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');
|
2019-07-15 20:00:46 +00:00
|
|
|
jform_vvvvwagvwy_required = true;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwag Some function
|
|
|
|
function gettype_vvvvwag_SomeFunc(gettype_vvvvwag)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvwag == 1 || gettype_vvvvwag == 2)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwag Some function
|
|
|
|
function add_php_router_parse_vvvvwag_SomeFunc(add_php_router_parse_vvvvwag)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (add_php_router_parse_vvvvwag == 1)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwai function
|
|
|
|
function vvvvwai(gettype_vvvvwai)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
if (isSet(gettype_vvvvwai) && gettype_vvvvwai.constructor !== Array)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var temp_vvvvwai = gettype_vvvvwai;
|
|
|
|
var gettype_vvvvwai = [];
|
|
|
|
gettype_vvvvwai.push(temp_vvvvwai);
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
else if (!isSet(gettype_vvvvwai))
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype_vvvvwai = [];
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2019-07-15 20:00:46 +00:00
|
|
|
var gettype = gettype_vvvvwai.some(gettype_vvvvwai_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-15 20:00:46 +00:00
|
|
|
// the vvvvwai Some function
|
|
|
|
function gettype_vvvvwai_SomeFunc(gettype_vvvvwai)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-07-15 20:00:46 +00:00
|
|
|
if (gettype_vvvvwai == 1)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-01-30 20:28:43 +00:00
|
|
|
// update required fields
|
|
|
|
function updateFieldRequired(name,status)
|
|
|
|
{
|
|
|
|
var not_required = jQuery('#jform_not_required').val();
|
|
|
|
|
|
|
|
if(status == 1)
|
|
|
|
{
|
|
|
|
if (isSet(not_required) && not_required != 0)
|
|
|
|
{
|
|
|
|
not_required = not_required+','+name;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
not_required = ','+name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (isSet(not_required) && not_required != 0)
|
|
|
|
{
|
|
|
|
not_required = not_required.replace(','+name,'');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_not_required').val(not_required);
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|
2016-01-30 20:28:43 +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_);
|
2016-01-30 20:28:43 +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");
|
2016-01-30 20:28:43 +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) {
|
|
|
|
if (result)
|
|
|
|
{
|
2017-10-06 14:53:22 +00:00
|
|
|
loadSelectionData(result, 'db', key, main, table_, nr_);
|
2016-01-30 20:28:43 +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_server(typpe){
|
2019-07-08 16:05:54 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getDynamicScripts&format=json&raw=true&vdm="+vastDevMod);
|
2018-01-23 22:05:57 +00:00
|
|
|
if(token.length > 0 && typpe.length > 0){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&type='+typpe;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2018-01-23 22:05:57 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
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){
|
|
|
|
getDynamicScripts_server('routerparse').done(function(result) {
|
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_php_router_parse').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
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_server(type){
|
2019-07-08 16:05:54 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&raw=true&vdm="+vastDevMod);
|
2019-01-31 21:44:21 +00:00
|
|
|
if(token.length > 0 && type > 0){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&type='+type;
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'json',
|
|
|
|
data: request,
|
|
|
|
jsonp: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getLinked(){
|
|
|
|
getLinked_server(1).done(function(result) {
|
|
|
|
if(result){
|
|
|
|
jQuery('#display_linked_to').html(result);
|
|
|
|
}
|
|
|
|
});
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|