2016-01-30 20:28:43 +00:00
|
|
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
|
|
|
__ __ _ _____ _ _ __ __ _ _ _
|
|
|
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
|
|
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
|
|
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
|
|
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
|
|
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
|
|
|
| |
|
|
|
|
|_|
|
|
|
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
|
|
|
2016-01-31 17:29:08 +00:00
|
|
|
@version 2.0.9
|
2016-02-15 08:37:21 +00:00
|
|
|
@build 15th February, 2016
|
2016-01-30 20:28:43 +00:00
|
|
|
@created 30th April, 2015
|
|
|
|
@package Component Builder
|
|
|
|
@subpackage dynamic_get.js
|
|
|
|
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
|
|
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
|
|
@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
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_GtJWYHVEUB_required = false;
|
|
|
|
jform_qUEIIzHfQZ_required = false;
|
|
|
|
jform_aXSPZKGFwP_required = false;
|
|
|
|
jform_McooZiUUIQ_required = false;
|
|
|
|
jform_xZJeHvCsys_required = false;
|
|
|
|
jform_zylrqpVWUm_required = false;
|
|
|
|
jform_obQcKhZIwe_required = false;
|
|
|
|
jform_qsHGldsHdk_required = false;
|
|
|
|
jform_nDrOPtHSYK_required = false;
|
|
|
|
jform_rFFXUXFBiB_required = false;
|
|
|
|
jform_rFFXUXFUNM_required = false;
|
|
|
|
jform_fZixNaLoUF_required = false;
|
|
|
|
jform_dJlwHnqHAW_required = false;
|
|
|
|
jform_qyQnfurGqi_required = false;
|
|
|
|
jform_EltkuhsLTM_required = false;
|
|
|
|
jform_Eltkuhscut_required = false;
|
|
|
|
jform_EltkuhsYHR_required = false;
|
|
|
|
jform_PUWmnBKDZg_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_GtJWYHV = jQuery("#jform_gettype").val();
|
|
|
|
GtJWYHV(gettype_GtJWYHV);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_qUEIIzH = jQuery("#jform_main_source").val();
|
|
|
|
qUEIIzH(main_source_qUEIIzH);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_aXSPZKG = jQuery("#jform_main_source").val();
|
|
|
|
aXSPZKG(main_source_aXSPZKG);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_McooZiU = jQuery("#jform_main_source").val();
|
|
|
|
McooZiU(main_source_McooZiU);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_xZJeHvC = jQuery("#jform_main_source").val();
|
|
|
|
xZJeHvC(main_source_xZJeHvC);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var addcalculation_zylrqpV = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
zylrqpV(addcalculation_zylrqpV);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var addcalculation_MJoWXuh = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_MJoWXuh = jQuery("#jform_gettype").val();
|
|
|
|
MJoWXuh(addcalculation_MJoWXuh,gettype_MJoWXuh);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var addcalculation_SpQINPu = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_SpQINPu = jQuery("#jform_gettype").val();
|
|
|
|
SpQINPu(addcalculation_SpQINPu,gettype_SpQINPu);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_obQcKhZ = jQuery("#jform_main_source").val();
|
|
|
|
obQcKhZ(main_source_obQcKhZ);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_DKWnxOF = jQuery("#jform_main_source").val();
|
|
|
|
DKWnxOF(main_source_DKWnxOF);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_before_getitem_qsHGlds = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_qsHGlds = jQuery("#jform_gettype").val();
|
|
|
|
qsHGlds(add_php_before_getitem_qsHGlds,gettype_qsHGlds);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_after_getitem_nDrOPtH = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_nDrOPtH = jQuery("#jform_gettype").val();
|
|
|
|
nDrOPtH(add_php_after_getitem_nDrOPtH,gettype_nDrOPtH);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_rFFXUXF = jQuery("#jform_gettype").val();
|
|
|
|
rFFXUXF(gettype_rFFXUXF);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_getlistquery_fZixNaL = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
|
|
|
var gettype_fZixNaL = jQuery("#jform_gettype").val();
|
|
|
|
fZixNaL(add_php_getlistquery_fZixNaL,gettype_fZixNaL);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_before_getitems_dJlwHnq = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_dJlwHnq = jQuery("#jform_gettype").val();
|
|
|
|
dJlwHnq(add_php_before_getitems_dJlwHnq,gettype_dJlwHnq);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_after_getitems_qyQnfur = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_qyQnfur = jQuery("#jform_gettype").val();
|
|
|
|
qyQnfur(add_php_after_getitems_qyQnfur,gettype_qyQnfur);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_Eltkuhs = jQuery("#jform_gettype").val();
|
|
|
|
Eltkuhs(gettype_Eltkuhs);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_PUWmnBK = jQuery("#jform_gettype").val();
|
|
|
|
PUWmnBK(gettype_PUWmnBK);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the GtJWYHV function
|
|
|
|
function GtJWYHV(gettype_GtJWYHV)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_GtJWYHV) && gettype_GtJWYHV.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_GtJWYHV = gettype_GtJWYHV;
|
|
|
|
var gettype_GtJWYHV = [];
|
|
|
|
gettype_GtJWYHV.push(temp_GtJWYHV);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_GtJWYHV))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_GtJWYHV = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_GtJWYHV.some(gettype_GtJWYHV_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').show();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_GtJWYHVEUB_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_GtJWYHVEUB_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_GtJWYHVEUB_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_GtJWYHVEUB_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the GtJWYHV Some function
|
|
|
|
function gettype_GtJWYHV_SomeFunc(gettype_GtJWYHV)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_GtJWYHV == 3 || gettype_GtJWYHV == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the qUEIIzH function
|
|
|
|
function qUEIIzH(main_source_qUEIIzH)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(main_source_qUEIIzH) && main_source_qUEIIzH.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_qUEIIzH = main_source_qUEIIzH;
|
|
|
|
var main_source_qUEIIzH = [];
|
|
|
|
main_source_qUEIIzH.push(temp_qUEIIzH);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(main_source_qUEIIzH))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_qUEIIzH = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source = main_source_qUEIIzH.some(main_source_qUEIIzH_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_qUEIIzHfQZ_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_qUEIIzHfQZ_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_table_main').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_qUEIIzHfQZ_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_qUEIIzHfQZ_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the qUEIIzH Some function
|
|
|
|
function main_source_qUEIIzH_SomeFunc(main_source_qUEIIzH)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (main_source_qUEIIzH == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the aXSPZKG function
|
|
|
|
function aXSPZKG(main_source_aXSPZKG)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(main_source_aXSPZKG) && main_source_aXSPZKG.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_aXSPZKG = main_source_aXSPZKG;
|
|
|
|
var main_source_aXSPZKG = [];
|
|
|
|
main_source_aXSPZKG.push(temp_aXSPZKG);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(main_source_aXSPZKG))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_aXSPZKG = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source = main_source_aXSPZKG.some(main_source_aXSPZKG_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_selection').closest('.control-group').show();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_aXSPZKGFwP_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_aXSPZKGFwP_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_selection').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_aXSPZKGFwP_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_aXSPZKGFwP_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the aXSPZKG Some function
|
|
|
|
function main_source_aXSPZKG_SomeFunc(main_source_aXSPZKG)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (main_source_aXSPZKG == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the McooZiU function
|
|
|
|
function McooZiU(main_source_McooZiU)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(main_source_McooZiU) && main_source_McooZiU.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_McooZiU = main_source_McooZiU;
|
|
|
|
var main_source_McooZiU = [];
|
|
|
|
main_source_McooZiU.push(temp_McooZiU);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(main_source_McooZiU))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_McooZiU = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source = main_source_McooZiU.some(main_source_McooZiU_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_McooZiUUIQ_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_McooZiUUIQ_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_table_main').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_McooZiUUIQ_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_McooZiUUIQ_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the McooZiU Some function
|
|
|
|
function main_source_McooZiU_SomeFunc(main_source_McooZiU)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (main_source_McooZiU == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the xZJeHvC function
|
|
|
|
function xZJeHvC(main_source_xZJeHvC)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(main_source_xZJeHvC) && main_source_xZJeHvC.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_xZJeHvC = main_source_xZJeHvC;
|
|
|
|
var main_source_xZJeHvC = [];
|
|
|
|
main_source_xZJeHvC.push(temp_xZJeHvC);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(main_source_xZJeHvC))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_xZJeHvC = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source = main_source_xZJeHvC.some(main_source_xZJeHvC_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (main_source)
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_selection').closest('.control-group').show();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_xZJeHvCsys_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_xZJeHvCsys_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_selection').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_xZJeHvCsys_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_xZJeHvCsys_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the xZJeHvC Some function
|
|
|
|
function main_source_xZJeHvC_SomeFunc(main_source_xZJeHvC)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (main_source_xZJeHvC == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the zylrqpV function
|
|
|
|
function zylrqpV(addcalculation_zylrqpV)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (addcalculation_zylrqpV == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_calculation').closest('.control-group').show();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_zylrqpVWUm_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_zylrqpVWUm_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_calculation').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_zylrqpVWUm_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_zylrqpVWUm_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the MJoWXuh function
|
|
|
|
function MJoWXuh(addcalculation_MJoWXuh,gettype_MJoWXuh)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(addcalculation_MJoWXuh) && addcalculation_MJoWXuh.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_MJoWXuh = addcalculation_MJoWXuh;
|
|
|
|
var addcalculation_MJoWXuh = [];
|
|
|
|
addcalculation_MJoWXuh.push(temp_MJoWXuh);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(addcalculation_MJoWXuh))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var addcalculation_MJoWXuh = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var addcalculation = addcalculation_MJoWXuh.some(addcalculation_MJoWXuh_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_MJoWXuh) && gettype_MJoWXuh.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_MJoWXuh = gettype_MJoWXuh;
|
|
|
|
var gettype_MJoWXuh = [];
|
|
|
|
gettype_MJoWXuh.push(temp_MJoWXuh);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_MJoWXuh))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_MJoWXuh = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_MJoWXuh.some(gettype_MJoWXuh_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the MJoWXuh Some function
|
|
|
|
function addcalculation_MJoWXuh_SomeFunc(addcalculation_MJoWXuh)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (addcalculation_MJoWXuh == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the MJoWXuh Some function
|
|
|
|
function gettype_MJoWXuh_SomeFunc(gettype_MJoWXuh)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_MJoWXuh == 1 || gettype_MJoWXuh == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the SpQINPu function
|
|
|
|
function SpQINPu(addcalculation_SpQINPu,gettype_SpQINPu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(addcalculation_SpQINPu) && addcalculation_SpQINPu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_SpQINPu = addcalculation_SpQINPu;
|
|
|
|
var addcalculation_SpQINPu = [];
|
|
|
|
addcalculation_SpQINPu.push(temp_SpQINPu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(addcalculation_SpQINPu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var addcalculation_SpQINPu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var addcalculation = addcalculation_SpQINPu.some(addcalculation_SpQINPu_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_SpQINPu) && gettype_SpQINPu.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_SpQINPu = gettype_SpQINPu;
|
|
|
|
var gettype_SpQINPu = [];
|
|
|
|
gettype_SpQINPu.push(temp_SpQINPu);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_SpQINPu))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_SpQINPu = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_SpQINPu.some(gettype_SpQINPu_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the SpQINPu Some function
|
|
|
|
function addcalculation_SpQINPu_SomeFunc(addcalculation_SpQINPu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (addcalculation_SpQINPu == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the SpQINPu Some function
|
|
|
|
function gettype_SpQINPu_SomeFunc(gettype_SpQINPu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_SpQINPu == 2 || gettype_SpQINPu == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the obQcKhZ function
|
|
|
|
function obQcKhZ(main_source_obQcKhZ)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(main_source_obQcKhZ) && main_source_obQcKhZ.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_obQcKhZ = main_source_obQcKhZ;
|
|
|
|
var main_source_obQcKhZ = [];
|
|
|
|
main_source_obQcKhZ.push(temp_obQcKhZ);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(main_source_obQcKhZ))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_obQcKhZ = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source = main_source_obQcKhZ.some(main_source_obQcKhZ_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_obQcKhZIwe_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_obQcKhZIwe_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_custom_get').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_obQcKhZIwe_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_obQcKhZIwe_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the obQcKhZ Some function
|
|
|
|
function main_source_obQcKhZ_SomeFunc(main_source_obQcKhZ)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (main_source_obQcKhZ == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the DKWnxOF function
|
|
|
|
function DKWnxOF(main_source_DKWnxOF)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(main_source_DKWnxOF) && main_source_DKWnxOF.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_DKWnxOF = main_source_DKWnxOF;
|
|
|
|
var main_source_DKWnxOF = [];
|
|
|
|
main_source_DKWnxOF.push(temp_DKWnxOF);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(main_source_DKWnxOF))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source_DKWnxOF = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var main_source = main_source_DKWnxOF.some(main_source_DKWnxOF_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the DKWnxOF Some function
|
|
|
|
function main_source_DKWnxOF_SomeFunc(main_source_DKWnxOF)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (main_source_DKWnxOF == 1 || main_source_DKWnxOF == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the qsHGlds function
|
|
|
|
function qsHGlds(add_php_before_getitem_qsHGlds,gettype_qsHGlds)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(add_php_before_getitem_qsHGlds) && add_php_before_getitem_qsHGlds.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_qsHGlds = add_php_before_getitem_qsHGlds;
|
|
|
|
var add_php_before_getitem_qsHGlds = [];
|
|
|
|
add_php_before_getitem_qsHGlds.push(temp_qsHGlds);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(add_php_before_getitem_qsHGlds))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_before_getitem_qsHGlds = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_before_getitem = add_php_before_getitem_qsHGlds.some(add_php_before_getitem_qsHGlds_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_qsHGlds) && gettype_qsHGlds.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_qsHGlds = gettype_qsHGlds;
|
|
|
|
var gettype_qsHGlds = [];
|
|
|
|
gettype_qsHGlds.push(temp_qsHGlds);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_qsHGlds))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_qsHGlds = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_qsHGlds.some(gettype_qsHGlds_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_qsHGldsHdk_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_qsHGldsHdk_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_getitem').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_qsHGldsHdk_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_qsHGldsHdk_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the qsHGlds Some function
|
|
|
|
function add_php_before_getitem_qsHGlds_SomeFunc(add_php_before_getitem_qsHGlds)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (add_php_before_getitem_qsHGlds == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the qsHGlds Some function
|
|
|
|
function gettype_qsHGlds_SomeFunc(gettype_qsHGlds)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_qsHGlds == 1 || gettype_qsHGlds == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the nDrOPtH function
|
|
|
|
function nDrOPtH(add_php_after_getitem_nDrOPtH,gettype_nDrOPtH)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(add_php_after_getitem_nDrOPtH) && add_php_after_getitem_nDrOPtH.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_nDrOPtH = add_php_after_getitem_nDrOPtH;
|
|
|
|
var add_php_after_getitem_nDrOPtH = [];
|
|
|
|
add_php_after_getitem_nDrOPtH.push(temp_nDrOPtH);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(add_php_after_getitem_nDrOPtH))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_after_getitem_nDrOPtH = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_after_getitem = add_php_after_getitem_nDrOPtH.some(add_php_after_getitem_nDrOPtH_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_nDrOPtH) && gettype_nDrOPtH.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_nDrOPtH = gettype_nDrOPtH;
|
|
|
|
var gettype_nDrOPtH = [];
|
|
|
|
gettype_nDrOPtH.push(temp_nDrOPtH);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_nDrOPtH))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_nDrOPtH = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_nDrOPtH.some(gettype_nDrOPtH_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_nDrOPtHSYK_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_nDrOPtHSYK_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_getitem').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_nDrOPtHSYK_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_nDrOPtHSYK_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the nDrOPtH Some function
|
|
|
|
function add_php_after_getitem_nDrOPtH_SomeFunc(add_php_after_getitem_nDrOPtH)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (add_php_after_getitem_nDrOPtH == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the nDrOPtH Some function
|
|
|
|
function gettype_nDrOPtH_SomeFunc(gettype_nDrOPtH)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_nDrOPtH == 1 || gettype_nDrOPtH == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the rFFXUXF function
|
|
|
|
function rFFXUXF(gettype_rFFXUXF)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_rFFXUXF) && gettype_rFFXUXF.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_rFFXUXF = gettype_rFFXUXF;
|
|
|
|
var gettype_rFFXUXF = [];
|
|
|
|
gettype_rFFXUXF.push(temp_rFFXUXF);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_rFFXUXF))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_rFFXUXF = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_rFFXUXF.some(gettype_rFFXUXF_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_rFFXUXFBiB_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_rFFXUXFBiB_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_rFFXUXFUNM_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_rFFXUXFUNM_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_rFFXUXFBiB_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_rFFXUXFBiB_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_rFFXUXFUNM_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_rFFXUXFUNM_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the rFFXUXF Some function
|
|
|
|
function gettype_rFFXUXF_SomeFunc(gettype_rFFXUXF)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_rFFXUXF == 1 || gettype_rFFXUXF == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the fZixNaL function
|
|
|
|
function fZixNaL(add_php_getlistquery_fZixNaL,gettype_fZixNaL)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(add_php_getlistquery_fZixNaL) && add_php_getlistquery_fZixNaL.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_fZixNaL = add_php_getlistquery_fZixNaL;
|
|
|
|
var add_php_getlistquery_fZixNaL = [];
|
|
|
|
add_php_getlistquery_fZixNaL.push(temp_fZixNaL);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(add_php_getlistquery_fZixNaL))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_getlistquery_fZixNaL = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_getlistquery = add_php_getlistquery_fZixNaL.some(add_php_getlistquery_fZixNaL_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_fZixNaL) && gettype_fZixNaL.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_fZixNaL = gettype_fZixNaL;
|
|
|
|
var gettype_fZixNaL = [];
|
|
|
|
gettype_fZixNaL.push(temp_fZixNaL);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_fZixNaL))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_fZixNaL = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_fZixNaL.some(gettype_fZixNaL_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_fZixNaLoUF_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_fZixNaLoUF_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_getlistquery').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_fZixNaLoUF_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_fZixNaLoUF_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the fZixNaL Some function
|
|
|
|
function add_php_getlistquery_fZixNaL_SomeFunc(add_php_getlistquery_fZixNaL)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (add_php_getlistquery_fZixNaL == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the fZixNaL Some function
|
|
|
|
function gettype_fZixNaL_SomeFunc(gettype_fZixNaL)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_fZixNaL == 2 || gettype_fZixNaL == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the dJlwHnq function
|
|
|
|
function dJlwHnq(add_php_before_getitems_dJlwHnq,gettype_dJlwHnq)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(add_php_before_getitems_dJlwHnq) && add_php_before_getitems_dJlwHnq.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_dJlwHnq = add_php_before_getitems_dJlwHnq;
|
|
|
|
var add_php_before_getitems_dJlwHnq = [];
|
|
|
|
add_php_before_getitems_dJlwHnq.push(temp_dJlwHnq);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(add_php_before_getitems_dJlwHnq))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_before_getitems_dJlwHnq = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_before_getitems = add_php_before_getitems_dJlwHnq.some(add_php_before_getitems_dJlwHnq_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_dJlwHnq) && gettype_dJlwHnq.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_dJlwHnq = gettype_dJlwHnq;
|
|
|
|
var gettype_dJlwHnq = [];
|
|
|
|
gettype_dJlwHnq.push(temp_dJlwHnq);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_dJlwHnq))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_dJlwHnq = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_dJlwHnq.some(gettype_dJlwHnq_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_dJlwHnqHAW_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_dJlwHnqHAW_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_getitems').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_dJlwHnqHAW_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_dJlwHnqHAW_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the dJlwHnq Some function
|
|
|
|
function add_php_before_getitems_dJlwHnq_SomeFunc(add_php_before_getitems_dJlwHnq)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (add_php_before_getitems_dJlwHnq == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the dJlwHnq Some function
|
|
|
|
function gettype_dJlwHnq_SomeFunc(gettype_dJlwHnq)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_dJlwHnq == 2 || gettype_dJlwHnq == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the qyQnfur function
|
|
|
|
function qyQnfur(add_php_after_getitems_qyQnfur,gettype_qyQnfur)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(add_php_after_getitems_qyQnfur) && add_php_after_getitems_qyQnfur.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_qyQnfur = add_php_after_getitems_qyQnfur;
|
|
|
|
var add_php_after_getitems_qyQnfur = [];
|
|
|
|
add_php_after_getitems_qyQnfur.push(temp_qyQnfur);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(add_php_after_getitems_qyQnfur))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_after_getitems_qyQnfur = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var add_php_after_getitems = add_php_after_getitems_qyQnfur.some(add_php_after_getitems_qyQnfur_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_qyQnfur) && gettype_qyQnfur.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_qyQnfur = gettype_qyQnfur;
|
|
|
|
var gettype_qyQnfur = [];
|
|
|
|
gettype_qyQnfur.push(temp_qyQnfur);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_qyQnfur))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_qyQnfur = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_qyQnfur.some(gettype_qyQnfur_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_qyQnfurGqi_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_qyQnfurGqi_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_getitems').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_qyQnfurGqi_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_qyQnfurGqi_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the qyQnfur Some function
|
|
|
|
function add_php_after_getitems_qyQnfur_SomeFunc(add_php_after_getitems_qyQnfur)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (add_php_after_getitems_qyQnfur == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the qyQnfur Some function
|
|
|
|
function gettype_qyQnfur_SomeFunc(gettype_qyQnfur)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_qyQnfur == 2 || gettype_qyQnfur == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the Eltkuhs function
|
|
|
|
function Eltkuhs(gettype_Eltkuhs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_Eltkuhs) && gettype_Eltkuhs.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_Eltkuhs = gettype_Eltkuhs;
|
|
|
|
var gettype_Eltkuhs = [];
|
|
|
|
gettype_Eltkuhs.push(temp_Eltkuhs);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_Eltkuhs))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_Eltkuhs = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_Eltkuhs.some(gettype_Eltkuhs_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();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_EltkuhsLTM_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_EltkuhsLTM_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_Eltkuhscut_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_Eltkuhscut_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_EltkuhsYHR_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_EltkuhsYHR_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_EltkuhsLTM_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_EltkuhsLTM_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_Eltkuhscut_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_Eltkuhscut_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_EltkuhsYHR_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_EltkuhsYHR_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the Eltkuhs Some function
|
|
|
|
function gettype_Eltkuhs_SomeFunc(gettype_Eltkuhs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_Eltkuhs == 2 || gettype_Eltkuhs == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the PUWmnBK function
|
|
|
|
function PUWmnBK(gettype_PUWmnBK)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
if (isSet(gettype_PUWmnBK) && gettype_PUWmnBK.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var temp_PUWmnBK = gettype_PUWmnBK;
|
|
|
|
var gettype_PUWmnBK = [];
|
|
|
|
gettype_PUWmnBK.push(temp_PUWmnBK);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
else if (!isSet(gettype_PUWmnBK))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype_PUWmnBK = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-15 08:37:21 +00:00
|
|
|
var gettype = gettype_PUWmnBK.some(gettype_PUWmnBK_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').show();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (jform_PUWmnBKDZg_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_PUWmnBKDZg_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').hide();
|
2016-02-15 08:37:21 +00:00
|
|
|
if (!jform_PUWmnBKDZg_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');
|
2016-02-15 08:37:21 +00:00
|
|
|
jform_PUWmnBKDZg_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
// the PUWmnBK Some function
|
|
|
|
function gettype_PUWmnBK_SomeFunc(gettype_PUWmnBK)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-15 08:37:21 +00:00
|
|
|
if (gettype_PUWmnBK == 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
|
|
|
|
{
|
|
|
|
var textArea = 'textarea#jform_join_'+type+'_table_fields_selection-'+key;
|
|
|
|
}
|
|
|
|
// no update the text area
|
|
|
|
if (result)
|
|
|
|
{
|
|
|
|
jQuery(textArea).val(result);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery(textArea).val('');
|
|
|
|
}
|
|
|
|
}
|