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>
|
|
|
|
* @copyright Copyright (C) 2015 - 2018 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
|
2018-03-11 22:36:14 +00:00
|
|
|
jform_vvvvvzcvyw_required = false;
|
|
|
|
jform_vvvvvzdvyx_required = false;
|
|
|
|
jform_vvvvvzevyy_required = false;
|
|
|
|
jform_vvvvvzfvyz_required = false;
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvzgvza_required = false;
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzhvzb_required = false;
|
|
|
|
jform_vvvvvzmvzc_required = false;
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvzovzd_required = false;
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzpvze_required = false;
|
|
|
|
jform_vvvvvzrvzf_required = false;
|
2018-03-11 22:36:14 +00:00
|
|
|
jform_vvvvvzrvzg_required = false;
|
|
|
|
jform_vvvvvzsvzh_required = false;
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvztvzi_required = false;
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzuvzj_required = false;
|
|
|
|
jform_vvvvvzwvzk_required = false;
|
|
|
|
jform_vvvvvzwvzl_required = false;
|
2018-03-11 22:36:14 +00:00
|
|
|
jform_vvvvvzwvzm_required = false;
|
|
|
|
jform_vvvvvzxvzn_required = false;
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvzyvzo_required = false;
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzzvzp_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzc = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzc(gettype_vvvvvzc);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2018-03-09 03:26:44 +00:00
|
|
|
var main_source_vvvvvzd = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzd(main_source_vvvvvzd);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2018-03-09 03:26:44 +00:00
|
|
|
var main_source_vvvvvze = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvze(main_source_vvvvvze);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var main_source_vvvvvzf = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzf(main_source_vvvvvzf);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source_vvvvvzg = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzg(main_source_vvvvvzg);
|
2016-11-22 17:08:17 +00:00
|
|
|
|
2018-03-09 03:26:44 +00:00
|
|
|
var addcalculation_vvvvvzh = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
2018-07-06 13:46:30 +00:00
|
|
|
vvvvvzh(addcalculation_vvvvvzh);
|
2016-11-25 02:56:16 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var addcalculation_vvvvvzi = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzi = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzi(addcalculation_vvvvvzi,gettype_vvvvvzi);
|
2016-12-30 10:47:19 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var addcalculation_vvvvvzj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzj = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzj(addcalculation_vvvvvzj,gettype_vvvvvzj);
|
2017-09-13 00:37:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var main_source_vvvvvzm = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzm(main_source_vvvvvzm);
|
2017-12-14 23:10:47 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source_vvvvvzn = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzn(main_source_vvvvvzn);
|
2017-12-14 23:10:47 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_before_getitem_vvvvvzo = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
2018-05-11 04:08:14 +00:00
|
|
|
var gettype_vvvvvzo = jQuery("#jform_gettype").val();
|
2018-07-06 13:46:30 +00:00
|
|
|
vvvvvzo(add_php_before_getitem_vvvvvzo,gettype_vvvvvzo);
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_after_getitem_vvvvvzp = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzp(add_php_after_getitem_vvvvvzp,gettype_vvvvvzp);
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2018-03-09 03:26:44 +00:00
|
|
|
var gettype_vvvvvzr = jQuery("#jform_gettype").val();
|
2018-07-06 13:46:30 +00:00
|
|
|
vvvvvzr(gettype_vvvvvzr);
|
2017-10-06 14:53:22 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_getlistquery_vvvvvzs = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
2018-03-09 03:26:44 +00:00
|
|
|
var gettype_vvvvvzs = jQuery("#jform_gettype").val();
|
2018-07-06 13:46:30 +00:00
|
|
|
vvvvvzs(add_php_getlistquery_vvvvvzs,gettype_vvvvvzs);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_before_getitems_vvvvvzt = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
2018-05-11 04:08:14 +00:00
|
|
|
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
|
2018-07-06 13:46:30 +00:00
|
|
|
vvvvvzt(add_php_before_getitems_vvvvvzt,gettype_vvvvvzt);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_after_getitems_vvvvvzu = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzu = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzu(add_php_after_getitems_vvvvvzu,gettype_vvvvvzu);
|
2018-03-09 03:26:44 +00:00
|
|
|
|
|
|
|
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzw(gettype_vvvvvzw);
|
|
|
|
|
|
|
|
var gettype_vvvvvzx = jQuery("#jform_gettype").val();
|
2018-05-11 04:08:14 +00:00
|
|
|
vvvvvzx(gettype_vvvvvzx);
|
|
|
|
|
|
|
|
var gettype_vvvvvzy = jQuery("#jform_gettype").val();
|
2018-07-06 13:46:30 +00:00
|
|
|
vvvvvzy(gettype_vvvvvzy);
|
|
|
|
|
|
|
|
var gettype_vvvvvzz = jQuery("#jform_gettype").val();
|
|
|
|
var add_php_router_parse_vvvvvzz = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
|
|
|
vvvvvzz(gettype_vvvvvzz,add_php_router_parse_vvvvvzz);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzc function
|
|
|
|
function vvvvvzc(gettype_vvvvvzc)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzc) && gettype_vvvvvzc.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzc = gettype_vvvvvzc;
|
|
|
|
var gettype_vvvvvzc = [];
|
|
|
|
gettype_vvvvvzc.push(temp_vvvvvzc);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzc))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzc = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzc.some(gettype_vvvvvzc_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzcvyw_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzcvyw_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzcvyw_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzcvyw_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzc Some function
|
|
|
|
function gettype_vvvvvzc_SomeFunc(gettype_vvvvvzc)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzc == 3 || gettype_vvvvvzc == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzd function
|
|
|
|
function vvvvvzd(main_source_vvvvvzd)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(main_source_vvvvvzd) && main_source_vvvvvzd.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzd = main_source_vvvvvzd;
|
|
|
|
var main_source_vvvvvzd = [];
|
|
|
|
main_source_vvvvvzd.push(temp_vvvvvzd);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzd))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source_vvvvvzd = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source = main_source_vvvvvzd.some(main_source_vvvvvzd_SomeFunc);
|
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-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzdvyx_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzdvyx_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_table_main').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzdvyx_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzdvyx_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzd Some function
|
|
|
|
function main_source_vvvvvzd_SomeFunc(main_source_vvvvvzd)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (main_source_vvvvvzd == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvze function
|
|
|
|
function vvvvvze(main_source_vvvvvze)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(main_source_vvvvvze) && main_source_vvvvvze.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvze = main_source_vvvvvze;
|
|
|
|
var main_source_vvvvvze = [];
|
|
|
|
main_source_vvvvvze.push(temp_vvvvvze);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(main_source_vvvvvze))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source_vvvvvze = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source = main_source_vvvvvze.some(main_source_vvvvvze_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-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzevyy_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzevyy_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_selection').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzevyy_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzevyy_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvze Some function
|
|
|
|
function main_source_vvvvvze_SomeFunc(main_source_vvvvvze)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (main_source_vvvvvze == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzf function
|
|
|
|
function vvvvvzf(main_source_vvvvvzf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(main_source_vvvvvzf) && main_source_vvvvvzf.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzf = main_source_vvvvvzf;
|
|
|
|
var main_source_vvvvvzf = [];
|
|
|
|
main_source_vvvvvzf.push(temp_vvvvvzf);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzf))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source_vvvvvzf = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source = main_source_vvvvvzf.some(main_source_vvvvvzf_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-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzfvyz_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzfvyz_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_table_main').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzfvyz_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzfvyz_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzf Some function
|
|
|
|
function main_source_vvvvvzf_SomeFunc(main_source_vvvvvzf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (main_source_vvvvvzf == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzg function
|
|
|
|
function vvvvvzg(main_source_vvvvvzg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(main_source_vvvvvzg) && main_source_vvvvvzg.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzg = main_source_vvvvvzg;
|
|
|
|
var main_source_vvvvvzg = [];
|
|
|
|
main_source_vvvvvzg.push(temp_vvvvvzg);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzg))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source_vvvvvzg = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source = main_source_vvvvvzg.some(main_source_vvvvvzg_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-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzgvza_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzgvza_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_selection').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzgvza_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzgvza_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzg Some function
|
|
|
|
function main_source_vvvvvzg_SomeFunc(main_source_vvvvvzg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (main_source_vvvvvzg == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzh function
|
|
|
|
function vvvvvzh(addcalculation_vvvvvzh)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (addcalculation_vvvvvzh == 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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzhvzb_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_calculation',0);
|
|
|
|
jQuery('#jform_php_calculation').prop('required','required');
|
|
|
|
jQuery('#jform_php_calculation').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_calculation').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzhvzb_required = false;
|
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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzhvzb_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_calculation',1);
|
|
|
|
jQuery('#jform_php_calculation').removeAttr('required');
|
|
|
|
jQuery('#jform_php_calculation').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_calculation').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzhvzb_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzi function
|
|
|
|
function vvvvvzi(addcalculation_vvvvvzi,gettype_vvvvvzi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(addcalculation_vvvvvzi) && addcalculation_vvvvvzi.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzi = addcalculation_vvvvvzi;
|
|
|
|
var addcalculation_vvvvvzi = [];
|
|
|
|
addcalculation_vvvvvzi.push(temp_vvvvvzi);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvvzi))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var addcalculation_vvvvvzi = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var addcalculation = addcalculation_vvvvvzi.some(addcalculation_vvvvvzi_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzi) && gettype_vvvvvzi.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzi = gettype_vvvvvzi;
|
|
|
|
var gettype_vvvvvzi = [];
|
|
|
|
gettype_vvvvvzi.push(temp_vvvvvzi);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzi))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzi = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzi.some(gettype_vvvvvzi_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzi Some function
|
|
|
|
function addcalculation_vvvvvzi_SomeFunc(addcalculation_vvvvvzi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (addcalculation_vvvvvzi == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzi Some function
|
|
|
|
function gettype_vvvvvzi_SomeFunc(gettype_vvvvvzi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzi == 1 || gettype_vvvvvzi == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzj function
|
|
|
|
function vvvvvzj(addcalculation_vvvvvzj,gettype_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(addcalculation_vvvvvzj) && addcalculation_vvvvvzj.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzj = addcalculation_vvvvvzj;
|
|
|
|
var addcalculation_vvvvvzj = [];
|
|
|
|
addcalculation_vvvvvzj.push(temp_vvvvvzj);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvvzj))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var addcalculation_vvvvvzj = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var addcalculation = addcalculation_vvvvvzj.some(addcalculation_vvvvvzj_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzj) && gettype_vvvvvzj.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzj = gettype_vvvvvzj;
|
|
|
|
var gettype_vvvvvzj = [];
|
|
|
|
gettype_vvvvvzj.push(temp_vvvvvzj);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzj))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzj = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzj.some(gettype_vvvvvzj_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzj Some function
|
|
|
|
function addcalculation_vvvvvzj_SomeFunc(addcalculation_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (addcalculation_vvvvvzj == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzj Some function
|
|
|
|
function gettype_vvvvvzj_SomeFunc(gettype_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzj == 2 || gettype_vvvvvzj == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzm function
|
|
|
|
function vvvvvzm(main_source_vvvvvzm)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(main_source_vvvvvzm) && main_source_vvvvvzm.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +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
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzm))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source_vvvvvzm = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +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)
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_custom_get-lbl').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzmvzc_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_custom_get',0);
|
|
|
|
jQuery('#jform_php_custom_get').prop('required','required');
|
|
|
|
jQuery('#jform_php_custom_get').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_custom_get').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzmvzc_required = false;
|
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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzmvzc_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_custom_get',1);
|
|
|
|
jQuery('#jform_php_custom_get').removeAttr('required');
|
|
|
|
jQuery('#jform_php_custom_get').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_custom_get').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzmvzc_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +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
|
2018-07-06 13:46:30 +00:00
|
|
|
if (main_source_vvvvvzm == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzn function
|
|
|
|
function vvvvvzn(main_source_vvvvvzn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(main_source_vvvvvzn) && main_source_vvvvvzn.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +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
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzn))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var main_source_vvvvvzn = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +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)
|
|
|
|
{
|
2017-10-06 14:53:22 +00:00
|
|
|
jQuery('#jform_filter-lbl').closest('.control-group').show();
|
|
|
|
jQuery('#jform_global-lbl').closest('.control-group').show();
|
|
|
|
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();
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +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
|
2018-07-06 13:46:30 +00:00
|
|
|
if (main_source_vvvvvzn == 1 || main_source_vvvvvzn == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzo function
|
|
|
|
function vvvvvzo(add_php_before_getitem_vvvvvzo,gettype_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(add_php_before_getitem_vvvvvzo) && add_php_before_getitem_vvvvvzo.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzo = add_php_before_getitem_vvvvvzo;
|
|
|
|
var add_php_before_getitem_vvvvvzo = [];
|
|
|
|
add_php_before_getitem_vvvvvzo.push(temp_vvvvvzo);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(add_php_before_getitem_vvvvvzo))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_before_getitem_vvvvvzo = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_before_getitem = add_php_before_getitem_vvvvvzo.some(add_php_before_getitem_vvvvvzo_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzo) && gettype_vvvvvzo.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzo = gettype_vvvvvzo;
|
|
|
|
var gettype_vvvvvzo = [];
|
|
|
|
gettype_vvvvvzo.push(temp_vvvvvzo);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzo))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzo = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzo.some(gettype_vvvvvzo_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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzovzd_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_getitem',0);
|
|
|
|
jQuery('#jform_php_before_getitem').prop('required','required');
|
|
|
|
jQuery('#jform_php_before_getitem').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_before_getitem').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzovzd_required = false;
|
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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzovzd_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_getitem',1);
|
|
|
|
jQuery('#jform_php_before_getitem').removeAttr('required');
|
|
|
|
jQuery('#jform_php_before_getitem').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_before_getitem').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzovzd_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzo Some function
|
|
|
|
function add_php_before_getitem_vvvvvzo_SomeFunc(add_php_before_getitem_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_before_getitem_vvvvvzo == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzo Some function
|
|
|
|
function gettype_vvvvvzo_SomeFunc(gettype_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzo == 1 || gettype_vvvvvzo == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzp function
|
|
|
|
function vvvvvzp(add_php_after_getitem_vvvvvzp,gettype_vvvvvzp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(add_php_after_getitem_vvvvvzp) && add_php_after_getitem_vvvvvzp.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzp = add_php_after_getitem_vvvvvzp;
|
|
|
|
var add_php_after_getitem_vvvvvzp = [];
|
|
|
|
add_php_after_getitem_vvvvvzp.push(temp_vvvvvzp);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(add_php_after_getitem_vvvvvzp))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_after_getitem_vvvvvzp = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_after_getitem = add_php_after_getitem_vvvvvzp.some(add_php_after_getitem_vvvvvzp_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzp) && gettype_vvvvvzp.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzp = gettype_vvvvvzp;
|
|
|
|
var gettype_vvvvvzp = [];
|
|
|
|
gettype_vvvvvzp.push(temp_vvvvvzp);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzp))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzp = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzp.some(gettype_vvvvvzp_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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzpvze_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_after_getitem',0);
|
|
|
|
jQuery('#jform_php_after_getitem').prop('required','required');
|
|
|
|
jQuery('#jform_php_after_getitem').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_after_getitem').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzpvze_required = false;
|
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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzpvze_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_after_getitem',1);
|
|
|
|
jQuery('#jform_php_after_getitem').removeAttr('required');
|
|
|
|
jQuery('#jform_php_after_getitem').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_after_getitem').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzpvze_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzp Some function
|
|
|
|
function add_php_after_getitem_vvvvvzp_SomeFunc(add_php_after_getitem_vvvvvzp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_after_getitem_vvvvvzp == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzp Some function
|
|
|
|
function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzp == 1 || gettype_vvvvvzp == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzr function
|
|
|
|
function vvvvvzr(gettype_vvvvvzr)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzr) && gettype_vvvvvzr.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzr = gettype_vvvvvzr;
|
|
|
|
var gettype_vvvvvzr = [];
|
|
|
|
gettype_vvvvvzr.push(temp_vvvvvzr);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzr))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzr = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzr.some(gettype_vvvvvzr_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-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzrvzf_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzrvzf_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzrvzg_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzrvzg_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzrvzf_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzrvzf_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzrvzg_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzrvzg_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzr Some function
|
|
|
|
function gettype_vvvvvzr_SomeFunc(gettype_vvvvvzr)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzr == 1 || gettype_vvvvvzr == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzs function
|
|
|
|
function vvvvvzs(add_php_getlistquery_vvvvvzs,gettype_vvvvvzs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(add_php_getlistquery_vvvvvzs) && add_php_getlistquery_vvvvvzs.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzs = add_php_getlistquery_vvvvvzs;
|
|
|
|
var add_php_getlistquery_vvvvvzs = [];
|
|
|
|
add_php_getlistquery_vvvvvzs.push(temp_vvvvvzs);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(add_php_getlistquery_vvvvvzs))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_getlistquery_vvvvvzs = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_getlistquery = add_php_getlistquery_vvvvvzs.some(add_php_getlistquery_vvvvvzs_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzs = gettype_vvvvvzs;
|
|
|
|
var gettype_vvvvvzs = [];
|
|
|
|
gettype_vvvvvzs.push(temp_vvvvvzs);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzs))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzs = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzs.some(gettype_vvvvvzs_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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzsvzh_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getlistquery',0);
|
|
|
|
jQuery('#jform_php_getlistquery').prop('required','required');
|
|
|
|
jQuery('#jform_php_getlistquery').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_getlistquery').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzsvzh_required = false;
|
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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzsvzh_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getlistquery',1);
|
|
|
|
jQuery('#jform_php_getlistquery').removeAttr('required');
|
|
|
|
jQuery('#jform_php_getlistquery').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_getlistquery').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzsvzh_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzs Some function
|
|
|
|
function add_php_getlistquery_vvvvvzs_SomeFunc(add_php_getlistquery_vvvvvzs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_getlistquery_vvvvvzs == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzs Some function
|
|
|
|
function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzs == 2 || gettype_vvvvvzs == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzt function
|
|
|
|
function vvvvvzt(add_php_before_getitems_vvvvvzt,gettype_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(add_php_before_getitems_vvvvvzt) && add_php_before_getitems_vvvvvzt.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzt = add_php_before_getitems_vvvvvzt;
|
|
|
|
var add_php_before_getitems_vvvvvzt = [];
|
|
|
|
add_php_before_getitems_vvvvvzt.push(temp_vvvvvzt);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(add_php_before_getitems_vvvvvzt))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_before_getitems_vvvvvzt = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_before_getitems = add_php_before_getitems_vvvvvzt.some(add_php_before_getitems_vvvvvzt_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzt) && gettype_vvvvvzt.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzt = gettype_vvvvvzt;
|
|
|
|
var gettype_vvvvvzt = [];
|
|
|
|
gettype_vvvvvzt.push(temp_vvvvvzt);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzt))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzt = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +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_getitems && gettype)
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvztvzi_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_getitems',0);
|
|
|
|
jQuery('#jform_php_before_getitems').prop('required','required');
|
|
|
|
jQuery('#jform_php_before_getitems').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_before_getitems').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvztvzi_required = false;
|
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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvztvzi_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_getitems',1);
|
|
|
|
jQuery('#jform_php_before_getitems').removeAttr('required');
|
|
|
|
jQuery('#jform_php_before_getitems').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_before_getitems').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvztvzi_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzt Some function
|
|
|
|
function add_php_before_getitems_vvvvvzt_SomeFunc(add_php_before_getitems_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_before_getitems_vvvvvzt == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzt Some function
|
|
|
|
function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzt == 2 || gettype_vvvvvzt == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzu function
|
|
|
|
function vvvvvzu(add_php_after_getitems_vvvvvzu,gettype_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(add_php_after_getitems_vvvvvzu) && add_php_after_getitems_vvvvvzu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzu = add_php_after_getitems_vvvvvzu;
|
|
|
|
var add_php_after_getitems_vvvvvzu = [];
|
|
|
|
add_php_after_getitems_vvvvvzu.push(temp_vvvvvzu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(add_php_after_getitems_vvvvvzu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_after_getitems_vvvvvzu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_after_getitems = add_php_after_getitems_vvvvvzu.some(add_php_after_getitems_vvvvvzu_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzu) && gettype_vvvvvzu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzu = gettype_vvvvvzu;
|
|
|
|
var gettype_vvvvvzu = [];
|
|
|
|
gettype_vvvvvzu.push(temp_vvvvvzu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +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_getitems && gettype)
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzuvzj_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_after_getitems',0);
|
|
|
|
jQuery('#jform_php_after_getitems').prop('required','required');
|
|
|
|
jQuery('#jform_php_after_getitems').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_after_getitems').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzuvzj_required = false;
|
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();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzuvzj_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_after_getitems',1);
|
|
|
|
jQuery('#jform_php_after_getitems').removeAttr('required');
|
|
|
|
jQuery('#jform_php_after_getitems').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_after_getitems').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzuvzj_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzu Some function
|
|
|
|
function add_php_after_getitems_vvvvvzu_SomeFunc(add_php_after_getitems_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_after_getitems_vvvvvzu == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzu Some function
|
|
|
|
function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzu == 2 || gettype_vvvvvzu == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzw function
|
|
|
|
function vvvvvzw(gettype_vvvvvzw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzw = gettype_vvvvvzw;
|
|
|
|
var gettype_vvvvvzw = [];
|
|
|
|
gettype_vvvvvzw.push(temp_vvvvvzw);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzw))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzw = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +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_getitems').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzwvzk_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzwvzk_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzwvzl_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzwvzl_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzwvzm_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzwvzm_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzwvzk_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzwvzk_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzwvzl_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzwvzl_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzwvzm_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzwvzm_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzw Some function
|
|
|
|
function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzw == 2 || gettype_vvvvvzw == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzx function
|
|
|
|
function vvvvvzx(gettype_vvvvvzx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzx) && gettype_vvvvvzx.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzx = gettype_vvvvvzx;
|
|
|
|
var gettype_vvvvvzx = [];
|
|
|
|
gettype_vvvvvzx.push(temp_vvvvvzx);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzx))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzx = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzx.some(gettype_vvvvvzx_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').show();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzxvzn_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzxvzn_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzxvzn_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzxvzn_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzx Some function
|
|
|
|
function gettype_vvvvvzx_SomeFunc(gettype_vvvvvzx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzx == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzy function
|
|
|
|
function vvvvvzy(gettype_vvvvvzy)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzy = gettype_vvvvvzy;
|
|
|
|
var gettype_vvvvvzy = [];
|
|
|
|
gettype_vvvvvzy.push(temp_vvvvvzy);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzy))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzy = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzy.some(gettype_vvvvvzy_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-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzyvzo_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzyvzo_required = false;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_router_parse').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzyvzo_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzyvzo_required = true;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzy Some function
|
|
|
|
function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzy == 1 || gettype_vvvvvzy == 2)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzz function
|
|
|
|
function vvvvvzz(gettype_vvvvvzz,add_php_router_parse_vvvvvzz)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(gettype_vvvvvzz) && gettype_vvvvvzz.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzz = gettype_vvvvvzz;
|
|
|
|
var gettype_vvvvvzz = [];
|
|
|
|
gettype_vvvvvzz.push(temp_vvvvvzz);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzz))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype_vvvvvzz = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var gettype = gettype_vvvvvzz.some(gettype_vvvvvzz_SomeFunc);
|
2018-01-23 22:05:57 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
if (isSet(add_php_router_parse_vvvvvzz) && add_php_router_parse_vvvvvzz.constructor !== Array)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var temp_vvvvvzz = add_php_router_parse_vvvvvzz;
|
|
|
|
var add_php_router_parse_vvvvvzz = [];
|
|
|
|
add_php_router_parse_vvvvvzz.push(temp_vvvvvzz);
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
else if (!isSet(add_php_router_parse_vvvvvzz))
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_router_parse_vvvvvzz = [];
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_router_parse = add_php_router_parse_vvvvvzz.some(add_php_router_parse_vvvvvzz_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-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvzzvzp_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzzvzp_required = false;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_router_parse').closest('.control-group').hide();
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvzzvzp_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');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvzzvzp_required = true;
|
2018-01-23 22:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzz Some function
|
|
|
|
function gettype_vvvvvzz_SomeFunc(gettype_vvvvvzz)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (gettype_vvvvvzz == 1 || gettype_vvvvvzz == 2)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvzz Some function
|
|
|
|
function add_php_router_parse_vvvvvzz_SomeFunc(add_php_router_parse_vvvvvzz)
|
2018-01-23 22:05:57 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_router_parse_vvvvvzz == 1)
|
2018-01-23 22:05:57 +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);
|
2018-01-15 15:54:05 +00:00
|
|
|
});
|
2018-02-27 12:17:38 +00:00
|
|
|
|
2018-01-15 15:54:05 +00:00
|
|
|
function getLinked_server(type){
|
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&vdm="+vastDevMod;
|
|
|
|
if(token.length > 0 && type > 0){
|
|
|
|
var request = 'token='+token+'&type='+type;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'jsonp',
|
|
|
|
data: request,
|
|
|
|
jsonp: 'callback'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getLinked(){
|
|
|
|
getLinked_server(1).done(function(result) {
|
|
|
|
if(result){
|
|
|
|
jQuery('#display_linked_to').html(result);
|
|
|
|
}
|
|
|
|
});
|
2018-02-27 12:17:38 +00:00
|
|
|
}
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2016-01-30 20:28:43 +00:00
|
|
|
function getViewTableColumns_server(viewId,asKey,rowType)
|
|
|
|
{
|
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.viewTableColumns&format=json";
|
|
|
|
if (token.length > 0 && viewId > 0 && asKey.length > 0)
|
|
|
|
{
|
|
|
|
var request = 'token='+token+'&as='+asKey+'&type='+rowType+'&id='+viewId;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'jsonp',
|
|
|
|
data: request,
|
|
|
|
jsonp: 'callback'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
function getViewTableColumns(id,asKey,key,rowType,main, table_, nr_)
|
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)
|
|
|
|
{
|
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dbTableColumns&format=json";
|
|
|
|
if (token.length > 0 && name.length > 0 && asKey.length > 0)
|
|
|
|
{
|
|
|
|
var request = 'token='+token+'&as='+asKey+'&type='+rowType+'&name='+name;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'jsonp',
|
|
|
|
data: request,
|
|
|
|
jsonp: 'callback'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
function getDbTableColumns(name, asKey, key, rowType, main, table_, nr_)
|
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
|
|
|
}
|
|
|
|
function updateSubItems(fieldName, fieldNr, table_, nr_){
|
|
|
|
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){
|
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicScripts&format=json&vdm="+vastDevMod;
|
|
|
|
if(token.length > 0 && typpe.length > 0){
|
|
|
|
var request = 'token='+token+'&type='+typpe;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'jsonp',
|
|
|
|
data: request,
|
|
|
|
jsonp: 'callback'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|