2016-01-30 20:28:43 +00:00
|
|
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
|
|
|
__ __ _ _____ _ _ __ __ _ _ _
|
|
|
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
|
|
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
|
|
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
|
|
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
|
|
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
|
|
|
| |
|
|
|
|
|_|
|
|
|
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
|
|
|
2017-05-04 22:34:28 +00:00
|
|
|
@version @update number 84 of this MVC
|
|
|
|
@build 4th May, 2017
|
2017-02-01 13:17:04 +00:00
|
|
|
@created 21st May, 2015
|
2016-01-30 20:28:43 +00:00
|
|
|
@package Component Builder
|
|
|
|
@subpackage dynamic_get.js
|
2016-12-22 21:32:13 +00:00
|
|
|
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
2016-01-30 20:28:43 +00:00
|
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
|
|
|
|
Builds Complex Joomla Components
|
|
|
|
|
|
|
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
// Some Global Values
|
2017-04-05 16:26:17 +00:00
|
|
|
jform_vvvvvytvyx_required = false;
|
|
|
|
jform_vvvvvyuvyy_required = false;
|
|
|
|
jform_vvvvvyvvyz_required = false;
|
|
|
|
jform_vvvvvywvza_required = false;
|
|
|
|
jform_vvvvvyxvzb_required = false;
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyyvzc_required = false;
|
|
|
|
jform_vvvvvzdvzd_required = false;
|
2017-04-05 16:26:17 +00:00
|
|
|
jform_vvvvvzfvze_required = false;
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzgvzf_required = false;
|
|
|
|
jform_vvvvvzivzg_required = false;
|
2017-04-05 16:26:17 +00:00
|
|
|
jform_vvvvvzivzh_required = false;
|
|
|
|
jform_vvvvvzjvzi_required = false;
|
|
|
|
jform_vvvvvzkvzj_required = false;
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzlvzk_required = false;
|
|
|
|
jform_vvvvvznvzl_required = false;
|
|
|
|
jform_vvvvvznvzm_required = false;
|
2017-04-05 16:26:17 +00:00
|
|
|
jform_vvvvvznvzn_required = false;
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzovzo_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvyt = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvyt(gettype_vvvvvyt);
|
2016-05-04 04:53:33 +00:00
|
|
|
|
2016-11-22 17:08:17 +00:00
|
|
|
var main_source_vvvvvyu = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvyu(main_source_vvvvvyu);
|
2016-04-22 21:32:02 +00:00
|
|
|
|
2016-11-25 02:56:16 +00:00
|
|
|
var main_source_vvvvvyv = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvyv(main_source_vvvvvyv);
|
2016-09-07 21:20:58 +00:00
|
|
|
|
2016-12-30 10:47:19 +00:00
|
|
|
var main_source_vvvvvyw = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvyw(main_source_vvvvvyw);
|
2016-09-03 21:44:47 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source_vvvvvyx = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvyx(main_source_vvvvvyx);
|
2016-09-11 15:27:04 +00:00
|
|
|
|
2016-11-25 02:56:16 +00:00
|
|
|
var addcalculation_vvvvvyy = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
2017-09-13 00:37:43 +00:00
|
|
|
vvvvvyy(addcalculation_vvvvvyy);
|
2016-10-23 22:48:26 +00:00
|
|
|
|
2016-12-30 10:47:19 +00:00
|
|
|
var addcalculation_vvvvvyz = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvyz = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvyz(addcalculation_vvvvvyz,gettype_vvvvvyz);
|
2016-10-23 22:48:26 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
var addcalculation_vvvvvza = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvza = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvza(addcalculation_vvvvvza,gettype_vvvvvza);
|
2016-10-23 22:48:26 +00:00
|
|
|
|
2016-12-30 10:47:19 +00:00
|
|
|
var main_source_vvvvvzd = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvzd(main_source_vvvvvzd);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source_vvvvvze = jQuery("#jform_main_source").val();
|
|
|
|
vvvvvze(main_source_vvvvvze);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_before_getitem_vvvvvzf = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
2016-12-30 10:47:19 +00:00
|
|
|
var gettype_vvvvvzf = jQuery("#jform_gettype").val();
|
2017-09-13 00:37:43 +00:00
|
|
|
vvvvvzf(add_php_before_getitem_vvvvvzf,gettype_vvvvvzf);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_after_getitem_vvvvvzg = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzg = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzg(add_php_after_getitem_vvvvvzg,gettype_vvvvvzg);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2016-11-22 17:08:17 +00:00
|
|
|
var gettype_vvvvvzi = jQuery("#jform_gettype").val();
|
2017-09-13 00:37:43 +00:00
|
|
|
vvvvvzi(gettype_vvvvvzi);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_getlistquery_vvvvvzj = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
2016-11-25 02:56:16 +00:00
|
|
|
var gettype_vvvvvzj = jQuery("#jform_gettype").val();
|
2017-09-13 00:37:43 +00:00
|
|
|
vvvvvzj(add_php_getlistquery_vvvvvzj,gettype_vvvvvzj);
|
2016-11-22 17:08:17 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_before_getitems_vvvvvzk = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
2016-12-30 10:47:19 +00:00
|
|
|
var gettype_vvvvvzk = jQuery("#jform_gettype").val();
|
2017-09-13 00:37:43 +00:00
|
|
|
vvvvvzk(add_php_before_getitems_vvvvvzk,gettype_vvvvvzk);
|
2016-11-25 02:56:16 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_after_getitems_vvvvvzl = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_vvvvvzl = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzl(add_php_after_getitems_vvvvvzl,gettype_vvvvvzl);
|
2016-12-30 10:47:19 +00:00
|
|
|
|
|
|
|
var gettype_vvvvvzn = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzn(gettype_vvvvvzn);
|
2017-09-13 00:37:43 +00:00
|
|
|
|
|
|
|
var gettype_vvvvvzo = jQuery("#jform_gettype").val();
|
|
|
|
vvvvvzo(gettype_vvvvvzo);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyt function
|
|
|
|
function vvvvvyt(gettype_vvvvvyt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvyt) && gettype_vvvvvyt.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvyt = gettype_vvvvvyt;
|
|
|
|
var gettype_vvvvvyt = [];
|
|
|
|
gettype_vvvvvyt.push(temp_vvvvvyt);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvyt))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvyt = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvyt.some(gettype_vvvvvyt_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvytvyx_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvytvyx_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvytvyx_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvytvyx_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyt Some function
|
|
|
|
function gettype_vvvvvyt_SomeFunc(gettype_vvvvvyt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvyt == 3 || gettype_vvvvvyt == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyu function
|
|
|
|
function vvvvvyu(main_source_vvvvvyu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(main_source_vvvvvyu) && main_source_vvvvvyu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvyu = main_source_vvvvvyu;
|
|
|
|
var main_source_vvvvvyu = [];
|
|
|
|
main_source_vvvvvyu.push(temp_vvvvvyu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(main_source_vvvvvyu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source_vvvvvyu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source = main_source_vvvvvyu.some(main_source_vvvvvyu_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();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvyuvyy_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyuvyy_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_table_main').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvyuvyy_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyuvyy_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyu Some function
|
|
|
|
function main_source_vvvvvyu_SomeFunc(main_source_vvvvvyu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (main_source_vvvvvyu == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyv function
|
|
|
|
function vvvvvyv(main_source_vvvvvyv)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(main_source_vvvvvyv) && main_source_vvvvvyv.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvyv = main_source_vvvvvyv;
|
|
|
|
var main_source_vvvvvyv = [];
|
|
|
|
main_source_vvvvvyv.push(temp_vvvvvyv);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(main_source_vvvvvyv))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source_vvvvvyv = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source = main_source_vvvvvyv.some(main_source_vvvvvyv_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_selection').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvyvvyz_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyvvyz_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_selection').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvyvvyz_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyvvyz_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyv Some function
|
|
|
|
function main_source_vvvvvyv_SomeFunc(main_source_vvvvvyv)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (main_source_vvvvvyv == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyw function
|
|
|
|
function vvvvvyw(main_source_vvvvvyw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(main_source_vvvvvyw) && main_source_vvvvvyw.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvyw = main_source_vvvvvyw;
|
|
|
|
var main_source_vvvvvyw = [];
|
|
|
|
main_source_vvvvvyw.push(temp_vvvvvyw);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(main_source_vvvvvyw))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source_vvvvvyw = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source = main_source_vvvvvyw.some(main_source_vvvvvyw_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();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvywvza_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvywvza_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_table_main').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvywvza_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvywvza_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyw Some function
|
|
|
|
function main_source_vvvvvyw_SomeFunc(main_source_vvvvvyw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (main_source_vvvvvyw == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyx function
|
|
|
|
function vvvvvyx(main_source_vvvvvyx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(main_source_vvvvvyx) && main_source_vvvvvyx.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvyx = main_source_vvvvvyx;
|
|
|
|
var main_source_vvvvvyx = [];
|
|
|
|
main_source_vvvvvyx.push(temp_vvvvvyx);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(main_source_vvvvvyx))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source_vvvvvyx = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source = main_source_vvvvvyx.some(main_source_vvvvvyx_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_selection').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvyxvzb_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyxvzb_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_selection').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvyxvzb_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyxvzb_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyx Some function
|
|
|
|
function main_source_vvvvvyx_SomeFunc(main_source_vvvvvyx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (main_source_vvvvvyx == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyy function
|
|
|
|
function vvvvvyy(addcalculation_vvvvvyy)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (addcalculation_vvvvvyy == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_calculation').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvyyvzc_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyyvzc_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_calculation').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvyyvzc_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvyyvzc_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyz function
|
|
|
|
function vvvvvyz(addcalculation_vvvvvyz,gettype_vvvvvyz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(addcalculation_vvvvvyz) && addcalculation_vvvvvyz.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvyz = addcalculation_vvvvvyz;
|
|
|
|
var addcalculation_vvvvvyz = [];
|
|
|
|
addcalculation_vvvvvyz.push(temp_vvvvvyz);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvvyz))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var addcalculation_vvvvvyz = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var addcalculation = addcalculation_vvvvvyz.some(addcalculation_vvvvvyz_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvyz) && gettype_vvvvvyz.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvyz = gettype_vvvvvyz;
|
|
|
|
var gettype_vvvvvyz = [];
|
|
|
|
gettype_vvvvvyz.push(temp_vvvvvyz);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvyz))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvyz = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvyz.some(gettype_vvvvvyz_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyz Some function
|
|
|
|
function addcalculation_vvvvvyz_SomeFunc(addcalculation_vvvvvyz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (addcalculation_vvvvvyz == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvyz Some function
|
|
|
|
function gettype_vvvvvyz_SomeFunc(gettype_vvvvvyz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvyz == 1 || gettype_vvvvvyz == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvza function
|
|
|
|
function vvvvvza(addcalculation_vvvvvza,gettype_vvvvvza)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(addcalculation_vvvvvza) && addcalculation_vvvvvza.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvza = addcalculation_vvvvvza;
|
|
|
|
var addcalculation_vvvvvza = [];
|
|
|
|
addcalculation_vvvvvza.push(temp_vvvvvza);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(addcalculation_vvvvvza))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var addcalculation_vvvvvza = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var addcalculation = addcalculation_vvvvvza.some(addcalculation_vvvvvza_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvza) && gettype_vvvvvza.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvza = gettype_vvvvvza;
|
|
|
|
var gettype_vvvvvza = [];
|
|
|
|
gettype_vvvvvza.push(temp_vvvvvza);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvza))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvza = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvza.some(gettype_vvvvvza_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvza Some function
|
|
|
|
function addcalculation_vvvvvza_SomeFunc(addcalculation_vvvvvza)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (addcalculation_vvvvvza == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvza Some function
|
|
|
|
function gettype_vvvvvza_SomeFunc(gettype_vvvvvza)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvza == 2 || gettype_vvvvvza == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzd function
|
|
|
|
function vvvvvzd(main_source_vvvvvzd)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(main_source_vvvvvzd) && main_source_vvvvvzd.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +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
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(main_source_vvvvvzd))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source_vvvvvzd = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +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_php_custom_get').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzdvzd_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzdvzd_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_custom_get').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzdvzd_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzdvzd_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +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
|
2017-09-13 00:37:43 +00:00
|
|
|
if (main_source_vvvvvzd == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvze function
|
|
|
|
function vvvvvze(main_source_vvvvvze)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(main_source_vvvvvze) && main_source_vvvvvze.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +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
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(main_source_vvvvvze))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var main_source_vvvvvze = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +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_filter').closest('.control-group').show();
|
|
|
|
jQuery('#jform_global').closest('.control-group').show();
|
|
|
|
jQuery('#jform_where').closest('.control-group').show();
|
|
|
|
jQuery('#jform_join_db_table').closest('.control-group').show();
|
|
|
|
jQuery('#jform_join_view_table').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_filter').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_global').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_where').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_join_db_table').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_join_view_table').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +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
|
2017-09-13 00:37:43 +00:00
|
|
|
if (main_source_vvvvvze == 1 || main_source_vvvvvze == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzf function
|
|
|
|
function vvvvvzf(add_php_before_getitem_vvvvvzf,gettype_vvvvvzf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(add_php_before_getitem_vvvvvzf) && add_php_before_getitem_vvvvvzf.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzf = add_php_before_getitem_vvvvvzf;
|
|
|
|
var add_php_before_getitem_vvvvvzf = [];
|
|
|
|
add_php_before_getitem_vvvvvzf.push(temp_vvvvvzf);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(add_php_before_getitem_vvvvvzf))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_before_getitem_vvvvvzf = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_before_getitem = add_php_before_getitem_vvvvvzf.some(add_php_before_getitem_vvvvvzf_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvzf) && gettype_vvvvvzf.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzf = gettype_vvvvvzf;
|
|
|
|
var gettype_vvvvvzf = [];
|
|
|
|
gettype_vvvvvzf.push(temp_vvvvvzf);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzf))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvzf = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvzf.some(gettype_vvvvvzf_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_before_getitem && gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_getitem').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzfvze_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzfvze_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_getitem').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzfvze_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzfvze_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzf Some function
|
|
|
|
function add_php_before_getitem_vvvvvzf_SomeFunc(add_php_before_getitem_vvvvvzf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (add_php_before_getitem_vvvvvzf == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzf Some function
|
|
|
|
function gettype_vvvvvzf_SomeFunc(gettype_vvvvvzf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvzf == 1 || gettype_vvvvvzf == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzg function
|
|
|
|
function vvvvvzg(add_php_after_getitem_vvvvvzg,gettype_vvvvvzg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(add_php_after_getitem_vvvvvzg) && add_php_after_getitem_vvvvvzg.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzg = add_php_after_getitem_vvvvvzg;
|
|
|
|
var add_php_after_getitem_vvvvvzg = [];
|
|
|
|
add_php_after_getitem_vvvvvzg.push(temp_vvvvvzg);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(add_php_after_getitem_vvvvvzg))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_after_getitem_vvvvvzg = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_after_getitem = add_php_after_getitem_vvvvvzg.some(add_php_after_getitem_vvvvvzg_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvzg) && gettype_vvvvvzg.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzg = gettype_vvvvvzg;
|
|
|
|
var gettype_vvvvvzg = [];
|
|
|
|
gettype_vvvvvzg.push(temp_vvvvvzg);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzg))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvzg = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvzg.some(gettype_vvvvvzg_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_after_getitem && gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_getitem').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzgvzf_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzgvzf_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_getitem').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzgvzf_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzgvzf_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzg Some function
|
|
|
|
function add_php_after_getitem_vvvvvzg_SomeFunc(add_php_after_getitem_vvvvvzg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (add_php_after_getitem_vvvvvzg == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzg Some function
|
|
|
|
function gettype_vvvvvzg_SomeFunc(gettype_vvvvvzg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvzg == 1 || gettype_vvvvvzg == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzi function
|
|
|
|
function vvvvvzi(gettype_vvvvvzi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvzi) && gettype_vvvvvzi.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzi = gettype_vvvvvzi;
|
|
|
|
var gettype_vvvvvzi = [];
|
|
|
|
gettype_vvvvvzi.push(temp_vvvvvzi);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzi))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvzi = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +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_add_php_after_getitem').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzivzg_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzivzg_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzivzh_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzivzh_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzivzg_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzivzg_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzivzh_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzivzh_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzi Some function
|
|
|
|
function gettype_vvvvvzi_SomeFunc(gettype_vvvvvzi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvzi == 1 || gettype_vvvvvzi == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzj function
|
|
|
|
function vvvvvzj(add_php_getlistquery_vvvvvzj,gettype_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(add_php_getlistquery_vvvvvzj) && add_php_getlistquery_vvvvvzj.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzj = add_php_getlistquery_vvvvvzj;
|
|
|
|
var add_php_getlistquery_vvvvvzj = [];
|
|
|
|
add_php_getlistquery_vvvvvzj.push(temp_vvvvvzj);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(add_php_getlistquery_vvvvvzj))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_getlistquery_vvvvvzj = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_getlistquery = add_php_getlistquery_vvvvvzj.some(add_php_getlistquery_vvvvvzj_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvzj) && gettype_vvvvvzj.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzj = gettype_vvvvvzj;
|
|
|
|
var gettype_vvvvvzj = [];
|
|
|
|
gettype_vvvvvzj.push(temp_vvvvvzj);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzj))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvzj = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvzj.some(gettype_vvvvvzj_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_getlistquery && gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_getlistquery').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzjvzi_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzjvzi_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_getlistquery').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzjvzi_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzjvzi_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzj Some function
|
|
|
|
function add_php_getlistquery_vvvvvzj_SomeFunc(add_php_getlistquery_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (add_php_getlistquery_vvvvvzj == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzj Some function
|
|
|
|
function gettype_vvvvvzj_SomeFunc(gettype_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvzj == 2 || gettype_vvvvvzj == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzk function
|
|
|
|
function vvvvvzk(add_php_before_getitems_vvvvvzk,gettype_vvvvvzk)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(add_php_before_getitems_vvvvvzk) && add_php_before_getitems_vvvvvzk.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzk = add_php_before_getitems_vvvvvzk;
|
|
|
|
var add_php_before_getitems_vvvvvzk = [];
|
|
|
|
add_php_before_getitems_vvvvvzk.push(temp_vvvvvzk);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(add_php_before_getitems_vvvvvzk))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_before_getitems_vvvvvzk = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_before_getitems = add_php_before_getitems_vvvvvzk.some(add_php_before_getitems_vvvvvzk_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvzk) && gettype_vvvvvzk.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzk = gettype_vvvvvzk;
|
|
|
|
var gettype_vvvvvzk = [];
|
|
|
|
gettype_vvvvvzk.push(temp_vvvvvzk);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzk))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvzk = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvzk.some(gettype_vvvvvzk_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_before_getitems && gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_getitems').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzkvzj_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzkvzj_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_getitems').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzkvzj_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzkvzj_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzk Some function
|
|
|
|
function add_php_before_getitems_vvvvvzk_SomeFunc(add_php_before_getitems_vvvvvzk)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (add_php_before_getitems_vvvvvzk == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzk Some function
|
|
|
|
function gettype_vvvvvzk_SomeFunc(gettype_vvvvvzk)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvzk == 2 || gettype_vvvvvzk == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzl function
|
|
|
|
function vvvvvzl(add_php_after_getitems_vvvvvzl,gettype_vvvvvzl)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(add_php_after_getitems_vvvvvzl) && add_php_after_getitems_vvvvvzl.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzl = add_php_after_getitems_vvvvvzl;
|
|
|
|
var add_php_after_getitems_vvvvvzl = [];
|
|
|
|
add_php_after_getitems_vvvvvzl.push(temp_vvvvvzl);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(add_php_after_getitems_vvvvvzl))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_after_getitems_vvvvvzl = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var add_php_after_getitems = add_php_after_getitems_vvvvvzl.some(add_php_after_getitems_vvvvvzl_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvzl) && gettype_vvvvvzl.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzl = gettype_vvvvvzl;
|
|
|
|
var gettype_vvvvvzl = [];
|
|
|
|
gettype_vvvvvzl.push(temp_vvvvvzl);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzl))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvzl = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvzl.some(gettype_vvvvvzl_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (add_php_after_getitems && gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_getitems').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzlvzk_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzlvzk_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_getitems').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzlvzk_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzlvzk_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzl Some function
|
|
|
|
function add_php_after_getitems_vvvvvzl_SomeFunc(add_php_after_getitems_vvvvvzl)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (add_php_after_getitems_vvvvvzl == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzl Some function
|
|
|
|
function gettype_vvvvvzl_SomeFunc(gettype_vvvvvzl)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvzl == 2 || gettype_vvvvvzl == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzn function
|
|
|
|
function vvvvvzn(gettype_vvvvvzn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvzn) && gettype_vvvvvzn.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzn = gettype_vvvvvzn;
|
|
|
|
var gettype_vvvvvzn = [];
|
|
|
|
gettype_vvvvvzn.push(temp_vvvvvzn);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzn))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvzn = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvzn.some(gettype_vvvvvzn_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();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvznvzl_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvznvzl_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvznvzm_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvznvzm_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvznvzn_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvznvzn_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvznvzl_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvznvzl_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvznvzm_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvznvzm_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvznvzn_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvznvzn_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzn Some function
|
|
|
|
function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvzn == 2 || gettype_vvvvvzn == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzo function
|
|
|
|
function vvvvvzo(gettype_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
if (isSet(gettype_vvvvvzo) && gettype_vvvvvzo.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var temp_vvvvvzo = gettype_vvvvvzo;
|
|
|
|
var gettype_vvvvvzo = [];
|
|
|
|
gettype_vvvvvzo.push(temp_vvvvvzo);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
else if (!isSet(gettype_vvvvvzo))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype_vvvvvzo = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2017-09-13 00:37:43 +00:00
|
|
|
var gettype = gettype_vvvvvzo.some(gettype_vvvvvzo_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').show();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (jform_vvvvvzovzo_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzovzo_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').hide();
|
2017-09-13 00:37:43 +00:00
|
|
|
if (!jform_vvvvvzovzo_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');
|
2017-09-13 00:37:43 +00:00
|
|
|
jform_vvvvvzovzo_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-13 00:37:43 +00:00
|
|
|
// the vvvvvzo Some function
|
|
|
|
function gettype_vvvvvzo_SomeFunc(gettype_vvvvvzo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-09-13 00:37:43 +00:00
|
|
|
if (gettype_vvvvvzo == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getViewTableColumns(id,asKey,key,rowType,main)
|
|
|
|
{
|
|
|
|
getViewTableColumns_server(id,asKey,rowType).done(function(result) {
|
|
|
|
if (result)
|
|
|
|
{
|
|
|
|
loadSelectionData(result,'view',key,main);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
loadSelectionData(false,'view',key,main);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getDbTableColumns(name,asKey,key,rowType,main)
|
|
|
|
{
|
|
|
|
getDbTableColumns_server(name,asKey,rowType).done(function(result) {
|
|
|
|
if (result)
|
|
|
|
{
|
|
|
|
loadSelectionData(result,'db',key,main);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
loadSelectionData(false,'db',key,main);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
function loadSelectionData(result,type,key,main)
|
|
|
|
{
|
|
|
|
if (main)
|
|
|
|
{
|
|
|
|
var textArea = 'textarea#jform_'+key+'_selection';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-05-04 22:34:28 +00:00
|
|
|
var textArea = 'textarea#'+key+'-jform_join_'+type+'_table_fields_selection';
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
// no update the text area
|
|
|
|
if (result)
|
|
|
|
{
|
|
|
|
jQuery(textArea).val(result);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery(textArea).val('');
|
|
|
|
}
|
|
|
|
}
|