Component-Builder/admin/models/forms/dynamic_get.js

1787 lines
51 KiB
JavaScript
Raw Normal View History

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 - 2019 Vast Development Method. All rights reserved.
2018-05-18 06:28:27 +00:00
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
2016-01-30 20:28:43 +00:00
// Some Global Values
jform_vvvvvzfvzb_required = false;
jform_vvvvvzhvzc_required = false;
jform_vvvvvzivzd_required = false;
jform_vvvvvzjvze_required = false;
jform_vvvvvzkvzf_required = false;
jform_vvvvvzlvzg_required = false;
jform_vvvvvzqvzh_required = false;
jform_vvvvvzsvzi_required = false;
jform_vvvvvztvzj_required = false;
jform_vvvvvzvvzk_required = false;
jform_vvvvvzvvzl_required = false;
jform_vvvvvzwvzm_required = false;
jform_vvvvvzxvzn_required = false;
jform_vvvvvzyvzo_required = false;
jform_vvvvwaavzp_required = false;
jform_vvvvwaavzq_required = false;
jform_vvvvwaavzr_required = false;
jform_vvvvwabvzs_required = false;
jform_vvvvwacvzt_required = false;
jform_vvvvwadvzu_required = false;
2016-01-30 20:28:43 +00:00
// Initial Script
jQuery(document).ready(function()
{
var gettype_vvvvvzf = jQuery("#jform_gettype").val();
vvvvvzf(gettype_vvvvvzf);
var main_source_vvvvvzg = jQuery("#jform_main_source").val();
vvvvvzg(main_source_vvvvvzg);
var main_source_vvvvvzh = jQuery("#jform_main_source").val();
vvvvvzh(main_source_vvvvvzh);
var main_source_vvvvvzi = jQuery("#jform_main_source").val();
vvvvvzi(main_source_vvvvvzi);
var main_source_vvvvvzj = jQuery("#jform_main_source").val();
vvvvvzj(main_source_vvvvvzj);
var main_source_vvvvvzk = jQuery("#jform_main_source").val();
vvvvvzk(main_source_vvvvvzk);
var addcalculation_vvvvvzl = jQuery("#jform_addcalculation input[type='radio']:checked").val();
vvvvvzl(addcalculation_vvvvvzl);
var addcalculation_vvvvvzm = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvzm = jQuery("#jform_gettype").val();
vvvvvzm(addcalculation_vvvvvzm,gettype_vvvvvzm);
var addcalculation_vvvvvzn = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvzn = jQuery("#jform_gettype").val();
vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn);
var main_source_vvvvvzq = jQuery("#jform_main_source").val();
vvvvvzq(main_source_vvvvvzq);
var main_source_vvvvvzr = jQuery("#jform_main_source").val();
vvvvvzr(main_source_vvvvvzr);
var add_php_before_getitem_vvvvvzs = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
var gettype_vvvvvzs = jQuery("#jform_gettype").val();
vvvvvzs(add_php_before_getitem_vvvvvzs,gettype_vvvvvzs);
var add_php_after_getitem_vvvvvzt = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
vvvvvzt(add_php_after_getitem_vvvvvzt,gettype_vvvvvzt);
var gettype_vvvvvzv = jQuery("#jform_gettype").val();
vvvvvzv(gettype_vvvvvzv);
var add_php_getlistquery_vvvvvzw = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
vvvvvzw(add_php_getlistquery_vvvvvzw,gettype_vvvvvzw);
var add_php_before_getitems_vvvvvzx = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
var gettype_vvvvvzx = jQuery("#jform_gettype").val();
vvvvvzx(add_php_before_getitems_vvvvvzx,gettype_vvvvvzx);
var add_php_after_getitems_vvvvvzy = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
var gettype_vvvvvzy = jQuery("#jform_gettype").val();
vvvvvzy(add_php_after_getitems_vvvvvzy,gettype_vvvvvzy);
var gettype_vvvvwaa = jQuery("#jform_gettype").val();
vvvvwaa(gettype_vvvvwaa);
var gettype_vvvvwab = jQuery("#jform_gettype").val();
vvvvwab(gettype_vvvvwab);
var gettype_vvvvwac = jQuery("#jform_gettype").val();
vvvvwac(gettype_vvvvwac);
var gettype_vvvvwad = jQuery("#jform_gettype").val();
var add_php_router_parse_vvvvwad = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
vvvvwad(gettype_vvvvwad,add_php_router_parse_vvvvwad);
var gettype_vvvvwaf = jQuery("#jform_gettype").val();
vvvvwaf(gettype_vvvvwaf);
2016-01-30 20:28:43 +00:00
});
// the vvvvvzf function
function vvvvvzf(gettype_vvvvvzf)
2016-01-30 20:28:43 +00:00
{
if (isSet(gettype_vvvvvzf) && gettype_vvvvvzf.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzf = gettype_vvvvvzf;
var gettype_vvvvvzf = [];
gettype_vvvvvzf.push(temp_vvvvvzf);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzf))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzf = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvvzf.some(gettype_vvvvvzf_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (gettype)
{
jQuery('#jform_getcustom').closest('.control-group').show();
// add required attribute to getcustom field
if (jform_vvvvvzfvzb_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');
jform_vvvvvzfvzb_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_getcustom').closest('.control-group').hide();
// remove required attribute from getcustom field
if (!jform_vvvvvzfvzb_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');
jform_vvvvvzfvzb_required = true;
2016-01-30 20:28: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
if (gettype_vvvvvzf == 3 || gettype_vvvvvzf == 4)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzg function
function vvvvvzg(main_source_vvvvvzg)
2016-01-30 20:28:43 +00:00
{
if (isSet(main_source_vvvvvzg) && main_source_vvvvvzg.constructor !== Array)
2016-01-30 20:28:43 +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
}
else if (!isSet(main_source_vvvvvzg))
2016-01-30 20:28:43 +00:00
{
var main_source_vvvvvzg = [];
2016-01-30 20:28:43 +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_select_all').closest('.control-group').show();
}
else
{
jQuery('#jform_select_all').closest('.control-group').hide();
}
}
// the vvvvvzg Some function
function main_source_vvvvvzg_SomeFunc(main_source_vvvvvzg)
{
// set the function logic
if (main_source_vvvvvzg == 1 || main_source_vvvvvzg == 2)
{
return true;
}
return false;
}
// the vvvvvzh function
function vvvvvzh(main_source_vvvvvzh)
{
if (isSet(main_source_vvvvvzh) && main_source_vvvvvzh.constructor !== Array)
{
var temp_vvvvvzh = main_source_vvvvvzh;
var main_source_vvvvvzh = [];
main_source_vvvvvzh.push(temp_vvvvvzh);
}
else if (!isSet(main_source_vvvvvzh))
{
var main_source_vvvvvzh = [];
}
var main_source = main_source_vvvvvzh.some(main_source_vvvvvzh_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();
// add required attribute to view_table_main field
if (jform_vvvvvzhvzc_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');
jform_vvvvvzhvzc_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_view_table_main').closest('.control-group').hide();
// remove required attribute from view_table_main field
if (!jform_vvvvvzhvzc_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');
jform_vvvvvzhvzc_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzh Some function
function main_source_vvvvvzh_SomeFunc(main_source_vvvvvzh)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (main_source_vvvvvzh == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzi function
function vvvvvzi(main_source_vvvvvzi)
2016-01-30 20:28:43 +00:00
{
if (isSet(main_source_vvvvvzi) && main_source_vvvvvzi.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzi = main_source_vvvvvzi;
var main_source_vvvvvzi = [];
main_source_vvvvvzi.push(temp_vvvvvzi);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(main_source_vvvvvzi))
2016-01-30 20:28:43 +00:00
{
var main_source_vvvvvzi = [];
2016-01-30 20:28:43 +00:00
}
var main_source = main_source_vvvvvzi.some(main_source_vvvvvzi_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (main_source)
{
jQuery('#jform_view_selection').closest('.control-group').show();
// add required attribute to view_selection field
if (jform_vvvvvzivzd_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');
jform_vvvvvzivzd_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_view_selection').closest('.control-group').hide();
// remove required attribute from view_selection field
if (!jform_vvvvvzivzd_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');
jform_vvvvvzivzd_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzi Some function
function main_source_vvvvvzi_SomeFunc(main_source_vvvvvzi)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (main_source_vvvvvzi == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzj function
function vvvvvzj(main_source_vvvvvzj)
2016-01-30 20:28:43 +00:00
{
if (isSet(main_source_vvvvvzj) && main_source_vvvvvzj.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzj = main_source_vvvvvzj;
var main_source_vvvvvzj = [];
main_source_vvvvvzj.push(temp_vvvvvzj);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(main_source_vvvvvzj))
2016-01-30 20:28:43 +00:00
{
var main_source_vvvvvzj = [];
2016-01-30 20:28:43 +00:00
}
var main_source = main_source_vvvvvzj.some(main_source_vvvvvzj_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (main_source)
{
jQuery('#jform_db_table_main').closest('.control-group').show();
// add required attribute to db_table_main field
if (jform_vvvvvzjvze_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');
jform_vvvvvzjvze_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_db_table_main').closest('.control-group').hide();
// remove required attribute from db_table_main field
if (!jform_vvvvvzjvze_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');
jform_vvvvvzjvze_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzj Some function
function main_source_vvvvvzj_SomeFunc(main_source_vvvvvzj)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (main_source_vvvvvzj == 2)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzk function
function vvvvvzk(main_source_vvvvvzk)
2016-01-30 20:28:43 +00:00
{
if (isSet(main_source_vvvvvzk) && main_source_vvvvvzk.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzk = main_source_vvvvvzk;
var main_source_vvvvvzk = [];
main_source_vvvvvzk.push(temp_vvvvvzk);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(main_source_vvvvvzk))
2016-01-30 20:28:43 +00:00
{
var main_source_vvvvvzk = [];
2016-01-30 20:28:43 +00:00
}
var main_source = main_source_vvvvvzk.some(main_source_vvvvvzk_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (main_source)
{
jQuery('#jform_db_selection').closest('.control-group').show();
// add required attribute to db_selection field
if (jform_vvvvvzkvzf_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');
jform_vvvvvzkvzf_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_db_selection').closest('.control-group').hide();
// remove required attribute from db_selection field
if (!jform_vvvvvzkvzf_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');
jform_vvvvvzkvzf_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzk Some function
function main_source_vvvvvzk_SomeFunc(main_source_vvvvvzk)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (main_source_vvvvvzk == 2)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzl function
function vvvvvzl(addcalculation_vvvvvzl)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (addcalculation_vvvvvzl == 1)
2016-01-30 20:28:43 +00:00
{
jQuery('#jform_php_calculation-lbl').closest('.control-group').show();
// add required attribute to php_calculation field
if (jform_vvvvvzlvzg_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');
jform_vvvvvzlvzg_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_php_calculation-lbl').closest('.control-group').hide();
// remove required attribute from php_calculation field
if (!jform_vvvvvzlvzg_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');
jform_vvvvvzlvzg_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzm function
function vvvvvzm(addcalculation_vvvvvzm,gettype_vvvvvzm)
2016-01-30 20:28:43 +00:00
{
if (isSet(addcalculation_vvvvvzm) && addcalculation_vvvvvzm.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzm = addcalculation_vvvvvzm;
var addcalculation_vvvvvzm = [];
addcalculation_vvvvvzm.push(temp_vvvvvzm);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(addcalculation_vvvvvzm))
2016-01-30 20:28:43 +00:00
{
var addcalculation_vvvvvzm = [];
2016-01-30 20:28:43 +00:00
}
var addcalculation = addcalculation_vvvvvzm.some(addcalculation_vvvvvzm_SomeFunc);
2016-01-30 20:28:43 +00:00
if (isSet(gettype_vvvvvzm) && gettype_vvvvvzm.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzm = gettype_vvvvvzm;
var gettype_vvvvvzm = [];
gettype_vvvvvzm.push(temp_vvvvvzm);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzm))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzm = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvvzm.some(gettype_vvvvvzm_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();
}
}
// the vvvvvzm Some function
function addcalculation_vvvvvzm_SomeFunc(addcalculation_vvvvvzm)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (addcalculation_vvvvvzm == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzm Some function
function gettype_vvvvvzm_SomeFunc(gettype_vvvvvzm)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvvzm == 1 || gettype_vvvvvzm == 3)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzn function
function vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn)
2016-01-30 20:28:43 +00:00
{
if (isSet(addcalculation_vvvvvzn) && addcalculation_vvvvvzn.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzn = addcalculation_vvvvvzn;
var addcalculation_vvvvvzn = [];
addcalculation_vvvvvzn.push(temp_vvvvvzn);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(addcalculation_vvvvvzn))
2016-01-30 20:28:43 +00:00
{
var addcalculation_vvvvvzn = [];
2016-01-30 20:28:43 +00:00
}
var addcalculation = addcalculation_vvvvvzn.some(addcalculation_vvvvvzn_SomeFunc);
2016-01-30 20:28:43 +00:00
if (isSet(gettype_vvvvvzn) && gettype_vvvvvzn.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzn = gettype_vvvvvzn;
var gettype_vvvvvzn = [];
gettype_vvvvvzn.push(temp_vvvvvzn);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzn))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzn = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvvzn.some(gettype_vvvvvzn_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (addcalculation && gettype)
{
jQuery('.note_calculation_items').closest('.control-group').show();
}
else
{
jQuery('.note_calculation_items').closest('.control-group').hide();
}
}
// the vvvvvzn Some function
function addcalculation_vvvvvzn_SomeFunc(addcalculation_vvvvvzn)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (addcalculation_vvvvvzn == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzn Some function
function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvvzn == 2 || gettype_vvvvvzn == 4)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzq function
function vvvvvzq(main_source_vvvvvzq)
2016-01-30 20:28:43 +00:00
{
if (isSet(main_source_vvvvvzq) && main_source_vvvvvzq.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzq = main_source_vvvvvzq;
var main_source_vvvvvzq = [];
main_source_vvvvvzq.push(temp_vvvvvzq);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(main_source_vvvvvzq))
2016-01-30 20:28:43 +00:00
{
var main_source_vvvvvzq = [];
2016-01-30 20:28:43 +00:00
}
var main_source = main_source_vvvvvzq.some(main_source_vvvvvzq_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (main_source)
{
jQuery('#jform_php_custom_get-lbl').closest('.control-group').show();
// add required attribute to php_custom_get field
if (jform_vvvvvzqvzh_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');
jform_vvvvvzqvzh_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_php_custom_get-lbl').closest('.control-group').hide();
// remove required attribute from php_custom_get field
if (!jform_vvvvvzqvzh_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');
jform_vvvvvzqvzh_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzq Some function
function main_source_vvvvvzq_SomeFunc(main_source_vvvvvzq)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (main_source_vvvvvzq == 3)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzr function
function vvvvvzr(main_source_vvvvvzr)
2016-01-30 20:28:43 +00:00
{
if (isSet(main_source_vvvvvzr) && main_source_vvvvvzr.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzr = main_source_vvvvvzr;
var main_source_vvvvvzr = [];
main_source_vvvvvzr.push(temp_vvvvvzr);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(main_source_vvvvvzr))
2016-01-30 20:28:43 +00:00
{
var main_source_vvvvvzr = [];
2016-01-30 20:28:43 +00:00
}
var main_source = main_source_vvvvvzr.some(main_source_vvvvvzr_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (main_source)
{
jQuery('#jform_filter-lbl').closest('.control-group').show();
jQuery('#jform_global-lbl').closest('.control-group').show();
jQuery('#jform_group-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
{
jQuery('#jform_filter-lbl').closest('.control-group').hide();
jQuery('#jform_global-lbl').closest('.control-group').hide();
jQuery('#jform_group-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
}
}
// the vvvvvzr Some function
function main_source_vvvvvzr_SomeFunc(main_source_vvvvvzr)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (main_source_vvvvvzr == 1 || main_source_vvvvvzr == 2)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzs function
function vvvvvzs(add_php_before_getitem_vvvvvzs,gettype_vvvvvzs)
2016-01-30 20:28:43 +00:00
{
if (isSet(add_php_before_getitem_vvvvvzs) && add_php_before_getitem_vvvvvzs.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzs = add_php_before_getitem_vvvvvzs;
var add_php_before_getitem_vvvvvzs = [];
add_php_before_getitem_vvvvvzs.push(temp_vvvvvzs);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(add_php_before_getitem_vvvvvzs))
2016-01-30 20:28:43 +00:00
{
var add_php_before_getitem_vvvvvzs = [];
2016-01-30 20:28:43 +00:00
}
var add_php_before_getitem = add_php_before_getitem_vvvvvzs.some(add_php_before_getitem_vvvvvzs_SomeFunc);
2016-01-30 20:28:43 +00:00
if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzs = gettype_vvvvvzs;
var gettype_vvvvvzs = [];
gettype_vvvvvzs.push(temp_vvvvvzs);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzs))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzs = [];
2016-01-30 20:28:43 +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_before_getitem && gettype)
{
jQuery('#jform_php_before_getitem-lbl').closest('.control-group').show();
// add required attribute to php_before_getitem field
if (jform_vvvvvzsvzi_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');
jform_vvvvvzsvzi_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_php_before_getitem-lbl').closest('.control-group').hide();
// remove required attribute from php_before_getitem field
if (!jform_vvvvvzsvzi_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');
jform_vvvvvzsvzi_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzs Some function
function add_php_before_getitem_vvvvvzs_SomeFunc(add_php_before_getitem_vvvvvzs)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (add_php_before_getitem_vvvvvzs == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzs Some function
function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvvzs == 1 || gettype_vvvvvzs == 3)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzt function
function vvvvvzt(add_php_after_getitem_vvvvvzt,gettype_vvvvvzt)
2016-01-30 20:28:43 +00:00
{
if (isSet(add_php_after_getitem_vvvvvzt) && add_php_after_getitem_vvvvvzt.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzt = add_php_after_getitem_vvvvvzt;
var add_php_after_getitem_vvvvvzt = [];
add_php_after_getitem_vvvvvzt.push(temp_vvvvvzt);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(add_php_after_getitem_vvvvvzt))
2016-01-30 20:28:43 +00:00
{
var add_php_after_getitem_vvvvvzt = [];
2016-01-30 20:28:43 +00:00
}
var add_php_after_getitem = add_php_after_getitem_vvvvvzt.some(add_php_after_getitem_vvvvvzt_SomeFunc);
2016-01-30 20:28:43 +00:00
if (isSet(gettype_vvvvvzt) && gettype_vvvvvzt.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzt = gettype_vvvvvzt;
var gettype_vvvvvzt = [];
gettype_vvvvvzt.push(temp_vvvvvzt);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzt))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzt = [];
2016-01-30 20:28:43 +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_after_getitem && gettype)
{
jQuery('#jform_php_after_getitem-lbl').closest('.control-group').show();
// add required attribute to php_after_getitem field
if (jform_vvvvvztvzj_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');
jform_vvvvvztvzj_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_php_after_getitem-lbl').closest('.control-group').hide();
// remove required attribute from php_after_getitem field
if (!jform_vvvvvztvzj_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');
jform_vvvvvztvzj_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzt Some function
function add_php_after_getitem_vvvvvzt_SomeFunc(add_php_after_getitem_vvvvvzt)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (add_php_after_getitem_vvvvvzt == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzt Some function
function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvvzt == 1 || gettype_vvvvvzt == 3)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzv function
function vvvvvzv(gettype_vvvvvzv)
2016-01-30 20:28:43 +00:00
{
if (isSet(gettype_vvvvvzv) && gettype_vvvvvzv.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzv = gettype_vvvvvzv;
var gettype_vvvvvzv = [];
gettype_vvvvvzv.push(temp_vvvvvzv);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzv))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzv = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvvzv.some(gettype_vvvvvzv_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();
// add required attribute to add_php_after_getitem field
if (jform_vvvvvzvvzk_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');
jform_vvvvvzvvzk_required = false;
2016-01-30 20:28:43 +00:00
}
jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
// add required attribute to add_php_before_getitem field
if (jform_vvvvvzvvzl_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');
jform_vvvvvzvvzl_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
// remove required attribute from add_php_after_getitem field
if (!jform_vvvvvzvvzk_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');
jform_vvvvvzvvzk_required = true;
2016-01-30 20:28:43 +00:00
}
jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
// remove required attribute from add_php_before_getitem field
if (!jform_vvvvvzvvzl_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');
jform_vvvvvzvvzl_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzv Some function
function gettype_vvvvvzv_SomeFunc(gettype_vvvvvzv)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvvzv == 1 || gettype_vvvvvzv == 3)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzw function
function vvvvvzw(add_php_getlistquery_vvvvvzw,gettype_vvvvvzw)
2016-01-30 20:28:43 +00:00
{
if (isSet(add_php_getlistquery_vvvvvzw) && add_php_getlistquery_vvvvvzw.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzw = add_php_getlistquery_vvvvvzw;
var add_php_getlistquery_vvvvvzw = [];
add_php_getlistquery_vvvvvzw.push(temp_vvvvvzw);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(add_php_getlistquery_vvvvvzw))
2016-01-30 20:28:43 +00:00
{
var add_php_getlistquery_vvvvvzw = [];
2016-01-30 20:28:43 +00:00
}
var add_php_getlistquery = add_php_getlistquery_vvvvvzw.some(add_php_getlistquery_vvvvvzw_SomeFunc);
2016-01-30 20:28:43 +00:00
if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzw = gettype_vvvvvzw;
var gettype_vvvvvzw = [];
gettype_vvvvvzw.push(temp_vvvvvzw);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzw))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzw = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvvzw.some(gettype_vvvvvzw_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (add_php_getlistquery && gettype)
{
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
// add required attribute to php_getlistquery field
if (jform_vvvvvzwvzm_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');
jform_vvvvvzwvzm_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide();
// remove required attribute from php_getlistquery field
if (!jform_vvvvvzwvzm_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');
jform_vvvvvzwvzm_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzw Some function
function add_php_getlistquery_vvvvvzw_SomeFunc(add_php_getlistquery_vvvvvzw)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (add_php_getlistquery_vvvvvzw == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzw Some function
function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvvzw == 2 || gettype_vvvvvzw == 4)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzx function
function vvvvvzx(add_php_before_getitems_vvvvvzx,gettype_vvvvvzx)
2016-01-30 20:28:43 +00:00
{
if (isSet(add_php_before_getitems_vvvvvzx) && add_php_before_getitems_vvvvvzx.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzx = add_php_before_getitems_vvvvvzx;
var add_php_before_getitems_vvvvvzx = [];
add_php_before_getitems_vvvvvzx.push(temp_vvvvvzx);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(add_php_before_getitems_vvvvvzx))
2016-01-30 20:28:43 +00:00
{
var add_php_before_getitems_vvvvvzx = [];
2016-01-30 20:28:43 +00:00
}
var add_php_before_getitems = add_php_before_getitems_vvvvvzx.some(add_php_before_getitems_vvvvvzx_SomeFunc);
2016-01-30 20:28:43 +00:00
if (isSet(gettype_vvvvvzx) && gettype_vvvvvzx.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzx = gettype_vvvvvzx;
var gettype_vvvvvzx = [];
gettype_vvvvvzx.push(temp_vvvvvzx);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzx))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzx = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvvzx.some(gettype_vvvvvzx_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (add_php_before_getitems && gettype)
{
jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show();
// add required attribute to php_before_getitems field
if (jform_vvvvvzxvzn_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');
jform_vvvvvzxvzn_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_php_before_getitems-lbl').closest('.control-group').hide();
// remove required attribute from php_before_getitems field
if (!jform_vvvvvzxvzn_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');
jform_vvvvvzxvzn_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzx Some function
function add_php_before_getitems_vvvvvzx_SomeFunc(add_php_before_getitems_vvvvvzx)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (add_php_before_getitems_vvvvvzx == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzx Some function
function gettype_vvvvvzx_SomeFunc(gettype_vvvvvzx)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvvzx == 2 || gettype_vvvvvzx == 4)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzy function
function vvvvvzy(add_php_after_getitems_vvvvvzy,gettype_vvvvvzy)
2016-01-30 20:28:43 +00:00
{
if (isSet(add_php_after_getitems_vvvvvzy) && add_php_after_getitems_vvvvvzy.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzy = add_php_after_getitems_vvvvvzy;
var add_php_after_getitems_vvvvvzy = [];
add_php_after_getitems_vvvvvzy.push(temp_vvvvvzy);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(add_php_after_getitems_vvvvvzy))
2016-01-30 20:28:43 +00:00
{
var add_php_after_getitems_vvvvvzy = [];
2016-01-30 20:28:43 +00:00
}
var add_php_after_getitems = add_php_after_getitems_vvvvvzy.some(add_php_after_getitems_vvvvvzy_SomeFunc);
2016-01-30 20:28:43 +00:00
if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvvzy = gettype_vvvvvzy;
var gettype_vvvvvzy = [];
gettype_vvvvvzy.push(temp_vvvvvzy);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvvzy))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvvzy = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvvzy.some(gettype_vvvvvzy_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (add_php_after_getitems && gettype)
{
jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show();
// add required attribute to php_after_getitems field
if (jform_vvvvvzyvzo_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');
jform_vvvvvzyvzo_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_php_after_getitems-lbl').closest('.control-group').hide();
// remove required attribute from php_after_getitems field
if (!jform_vvvvvzyvzo_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');
jform_vvvvvzyvzo_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvvzy Some function
function add_php_after_getitems_vvvvvzy_SomeFunc(add_php_after_getitems_vvvvvzy)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (add_php_after_getitems_vvvvvzy == 1)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvvzy Some function
function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvvzy == 2 || gettype_vvvvvzy == 4)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvwaa function
function vvvvwaa(gettype_vvvvwaa)
2016-01-30 20:28:43 +00:00
{
if (isSet(gettype_vvvvwaa) && gettype_vvvvwaa.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvwaa = gettype_vvvvwaa;
var gettype_vvvvwaa = [];
gettype_vvvvwaa.push(temp_vvvvwaa);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvwaa))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvwaa = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvwaa.some(gettype_vvvvwaa_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();
// add required attribute to add_php_after_getitems field
if (jform_vvvvwaavzp_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');
jform_vvvvwaavzp_required = false;
2016-01-30 20:28:43 +00:00
}
jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
// add required attribute to add_php_before_getitems field
if (jform_vvvvwaavzq_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');
jform_vvvvwaavzq_required = false;
2016-01-30 20:28:43 +00:00
}
jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
// add required attribute to add_php_getlistquery field
if (jform_vvvvwaavzr_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');
jform_vvvvwaavzr_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
// remove required attribute from add_php_after_getitems field
if (!jform_vvvvwaavzp_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');
jform_vvvvwaavzp_required = true;
2016-01-30 20:28:43 +00:00
}
jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
// remove required attribute from add_php_before_getitems field
if (!jform_vvvvwaavzq_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');
jform_vvvvwaavzq_required = true;
2016-01-30 20:28:43 +00:00
}
jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
// remove required attribute from add_php_getlistquery field
if (!jform_vvvvwaavzr_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');
jform_vvvvwaavzr_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvwaa Some function
function gettype_vvvvwaa_SomeFunc(gettype_vvvvwaa)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvwaa == 2 || gettype_vvvvwaa == 4)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvwab function
function vvvvwab(gettype_vvvvwab)
2016-01-30 20:28:43 +00:00
{
if (isSet(gettype_vvvvwab) && gettype_vvvvwab.constructor !== Array)
2016-01-30 20:28:43 +00:00
{
var temp_vvvvwab = gettype_vvvvwab;
var gettype_vvvvwab = [];
gettype_vvvvwab.push(temp_vvvvwab);
2016-01-30 20:28:43 +00:00
}
else if (!isSet(gettype_vvvvwab))
2016-01-30 20:28:43 +00:00
{
var gettype_vvvvwab = [];
2016-01-30 20:28:43 +00:00
}
var gettype = gettype_vvvvwab.some(gettype_vvvvwab_SomeFunc);
2016-01-30 20:28:43 +00:00
// set this function logic
if (gettype)
{
jQuery('#jform_pagination').closest('.control-group').show();
// add required attribute to pagination field
if (jform_vvvvwabvzs_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');
jform_vvvvwabvzs_required = false;
2016-01-30 20:28:43 +00:00
}
}
else
{
jQuery('#jform_pagination').closest('.control-group').hide();
// remove required attribute from pagination field
if (!jform_vvvvwabvzs_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');
jform_vvvvwabvzs_required = true;
2016-01-30 20:28:43 +00:00
}
}
}
// the vvvvwab Some function
function gettype_vvvvwab_SomeFunc(gettype_vvvvwab)
2016-01-30 20:28:43 +00:00
{
// set the function logic
if (gettype_vvvvwab == 2)
2016-01-30 20:28:43 +00:00
{
return true;
}
return false;
}
// the vvvvwac function
function vvvvwac(gettype_vvvvwac)
{
if (isSet(gettype_vvvvwac) && gettype_vvvvwac.constructor !== Array)
{
var temp_vvvvwac = gettype_vvvvwac;
var gettype_vvvvwac = [];
gettype_vvvvwac.push(temp_vvvvwac);
}
else if (!isSet(gettype_vvvvwac))
{
var gettype_vvvvwac = [];
}
var gettype = gettype_vvvvwac.some(gettype_vvvvwac_SomeFunc);
// set this function logic
if (gettype)
{
jQuery('#jform_add_php_router_parse').closest('.control-group').show();
// add required attribute to add_php_router_parse field
if (jform_vvvvwacvzt_required)
{
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');
jform_vvvvwacvzt_required = false;
}
}
else
{
jQuery('#jform_add_php_router_parse').closest('.control-group').hide();
// remove required attribute from add_php_router_parse field
if (!jform_vvvvwacvzt_required)
{
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');
jform_vvvvwacvzt_required = true;
}
}
}
// the vvvvwac Some function
function gettype_vvvvwac_SomeFunc(gettype_vvvvwac)
{
// set the function logic
if (gettype_vvvvwac == 1 || gettype_vvvvwac == 2)
{
return true;
}
return false;
}
// the vvvvwad function
function vvvvwad(gettype_vvvvwad,add_php_router_parse_vvvvwad)
{
if (isSet(gettype_vvvvwad) && gettype_vvvvwad.constructor !== Array)
{
var temp_vvvvwad = gettype_vvvvwad;
var gettype_vvvvwad = [];
gettype_vvvvwad.push(temp_vvvvwad);
}
else if (!isSet(gettype_vvvvwad))
{
var gettype_vvvvwad = [];
}
var gettype = gettype_vvvvwad.some(gettype_vvvvwad_SomeFunc);
if (isSet(add_php_router_parse_vvvvwad) && add_php_router_parse_vvvvwad.constructor !== Array)
{
var temp_vvvvwad = add_php_router_parse_vvvvwad;
var add_php_router_parse_vvvvwad = [];
add_php_router_parse_vvvvwad.push(temp_vvvvwad);
}
else if (!isSet(add_php_router_parse_vvvvwad))
{
var add_php_router_parse_vvvvwad = [];
}
var add_php_router_parse = add_php_router_parse_vvvvwad.some(add_php_router_parse_vvvvwad_SomeFunc);
// set this function logic
if (gettype && add_php_router_parse)
{
jQuery('#jform_php_router_parse').closest('.control-group').show();
// add required attribute to php_router_parse field
if (jform_vvvvwadvzu_required)
{
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');
jform_vvvvwadvzu_required = false;
}
}
else
{
jQuery('#jform_php_router_parse').closest('.control-group').hide();
// remove required attribute from php_router_parse field
if (!jform_vvvvwadvzu_required)
{
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');
jform_vvvvwadvzu_required = true;
}
}
}
// the vvvvwad Some function
function gettype_vvvvwad_SomeFunc(gettype_vvvvwad)
{
// set the function logic
if (gettype_vvvvwad == 1 || gettype_vvvvwad == 2)
{
return true;
}
return false;
}
// the vvvvwad Some function
function add_php_router_parse_vvvvwad_SomeFunc(add_php_router_parse_vvvvwad)
{
// set the function logic
if (add_php_router_parse_vvvvwad == 1)
{
return true;
}
return false;
}
// the vvvvwaf function
function vvvvwaf(gettype_vvvvwaf)
{
if (isSet(gettype_vvvvwaf) && gettype_vvvvwaf.constructor !== Array)
{
var temp_vvvvwaf = gettype_vvvvwaf;
var gettype_vvvvwaf = [];
gettype_vvvvwaf.push(temp_vvvvwaf);
}
else if (!isSet(gettype_vvvvwaf))
{
var gettype_vvvvwaf = [];
}
var gettype = gettype_vvvvwaf.some(gettype_vvvvwaf_SomeFunc);
// set this function logic
if (gettype)
{
jQuery('#jform_plugin_events').closest('.control-group').show();
}
else
{
jQuery('#jform_plugin_events').closest('.control-group').hide();
}
}
// the vvvvwaf Some function
function gettype_vvvvwaf_SomeFunc(gettype_vvvvwaf)
{
// set the function logic
if (gettype_vvvvwaf == 1)
{
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;
}
jQuery(document).ready(function()
{
// get the linked details
getLinked();
var valueSwitch = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
getDynamicScripts(valueSwitch);
// check and load all the custom code edit buttons
getEditCustomCodeButtons();
});
function setSelectAll(select_all){
// get source type
var main_source = jQuery("#jform_main_source").val();
if (1 == main_source) {
var key = 'view';
} else if (2 == main_source) {
var key = 'db';
} else {
return true;
}
// only continue if set
if (select_all == 1) {
// set default notice
jQuery("#jform_"+key+"_selection").val('a.*');
// set the selection text area to read only
jQuery("#jform_"+key+"_selection").prop("readonly", true);
} else {
// remove the read only from selection text area
jQuery("#jform_"+key+"_selection").prop("readonly", false);
// get selected options
var value_main = jQuery("#jform_"+key+"_table_main option:selected").val();
// make sure that all fields are set as selected
if (key === 'view') {
getViewTableColumns(value_main, 'a', key, 3, true, '', '');
} else {
getDbTableColumns(value_main, 'a', key, 3, true, '', '');
}
}
}
function getViewTableColumns_server(viewId,asKey,rowType){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.viewTableColumns&format=json&raw=true";
2016-01-30 20:28:43 +00:00
if (token.length > 0 && viewId > 0 && asKey.length > 0)
{
var request = 'token='+token+'&as='+asKey+'&type='+rowType+'&id='+viewId;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'json',
2016-01-30 20:28:43 +00:00
data: request,
jsonp: false
2016-01-30 20:28:43 +00:00
});
}
function getViewTableColumns(id, asKey, key, rowType, main, table_, nr_){
// check if this is the main view
if (main){
var select_all = jQuery("#jform_select_all input[type='radio']:checked").val();
// do not continue if set
if (select_all == 1){
setSelectAll(select_all);
return true;
}
}
2016-01-30 20:28:43 +00:00
getViewTableColumns_server(id,asKey,rowType).done(function(result) {
if (result)
{
loadSelectionData(result, 'view', key, main, table_, nr_);
2016-01-30 20:28:43 +00:00
}
else
{
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&raw=true";
2016-01-30 20:28:43 +00:00
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: 'json',
2016-01-30 20:28:43 +00:00
data: request,
jsonp: false
2016-01-30 20:28:43 +00:00
});
}
function getDbTableColumns(name, asKey, key, rowType, main, table_, nr_){
// check if this is the main view
if (main){
var select_all = jQuery("#jform_select_all input[type='radio']:checked").val();
// do not continue if set
if (select_all == 1){
setSelectAll(select_all);
return true;
}
}
2016-01-30 20:28:43 +00:00
getDbTableColumns_server(name,asKey,rowType).done(function(result) {
if (result)
{
loadSelectionData(result, 'db', key, main, table_, nr_);
2016-01-30 20:28:43 +00:00
}
else
{
loadSelectionData(false, 'db', key, main, table_, nr_);
2016-01-30 20:28:43 +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
{
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('');
}
}
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_);
}
});
}
}
function getDynamicScripts_server(typpe){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicScripts&format=json&raw=true&vdm="+vastDevMod;
if(token.length > 0 && typpe.length > 0){
var request = 'token='+token+'&type='+typpe;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'json',
data: request,
jsonp: false
});
}
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);
}
});
}
}
}
function getEditCustomCodeButtons_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getEditCustomCodeButtons&format=json&raw=true&vdm="+vastDevMod;
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id+'&return_here='+return_here;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'json',
data: request,
jsonp: false
});
}
function getEditCustomCodeButtons(){
// get the id
id = jQuery("#jform_id").val();
getEditCustomCodeButtons_server(id).done(function(result) {
if(isObject(result)){
jQuery.each(result, function( field, buttons ) {
jQuery('<div class="control-group"><div class="control-label"><label>Add/Edit Customcode</label></div><div class="controls control-customcode-buttons-'+field+'"></div></div>').insertBefore(".control-wrapper-"+ field);
jQuery.each(buttons, function( name, button ) {
jQuery(".control-customcode-buttons-"+field).append(button);
});
});
}
})
}
// check object is not empty
function isObject(obj) {
for(var prop in obj) {
if (Object.prototype.hasOwnProperty.call(obj, prop)) {
return true;
}
}
return false;
}
function getLinked_server(type){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&raw=true&vdm="+vastDevMod;
if(token.length > 0 && type > 0){
var request = 'token='+token+'&type='+type;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'json',
data: request,
jsonp: false
});
}
function getLinked(){
getLinked_server(1).done(function(result) {
if(result){
jQuery('#display_linked_to').html(result);
}
});
2016-01-30 20:28:43 +00:00
}