2016-01-30 20:28:43 +00:00
|
|
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
|
|
|
__ __ _ _____ _ _ __ __ _ _ _
|
|
|
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
|
|
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
|
|
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
|
|
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
|
|
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
|
|
|
| |
|
|
|
|
|_|
|
|
|
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
|
|
|
2016-02-19 09:21:44 +00:00
|
|
|
@version 2.1.0
|
2016-02-26 00:20:09 +00:00
|
|
|
@build 26th 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-26 00:20:09 +00:00
|
|
|
jform_oIkUBwQlSJ_required = false;
|
|
|
|
jform_tagnhvNXXH_required = false;
|
|
|
|
jform_KAhRcCCPpP_required = false;
|
|
|
|
jform_vAxEBgasyS_required = false;
|
|
|
|
jform_VMTbbbDPZB_required = false;
|
|
|
|
jform_pCbDvfiYUx_required = false;
|
|
|
|
jform_SCPJZNXahA_required = false;
|
|
|
|
jform_nCtpSbYHrI_required = false;
|
|
|
|
jform_SpukdYZHYN_required = false;
|
|
|
|
jform_TnpAxMNUyP_required = false;
|
|
|
|
jform_TnpAxMNRhj_required = false;
|
|
|
|
jform_CXzQkvOkhI_required = false;
|
|
|
|
jform_VRMRVLIqyW_required = false;
|
|
|
|
jform_DYujMuNvkU_required = false;
|
|
|
|
jform_okMXdwKUyo_required = false;
|
|
|
|
jform_okMXdwKDLU_required = false;
|
|
|
|
jform_okMXdwKAgT_required = false;
|
|
|
|
jform_TwzodczXMd_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_oIkUBwQ = jQuery("#jform_gettype").val();
|
|
|
|
oIkUBwQ(gettype_oIkUBwQ);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_tagnhvN = jQuery("#jform_main_source").val();
|
|
|
|
tagnhvN(main_source_tagnhvN);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_KAhRcCC = jQuery("#jform_main_source").val();
|
|
|
|
KAhRcCC(main_source_KAhRcCC);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_vAxEBga = jQuery("#jform_main_source").val();
|
|
|
|
vAxEBga(main_source_vAxEBga);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_VMTbbbD = jQuery("#jform_main_source").val();
|
|
|
|
VMTbbbD(main_source_VMTbbbD);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var addcalculation_pCbDvfi = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
pCbDvfi(addcalculation_pCbDvfi);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var addcalculation_OqYoaAC = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_OqYoaAC = jQuery("#jform_gettype").val();
|
|
|
|
OqYoaAC(addcalculation_OqYoaAC,gettype_OqYoaAC);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var addcalculation_aMTREzM = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
|
|
|
var gettype_aMTREzM = jQuery("#jform_gettype").val();
|
|
|
|
aMTREzM(addcalculation_aMTREzM,gettype_aMTREzM);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_SCPJZNX = jQuery("#jform_main_source").val();
|
|
|
|
SCPJZNX(main_source_SCPJZNX);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_aTmUxUz = jQuery("#jform_main_source").val();
|
|
|
|
aTmUxUz(main_source_aTmUxUz);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_before_getitem_nCtpSbY = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_nCtpSbY = jQuery("#jform_gettype").val();
|
|
|
|
nCtpSbY(add_php_before_getitem_nCtpSbY,gettype_nCtpSbY);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_after_getitem_SpukdYZ = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
|
|
|
var gettype_SpukdYZ = jQuery("#jform_gettype").val();
|
|
|
|
SpukdYZ(add_php_after_getitem_SpukdYZ,gettype_SpukdYZ);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_TnpAxMN = jQuery("#jform_gettype").val();
|
|
|
|
TnpAxMN(gettype_TnpAxMN);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_getlistquery_CXzQkvO = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
|
|
|
var gettype_CXzQkvO = jQuery("#jform_gettype").val();
|
|
|
|
CXzQkvO(add_php_getlistquery_CXzQkvO,gettype_CXzQkvO);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_before_getitems_VRMRVLI = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_VRMRVLI = jQuery("#jform_gettype").val();
|
|
|
|
VRMRVLI(add_php_before_getitems_VRMRVLI,gettype_VRMRVLI);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_after_getitems_DYujMuN = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
|
|
|
var gettype_DYujMuN = jQuery("#jform_gettype").val();
|
|
|
|
DYujMuN(add_php_after_getitems_DYujMuN,gettype_DYujMuN);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_okMXdwK = jQuery("#jform_gettype").val();
|
|
|
|
okMXdwK(gettype_okMXdwK);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_Twzodcz = jQuery("#jform_gettype").val();
|
|
|
|
Twzodcz(gettype_Twzodcz);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the oIkUBwQ function
|
|
|
|
function oIkUBwQ(gettype_oIkUBwQ)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_oIkUBwQ) && gettype_oIkUBwQ.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_oIkUBwQ = gettype_oIkUBwQ;
|
|
|
|
var gettype_oIkUBwQ = [];
|
|
|
|
gettype_oIkUBwQ.push(temp_oIkUBwQ);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_oIkUBwQ))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_oIkUBwQ = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_oIkUBwQ.some(gettype_oIkUBwQ_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').show();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (jform_oIkUBwQlSJ_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-26 00:20:09 +00:00
|
|
|
jform_oIkUBwQlSJ_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_getcustom').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_oIkUBwQlSJ_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-26 00:20:09 +00:00
|
|
|
jform_oIkUBwQlSJ_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the oIkUBwQ Some function
|
|
|
|
function gettype_oIkUBwQ_SomeFunc(gettype_oIkUBwQ)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_oIkUBwQ == 3 || gettype_oIkUBwQ == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the tagnhvN function
|
|
|
|
function tagnhvN(main_source_tagnhvN)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(main_source_tagnhvN) && main_source_tagnhvN.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_tagnhvN = main_source_tagnhvN;
|
|
|
|
var main_source_tagnhvN = [];
|
|
|
|
main_source_tagnhvN.push(temp_tagnhvN);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(main_source_tagnhvN))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_tagnhvN = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source = main_source_tagnhvN.some(main_source_tagnhvN_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-26 00:20:09 +00:00
|
|
|
if (jform_tagnhvNXXH_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-26 00:20:09 +00:00
|
|
|
jform_tagnhvNXXH_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_table_main').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_tagnhvNXXH_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-26 00:20:09 +00:00
|
|
|
jform_tagnhvNXXH_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the tagnhvN Some function
|
|
|
|
function main_source_tagnhvN_SomeFunc(main_source_tagnhvN)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (main_source_tagnhvN == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the KAhRcCC function
|
|
|
|
function KAhRcCC(main_source_KAhRcCC)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(main_source_KAhRcCC) && main_source_KAhRcCC.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_KAhRcCC = main_source_KAhRcCC;
|
|
|
|
var main_source_KAhRcCC = [];
|
|
|
|
main_source_KAhRcCC.push(temp_KAhRcCC);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(main_source_KAhRcCC))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_KAhRcCC = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source = main_source_KAhRcCC.some(main_source_KAhRcCC_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-26 00:20:09 +00:00
|
|
|
if (jform_KAhRcCCPpP_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-26 00:20:09 +00:00
|
|
|
jform_KAhRcCCPpP_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_view_selection').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_KAhRcCCPpP_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-26 00:20:09 +00:00
|
|
|
jform_KAhRcCCPpP_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the KAhRcCC Some function
|
|
|
|
function main_source_KAhRcCC_SomeFunc(main_source_KAhRcCC)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (main_source_KAhRcCC == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the vAxEBga function
|
|
|
|
function vAxEBga(main_source_vAxEBga)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(main_source_vAxEBga) && main_source_vAxEBga.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_vAxEBga = main_source_vAxEBga;
|
|
|
|
var main_source_vAxEBga = [];
|
|
|
|
main_source_vAxEBga.push(temp_vAxEBga);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(main_source_vAxEBga))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_vAxEBga = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source = main_source_vAxEBga.some(main_source_vAxEBga_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-26 00:20:09 +00:00
|
|
|
if (jform_vAxEBgasyS_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-26 00:20:09 +00:00
|
|
|
jform_vAxEBgasyS_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_table_main').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_vAxEBgasyS_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-26 00:20:09 +00:00
|
|
|
jform_vAxEBgasyS_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the vAxEBga Some function
|
|
|
|
function main_source_vAxEBga_SomeFunc(main_source_vAxEBga)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (main_source_vAxEBga == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the VMTbbbD function
|
|
|
|
function VMTbbbD(main_source_VMTbbbD)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(main_source_VMTbbbD) && main_source_VMTbbbD.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_VMTbbbD = main_source_VMTbbbD;
|
|
|
|
var main_source_VMTbbbD = [];
|
|
|
|
main_source_VMTbbbD.push(temp_VMTbbbD);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(main_source_VMTbbbD))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_VMTbbbD = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source = main_source_VMTbbbD.some(main_source_VMTbbbD_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-26 00:20:09 +00:00
|
|
|
if (jform_VMTbbbDPZB_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-26 00:20:09 +00:00
|
|
|
jform_VMTbbbDPZB_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_db_selection').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_VMTbbbDPZB_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-26 00:20:09 +00:00
|
|
|
jform_VMTbbbDPZB_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the VMTbbbD Some function
|
|
|
|
function main_source_VMTbbbD_SomeFunc(main_source_VMTbbbD)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (main_source_VMTbbbD == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the pCbDvfi function
|
|
|
|
function pCbDvfi(addcalculation_pCbDvfi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (addcalculation_pCbDvfi == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_calculation').closest('.control-group').show();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (jform_pCbDvfiYUx_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-26 00:20:09 +00:00
|
|
|
jform_pCbDvfiYUx_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_calculation').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_pCbDvfiYUx_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-26 00:20:09 +00:00
|
|
|
jform_pCbDvfiYUx_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the OqYoaAC function
|
|
|
|
function OqYoaAC(addcalculation_OqYoaAC,gettype_OqYoaAC)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(addcalculation_OqYoaAC) && addcalculation_OqYoaAC.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_OqYoaAC = addcalculation_OqYoaAC;
|
|
|
|
var addcalculation_OqYoaAC = [];
|
|
|
|
addcalculation_OqYoaAC.push(temp_OqYoaAC);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(addcalculation_OqYoaAC))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var addcalculation_OqYoaAC = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var addcalculation = addcalculation_OqYoaAC.some(addcalculation_OqYoaAC_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_OqYoaAC) && gettype_OqYoaAC.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_OqYoaAC = gettype_OqYoaAC;
|
|
|
|
var gettype_OqYoaAC = [];
|
|
|
|
gettype_OqYoaAC.push(temp_OqYoaAC);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_OqYoaAC))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_OqYoaAC = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_OqYoaAC.some(gettype_OqYoaAC_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-26 00:20:09 +00:00
|
|
|
// the OqYoaAC Some function
|
|
|
|
function addcalculation_OqYoaAC_SomeFunc(addcalculation_OqYoaAC)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (addcalculation_OqYoaAC == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the OqYoaAC Some function
|
|
|
|
function gettype_OqYoaAC_SomeFunc(gettype_OqYoaAC)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_OqYoaAC == 1 || gettype_OqYoaAC == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the aMTREzM function
|
|
|
|
function aMTREzM(addcalculation_aMTREzM,gettype_aMTREzM)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(addcalculation_aMTREzM) && addcalculation_aMTREzM.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_aMTREzM = addcalculation_aMTREzM;
|
|
|
|
var addcalculation_aMTREzM = [];
|
|
|
|
addcalculation_aMTREzM.push(temp_aMTREzM);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(addcalculation_aMTREzM))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var addcalculation_aMTREzM = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var addcalculation = addcalculation_aMTREzM.some(addcalculation_aMTREzM_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_aMTREzM) && gettype_aMTREzM.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_aMTREzM = gettype_aMTREzM;
|
|
|
|
var gettype_aMTREzM = [];
|
|
|
|
gettype_aMTREzM.push(temp_aMTREzM);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_aMTREzM))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_aMTREzM = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_aMTREzM.some(gettype_aMTREzM_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-26 00:20:09 +00:00
|
|
|
// the aMTREzM Some function
|
|
|
|
function addcalculation_aMTREzM_SomeFunc(addcalculation_aMTREzM)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (addcalculation_aMTREzM == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the aMTREzM Some function
|
|
|
|
function gettype_aMTREzM_SomeFunc(gettype_aMTREzM)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_aMTREzM == 2 || gettype_aMTREzM == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the SCPJZNX function
|
|
|
|
function SCPJZNX(main_source_SCPJZNX)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(main_source_SCPJZNX) && main_source_SCPJZNX.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_SCPJZNX = main_source_SCPJZNX;
|
|
|
|
var main_source_SCPJZNX = [];
|
|
|
|
main_source_SCPJZNX.push(temp_SCPJZNX);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(main_source_SCPJZNX))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_SCPJZNX = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source = main_source_SCPJZNX.some(main_source_SCPJZNX_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-26 00:20:09 +00:00
|
|
|
if (jform_SCPJZNXahA_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-26 00:20:09 +00:00
|
|
|
jform_SCPJZNXahA_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_custom_get').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_SCPJZNXahA_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-26 00:20:09 +00:00
|
|
|
jform_SCPJZNXahA_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the SCPJZNX Some function
|
|
|
|
function main_source_SCPJZNX_SomeFunc(main_source_SCPJZNX)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (main_source_SCPJZNX == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the aTmUxUz function
|
|
|
|
function aTmUxUz(main_source_aTmUxUz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(main_source_aTmUxUz) && main_source_aTmUxUz.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_aTmUxUz = main_source_aTmUxUz;
|
|
|
|
var main_source_aTmUxUz = [];
|
|
|
|
main_source_aTmUxUz.push(temp_aTmUxUz);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(main_source_aTmUxUz))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source_aTmUxUz = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var main_source = main_source_aTmUxUz.some(main_source_aTmUxUz_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-26 00:20:09 +00:00
|
|
|
// the aTmUxUz Some function
|
|
|
|
function main_source_aTmUxUz_SomeFunc(main_source_aTmUxUz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (main_source_aTmUxUz == 1 || main_source_aTmUxUz == 2)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the nCtpSbY function
|
|
|
|
function nCtpSbY(add_php_before_getitem_nCtpSbY,gettype_nCtpSbY)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(add_php_before_getitem_nCtpSbY) && add_php_before_getitem_nCtpSbY.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_nCtpSbY = add_php_before_getitem_nCtpSbY;
|
|
|
|
var add_php_before_getitem_nCtpSbY = [];
|
|
|
|
add_php_before_getitem_nCtpSbY.push(temp_nCtpSbY);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(add_php_before_getitem_nCtpSbY))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_before_getitem_nCtpSbY = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_before_getitem = add_php_before_getitem_nCtpSbY.some(add_php_before_getitem_nCtpSbY_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_nCtpSbY) && gettype_nCtpSbY.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_nCtpSbY = gettype_nCtpSbY;
|
|
|
|
var gettype_nCtpSbY = [];
|
|
|
|
gettype_nCtpSbY.push(temp_nCtpSbY);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_nCtpSbY))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_nCtpSbY = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_nCtpSbY.some(gettype_nCtpSbY_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-26 00:20:09 +00:00
|
|
|
if (jform_nCtpSbYHrI_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-26 00:20:09 +00:00
|
|
|
jform_nCtpSbYHrI_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_getitem').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_nCtpSbYHrI_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-26 00:20:09 +00:00
|
|
|
jform_nCtpSbYHrI_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the nCtpSbY Some function
|
|
|
|
function add_php_before_getitem_nCtpSbY_SomeFunc(add_php_before_getitem_nCtpSbY)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (add_php_before_getitem_nCtpSbY == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the nCtpSbY Some function
|
|
|
|
function gettype_nCtpSbY_SomeFunc(gettype_nCtpSbY)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_nCtpSbY == 1 || gettype_nCtpSbY == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the SpukdYZ function
|
|
|
|
function SpukdYZ(add_php_after_getitem_SpukdYZ,gettype_SpukdYZ)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(add_php_after_getitem_SpukdYZ) && add_php_after_getitem_SpukdYZ.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_SpukdYZ = add_php_after_getitem_SpukdYZ;
|
|
|
|
var add_php_after_getitem_SpukdYZ = [];
|
|
|
|
add_php_after_getitem_SpukdYZ.push(temp_SpukdYZ);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(add_php_after_getitem_SpukdYZ))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_after_getitem_SpukdYZ = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_after_getitem = add_php_after_getitem_SpukdYZ.some(add_php_after_getitem_SpukdYZ_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_SpukdYZ) && gettype_SpukdYZ.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_SpukdYZ = gettype_SpukdYZ;
|
|
|
|
var gettype_SpukdYZ = [];
|
|
|
|
gettype_SpukdYZ.push(temp_SpukdYZ);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_SpukdYZ))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_SpukdYZ = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_SpukdYZ.some(gettype_SpukdYZ_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-26 00:20:09 +00:00
|
|
|
if (jform_SpukdYZHYN_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-26 00:20:09 +00:00
|
|
|
jform_SpukdYZHYN_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_getitem').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_SpukdYZHYN_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-26 00:20:09 +00:00
|
|
|
jform_SpukdYZHYN_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the SpukdYZ Some function
|
|
|
|
function add_php_after_getitem_SpukdYZ_SomeFunc(add_php_after_getitem_SpukdYZ)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (add_php_after_getitem_SpukdYZ == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the SpukdYZ Some function
|
|
|
|
function gettype_SpukdYZ_SomeFunc(gettype_SpukdYZ)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_SpukdYZ == 1 || gettype_SpukdYZ == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the TnpAxMN function
|
|
|
|
function TnpAxMN(gettype_TnpAxMN)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_TnpAxMN) && gettype_TnpAxMN.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_TnpAxMN = gettype_TnpAxMN;
|
|
|
|
var gettype_TnpAxMN = [];
|
|
|
|
gettype_TnpAxMN.push(temp_TnpAxMN);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_TnpAxMN))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_TnpAxMN = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_TnpAxMN.some(gettype_TnpAxMN_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-26 00:20:09 +00:00
|
|
|
if (jform_TnpAxMNUyP_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-26 00:20:09 +00:00
|
|
|
jform_TnpAxMNUyP_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (jform_TnpAxMNRhj_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-26 00:20:09 +00:00
|
|
|
jform_TnpAxMNRhj_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_TnpAxMNUyP_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-26 00:20:09 +00:00
|
|
|
jform_TnpAxMNUyP_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_TnpAxMNRhj_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-26 00:20:09 +00:00
|
|
|
jform_TnpAxMNRhj_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the TnpAxMN Some function
|
|
|
|
function gettype_TnpAxMN_SomeFunc(gettype_TnpAxMN)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_TnpAxMN == 1 || gettype_TnpAxMN == 3)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the CXzQkvO function
|
|
|
|
function CXzQkvO(add_php_getlistquery_CXzQkvO,gettype_CXzQkvO)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(add_php_getlistquery_CXzQkvO) && add_php_getlistquery_CXzQkvO.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_CXzQkvO = add_php_getlistquery_CXzQkvO;
|
|
|
|
var add_php_getlistquery_CXzQkvO = [];
|
|
|
|
add_php_getlistquery_CXzQkvO.push(temp_CXzQkvO);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(add_php_getlistquery_CXzQkvO))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_getlistquery_CXzQkvO = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_getlistquery = add_php_getlistquery_CXzQkvO.some(add_php_getlistquery_CXzQkvO_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_CXzQkvO) && gettype_CXzQkvO.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_CXzQkvO = gettype_CXzQkvO;
|
|
|
|
var gettype_CXzQkvO = [];
|
|
|
|
gettype_CXzQkvO.push(temp_CXzQkvO);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_CXzQkvO))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_CXzQkvO = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_CXzQkvO.some(gettype_CXzQkvO_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-26 00:20:09 +00:00
|
|
|
if (jform_CXzQkvOkhI_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-26 00:20:09 +00:00
|
|
|
jform_CXzQkvOkhI_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_getlistquery').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_CXzQkvOkhI_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-26 00:20:09 +00:00
|
|
|
jform_CXzQkvOkhI_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the CXzQkvO Some function
|
|
|
|
function add_php_getlistquery_CXzQkvO_SomeFunc(add_php_getlistquery_CXzQkvO)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (add_php_getlistquery_CXzQkvO == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the CXzQkvO Some function
|
|
|
|
function gettype_CXzQkvO_SomeFunc(gettype_CXzQkvO)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_CXzQkvO == 2 || gettype_CXzQkvO == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the VRMRVLI function
|
|
|
|
function VRMRVLI(add_php_before_getitems_VRMRVLI,gettype_VRMRVLI)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(add_php_before_getitems_VRMRVLI) && add_php_before_getitems_VRMRVLI.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_VRMRVLI = add_php_before_getitems_VRMRVLI;
|
|
|
|
var add_php_before_getitems_VRMRVLI = [];
|
|
|
|
add_php_before_getitems_VRMRVLI.push(temp_VRMRVLI);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(add_php_before_getitems_VRMRVLI))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_before_getitems_VRMRVLI = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_before_getitems = add_php_before_getitems_VRMRVLI.some(add_php_before_getitems_VRMRVLI_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_VRMRVLI) && gettype_VRMRVLI.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_VRMRVLI = gettype_VRMRVLI;
|
|
|
|
var gettype_VRMRVLI = [];
|
|
|
|
gettype_VRMRVLI.push(temp_VRMRVLI);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_VRMRVLI))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_VRMRVLI = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_VRMRVLI.some(gettype_VRMRVLI_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-26 00:20:09 +00:00
|
|
|
if (jform_VRMRVLIqyW_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-26 00:20:09 +00:00
|
|
|
jform_VRMRVLIqyW_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_getitems').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_VRMRVLIqyW_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-26 00:20:09 +00:00
|
|
|
jform_VRMRVLIqyW_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the VRMRVLI Some function
|
|
|
|
function add_php_before_getitems_VRMRVLI_SomeFunc(add_php_before_getitems_VRMRVLI)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (add_php_before_getitems_VRMRVLI == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the VRMRVLI Some function
|
|
|
|
function gettype_VRMRVLI_SomeFunc(gettype_VRMRVLI)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_VRMRVLI == 2 || gettype_VRMRVLI == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the DYujMuN function
|
|
|
|
function DYujMuN(add_php_after_getitems_DYujMuN,gettype_DYujMuN)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(add_php_after_getitems_DYujMuN) && add_php_after_getitems_DYujMuN.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_DYujMuN = add_php_after_getitems_DYujMuN;
|
|
|
|
var add_php_after_getitems_DYujMuN = [];
|
|
|
|
add_php_after_getitems_DYujMuN.push(temp_DYujMuN);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(add_php_after_getitems_DYujMuN))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_after_getitems_DYujMuN = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_after_getitems = add_php_after_getitems_DYujMuN.some(add_php_after_getitems_DYujMuN_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_DYujMuN) && gettype_DYujMuN.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_DYujMuN = gettype_DYujMuN;
|
|
|
|
var gettype_DYujMuN = [];
|
|
|
|
gettype_DYujMuN.push(temp_DYujMuN);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_DYujMuN))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_DYujMuN = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_DYujMuN.some(gettype_DYujMuN_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-26 00:20:09 +00:00
|
|
|
if (jform_DYujMuNvkU_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-26 00:20:09 +00:00
|
|
|
jform_DYujMuNvkU_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_getitems').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_DYujMuNvkU_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-26 00:20:09 +00:00
|
|
|
jform_DYujMuNvkU_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the DYujMuN Some function
|
|
|
|
function add_php_after_getitems_DYujMuN_SomeFunc(add_php_after_getitems_DYujMuN)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (add_php_after_getitems_DYujMuN == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the DYujMuN Some function
|
|
|
|
function gettype_DYujMuN_SomeFunc(gettype_DYujMuN)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_DYujMuN == 2 || gettype_DYujMuN == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the okMXdwK function
|
|
|
|
function okMXdwK(gettype_okMXdwK)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_okMXdwK) && gettype_okMXdwK.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_okMXdwK = gettype_okMXdwK;
|
|
|
|
var gettype_okMXdwK = [];
|
|
|
|
gettype_okMXdwK.push(temp_okMXdwK);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_okMXdwK))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_okMXdwK = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_okMXdwK.some(gettype_okMXdwK_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-26 00:20:09 +00:00
|
|
|
if (jform_okMXdwKUyo_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-26 00:20:09 +00:00
|
|
|
jform_okMXdwKUyo_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (jform_okMXdwKDLU_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-26 00:20:09 +00:00
|
|
|
jform_okMXdwKDLU_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (jform_okMXdwKAgT_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-26 00:20:09 +00:00
|
|
|
jform_okMXdwKAgT_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_okMXdwKUyo_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-26 00:20:09 +00:00
|
|
|
jform_okMXdwKUyo_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_okMXdwKDLU_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-26 00:20:09 +00:00
|
|
|
jform_okMXdwKDLU_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_okMXdwKAgT_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-26 00:20:09 +00:00
|
|
|
jform_okMXdwKAgT_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the okMXdwK Some function
|
|
|
|
function gettype_okMXdwK_SomeFunc(gettype_okMXdwK)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_okMXdwK == 2 || gettype_okMXdwK == 4)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the Twzodcz function
|
|
|
|
function Twzodcz(gettype_Twzodcz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
if (isSet(gettype_Twzodcz) && gettype_Twzodcz.constructor !== Array)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var temp_Twzodcz = gettype_Twzodcz;
|
|
|
|
var gettype_Twzodcz = [];
|
|
|
|
gettype_Twzodcz.push(temp_Twzodcz);
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
else if (!isSet(gettype_Twzodcz))
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype_Twzodcz = [];
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
2016-02-26 00:20:09 +00:00
|
|
|
var gettype = gettype_Twzodcz.some(gettype_Twzodcz_SomeFunc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (gettype)
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').show();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (jform_TwzodczXMd_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-26 00:20:09 +00:00
|
|
|
jform_TwzodczXMd_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_pagination').closest('.control-group').hide();
|
2016-02-26 00:20:09 +00:00
|
|
|
if (!jform_TwzodczXMd_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-26 00:20:09 +00:00
|
|
|
jform_TwzodczXMd_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// the Twzodcz Some function
|
|
|
|
function gettype_Twzodcz_SomeFunc(gettype_Twzodcz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 00:20:09 +00:00
|
|
|
if (gettype_Twzodcz == 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('');
|
|
|
|
}
|
|
|
|
}
|