2021-03-05 03:08:47 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
2022-07-09 15:45:08 +00:00
|
|
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
|
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
2021-03-05 03:08:47 +00:00
|
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
2017-11-26 00:29:08 +00:00
|
|
|
// Some Global Values
|
2024-04-21 23:07:22 +00:00
|
|
|
jform_vvvvwarvxc_required = false;
|
|
|
|
jform_vvvvwbfvxd_required = false;
|
|
|
|
jform_vvvvwbfvxe_required = false;
|
2017-11-26 00:29:08 +00:00
|
|
|
|
|
|
|
// Initial Script
|
2024-03-09 19:47:28 +00:00
|
|
|
document.addEventListener('DOMContentLoaded', function()
|
2017-11-26 00:29:08 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwap = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwap = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwap(how_vvvvwap,target_vvvvwap);
|
2019-07-15 20:00:46 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwar = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwar = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwar(how_vvvvwar,target_vvvvwar);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwat = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwat = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwat(how_vvvvwat,target_vvvvwat);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwav = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwav = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwav(how_vvvvwav,target_vvvvwav);
|
2024-04-09 11:49:29 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwax = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwax = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwax(how_vvvvwax,target_vvvvwax);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvway = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
var how_vvvvway = jQuery("#jform_how").val();
|
|
|
|
vvvvway(target_vvvvway,how_vvvvway);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwaz = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwaz = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwaz(how_vvvvwaz,target_vvvvwaz);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwba = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
var how_vvvvwba = jQuery("#jform_how").val();
|
|
|
|
vvvvwba(target_vvvvwba,how_vvvvwba);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwbb = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwbb = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwbb(how_vvvvwbb,target_vvvvwbb);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwbc = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
var how_vvvvwbc = jQuery("#jform_how").val();
|
|
|
|
vvvvwbc(target_vvvvwbc,how_vvvvwbc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwbd = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
var type_vvvvwbd = jQuery("#jform_type input[type='radio']:checked").val();
|
|
|
|
vvvvwbd(target_vvvvwbd,type_vvvvwbd);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwbf = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwbf(target_vvvvwbf);
|
2019-11-09 12:49:20 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwbg = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwbg(target_vvvvwbg);
|
2019-08-08 15:35:58 +00:00
|
|
|
});
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwap function
|
|
|
|
function vvvvwap(how_vvvvwap,target_vvvvwap)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwap) && how_vvvvwap.constructor !== Array)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwap = how_vvvvwap;
|
|
|
|
var how_vvvvwap = [];
|
|
|
|
how_vvvvwap.push(temp_vvvvwap);
|
2018-08-14 08:25:46 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwap))
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwap = [];
|
2018-08-14 08:25:46 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwap.some(how_vvvvwap_SomeFunc);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwap) && target_vvvvwap.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwap = target_vvvvwap;
|
|
|
|
var target_vvvvwap = [];
|
|
|
|
target_vvvvwap.push(temp_vvvvwap);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwap))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwap = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwap.some(target_vvvvwap_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2018-08-23 01:37:42 +00:00
|
|
|
// set this function logic
|
2019-10-16 20:34:36 +00:00
|
|
|
if (how && target)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwap Some function
|
|
|
|
function how_vvvvwap_SomeFunc(how_vvvvwap)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwap == 2)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwap Some function
|
|
|
|
function target_vvvvwap_SomeFunc(target_vvvvwap)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwap == 1)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
return true;
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2019-10-16 20:34:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwar function
|
|
|
|
function vvvvwar(how_vvvvwar,target_vvvvwar)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwar) && how_vvvvwar.constructor !== Array)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwar = how_vvvvwar;
|
|
|
|
var how_vvvvwar = [];
|
|
|
|
how_vvvvwar.push(temp_vvvvwar);
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwar))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwar = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwar.some(how_vvvvwar_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwar) && target_vvvvwar.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwar = target_vvvvwar;
|
|
|
|
var target_vvvvwar = [];
|
|
|
|
target_vvvvwar.push(temp_vvvvwar);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwar))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwar = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwar.some(target_vvvvwar_SomeFunc);
|
2018-08-23 01:37:42 +00:00
|
|
|
|
|
|
|
|
2019-01-29 14:43:27 +00:00
|
|
|
// set this function logic
|
2019-10-16 20:34:36 +00:00
|
|
|
if (how && target)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('#jform_php_setdocument').closest('.control-group').show();
|
|
|
|
// add required attribute to php_setdocument field
|
2024-04-21 23:07:22 +00:00
|
|
|
if (jform_vvvvwarvxc_required)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_setdocument',0);
|
|
|
|
jQuery('#jform_php_setdocument').prop('required','required');
|
|
|
|
jQuery('#jform_php_setdocument').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_setdocument').addClass('required');
|
2024-04-21 23:07:22 +00:00
|
|
|
jform_vvvvwarvxc_required = false;
|
2019-08-08 15:35:58 +00:00
|
|
|
}
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
|
|
|
// remove required attribute from php_setdocument field
|
2024-04-21 23:07:22 +00:00
|
|
|
if (!jform_vvvvwarvxc_required)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_setdocument',1);
|
|
|
|
jQuery('#jform_php_setdocument').removeAttr('required');
|
|
|
|
jQuery('#jform_php_setdocument').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_setdocument').removeClass('required');
|
2024-04-21 23:07:22 +00:00
|
|
|
jform_vvvvwarvxc_required = true;
|
2019-08-08 15:35:58 +00:00
|
|
|
}
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwar Some function
|
|
|
|
function how_vvvvwar_SomeFunc(how_vvvvwar)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwar == 3)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwar Some function
|
|
|
|
function target_vvvvwar_SomeFunc(target_vvvvwar)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwar == 1)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
return true;
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2019-10-16 20:34:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwat function
|
|
|
|
function vvvvwat(how_vvvvwat,target_vvvvwat)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwat) && how_vvvvwat.constructor !== Array)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwat = how_vvvvwat;
|
|
|
|
var how_vvvvwat = [];
|
|
|
|
how_vvvvwat.push(temp_vvvvwat);
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwat))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwat = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwat.some(how_vvvvwat_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwat) && target_vvvvwat.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwat = target_vvvvwat;
|
|
|
|
var target_vvvvwat = [];
|
|
|
|
target_vvvvwat.push(temp_vvvvwat);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwat))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwat = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwat.some(target_vvvvwat_SomeFunc);
|
2019-01-29 14:43:27 +00:00
|
|
|
|
|
|
|
|
2019-05-15 17:39:27 +00:00
|
|
|
// set this function logic
|
2019-10-16 20:34:36 +00:00
|
|
|
if (how && target)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('.note_display_library_config').closest('.control-group').show();
|
2019-05-15 17:39:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('.note_display_library_config').closest('.control-group').hide();
|
2019-05-15 17:39:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwat Some function
|
|
|
|
function how_vvvvwat_SomeFunc(how_vvvvwat)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwat == 2 || how_vvvvwat == 3)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwat Some function
|
|
|
|
function target_vvvvwat_SomeFunc(target_vvvvwat)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwat == 1)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
return true;
|
2019-05-15 17:39:27 +00:00
|
|
|
}
|
2019-10-16 20:34:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwav function
|
|
|
|
function vvvvwav(how_vvvvwav,target_vvvvwav)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwav) && how_vvvvwav.constructor !== Array)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwav = how_vvvvwav;
|
|
|
|
var how_vvvvwav = [];
|
|
|
|
how_vvvvwav.push(temp_vvvvwav);
|
2019-05-15 17:39:27 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwav))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwav = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwav.some(how_vvvvwav_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwav) && target_vvvvwav.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwav = target_vvvvwav;
|
|
|
|
var target_vvvvwav = [];
|
|
|
|
target_vvvvwav.push(temp_vvvvwav);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwav))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwav = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwav.some(target_vvvvwav_SomeFunc);
|
2019-05-15 17:39:27 +00:00
|
|
|
|
|
|
|
|
2019-06-12 20:06:19 +00:00
|
|
|
// set this function logic
|
2019-10-16 20:34:36 +00:00
|
|
|
if (how && target)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
|
2019-06-12 20:06:19 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
|
2019-06-12 20:06:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwav Some function
|
|
|
|
function how_vvvvwav_SomeFunc(how_vvvvwav)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwav == 1 || how_vvvvwav == 2 || how_vvvvwav == 3)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwav Some function
|
|
|
|
function target_vvvvwav_SomeFunc(target_vvvvwav)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwav == 1)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwax function
|
|
|
|
function vvvvwax(how_vvvvwax,target_vvvvwax)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwax) && how_vvvvwax.constructor !== Array)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwax = how_vvvvwax;
|
|
|
|
var how_vvvvwax = [];
|
|
|
|
how_vvvvwax.push(temp_vvvvwax);
|
2019-06-12 20:06:19 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwax))
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwax = [];
|
2019-06-12 20:06:19 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwax.some(how_vvvvwax_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwax) && target_vvvvwax.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwax = target_vvvvwax;
|
|
|
|
var target_vvvvwax = [];
|
|
|
|
target_vvvvwax.push(temp_vvvvwax);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwax))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwax = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwax.some(target_vvvvwax_SomeFunc);
|
2019-06-12 20:06:19 +00:00
|
|
|
|
|
|
|
|
2019-06-12 20:36:05 +00:00
|
|
|
// set this function logic
|
2019-10-16 20:34:36 +00:00
|
|
|
if (how && target)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('.note_no_behaviour_one').closest('.control-group').show();
|
|
|
|
jQuery('.note_no_behaviour_three').closest('.control-group').show();
|
|
|
|
jQuery('.note_no_behaviour_two').closest('.control-group').show();
|
2019-06-12 20:36:05 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2019-08-08 15:35:58 +00:00
|
|
|
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
|
|
|
|
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
|
|
|
|
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
|
2019-06-12 20:36:05 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwax Some function
|
|
|
|
function how_vvvvwax_SomeFunc(how_vvvvwax)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwax == 0)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwax Some function
|
|
|
|
function target_vvvvwax_SomeFunc(target_vvvvwax)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwax == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvway function
|
|
|
|
function vvvvway(target_vvvvway,how_vvvvway)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvway) && target_vvvvway.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvway = target_vvvvway;
|
|
|
|
var target_vvvvway = [];
|
|
|
|
target_vvvvway.push(temp_vvvvway);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvway))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvway = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvway.some(target_vvvvway_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvway) && how_vvvvway.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvway = how_vvvvway;
|
|
|
|
var how_vvvvway = [];
|
|
|
|
how_vvvvway.push(temp_vvvvway);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvway))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvway = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvway.some(how_vvvvway_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (target && how)
|
|
|
|
{
|
|
|
|
jQuery('.note_no_behaviour_one').closest('.control-group').show();
|
|
|
|
jQuery('.note_no_behaviour_three').closest('.control-group').show();
|
|
|
|
jQuery('.note_no_behaviour_two').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
|
|
|
|
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
|
|
|
|
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvway Some function
|
|
|
|
function target_vvvvway_SomeFunc(target_vvvvway)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvway == 1)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvway Some function
|
|
|
|
function how_vvvvway_SomeFunc(how_vvvvway)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvway == 0)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwaz function
|
|
|
|
function vvvvwaz(how_vvvvwaz,target_vvvvwaz)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwaz) && how_vvvvwaz.constructor !== Array)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwaz = how_vvvvwaz;
|
|
|
|
var how_vvvvwaz = [];
|
|
|
|
how_vvvvwaz.push(temp_vvvvwaz);
|
2019-06-12 20:36:05 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwaz))
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwaz = [];
|
2019-06-12 20:36:05 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwaz.some(how_vvvvwaz_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwaz) && target_vvvvwaz.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwaz = target_vvvvwaz;
|
|
|
|
var target_vvvvwaz = [];
|
|
|
|
target_vvvvwaz.push(temp_vvvvwaz);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwaz))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwaz = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwaz.some(target_vvvvwaz_SomeFunc);
|
2019-06-12 20:36:05 +00:00
|
|
|
|
|
|
|
|
2019-08-08 15:35:58 +00:00
|
|
|
// set this function logic
|
2019-10-16 20:34:36 +00:00
|
|
|
if (how && target)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
|
|
|
|
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
|
|
|
|
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwaz Some function
|
|
|
|
function how_vvvvwaz_SomeFunc(how_vvvvwaz)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwaz == 1)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwaz Some function
|
|
|
|
function target_vvvvwaz_SomeFunc(target_vvvvwaz)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwaz == 1)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
return true;
|
2019-08-08 15:35:58 +00:00
|
|
|
}
|
2019-10-16 20:34:36 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwba function
|
|
|
|
function vvvvwba(target_vvvvwba,how_vvvvwba)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwba) && target_vvvvwba.constructor !== Array)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwba = target_vvvvwba;
|
|
|
|
var target_vvvvwba = [];
|
|
|
|
target_vvvvwba.push(temp_vvvvwba);
|
2019-08-08 15:35:58 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwba))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwba = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwba.some(target_vvvvwba_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwba) && how_vvvvwba.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwba = how_vvvvwba;
|
|
|
|
var how_vvvvwba = [];
|
|
|
|
how_vvvvwba.push(temp_vvvvwba);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwba))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwba = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwba.some(how_vvvvwba_SomeFunc);
|
2019-08-08 15:35:58 +00:00
|
|
|
|
|
|
|
|
2017-12-10 19:17:26 +00:00
|
|
|
// set this function logic
|
2019-10-16 20:34:36 +00:00
|
|
|
if (target && how)
|
|
|
|
{
|
|
|
|
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
|
|
|
|
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
|
|
|
|
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwba Some function
|
|
|
|
function target_vvvvwba_SomeFunc(target_vvvvwba)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwba == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwba Some function
|
|
|
|
function how_vvvvwba_SomeFunc(how_vvvvwba)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwba == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbb function
|
|
|
|
function vvvvwbb(how_vvvvwbb,target_vvvvwbb)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwbb) && how_vvvvwbb.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwbb = how_vvvvwbb;
|
|
|
|
var how_vvvvwbb = [];
|
|
|
|
how_vvvvwbb.push(temp_vvvvwbb);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwbb))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwbb = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwbb.some(how_vvvvwbb_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwbb) && target_vvvvwbb.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwbb = target_vvvvwbb;
|
|
|
|
var target_vvvvwbb = [];
|
|
|
|
target_vvvvwbb.push(temp_vvvvwbb);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwbb))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwbb = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwbb.some(target_vvvvwbb_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (how && target)
|
2017-12-10 19:17:26 +00:00
|
|
|
{
|
|
|
|
jQuery('.note_build_in_behaviour_one').closest('.control-group').show();
|
|
|
|
jQuery('.note_build_in_behaviour_three').closest('.control-group').show();
|
|
|
|
jQuery('.note_build_in_behaviour_two').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_build_in_behaviour_one').closest('.control-group').hide();
|
|
|
|
jQuery('.note_build_in_behaviour_three').closest('.control-group').hide();
|
|
|
|
jQuery('.note_build_in_behaviour_two').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbb Some function
|
|
|
|
function how_vvvvwbb_SomeFunc(how_vvvvwbb)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwbb == 4)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbb Some function
|
|
|
|
function target_vvvvwbb_SomeFunc(target_vvvvwbb)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwbb == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbc function
|
|
|
|
function vvvvwbc(target_vvvvwbc,how_vvvvwbc)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(target_vvvvwbc) && target_vvvvwbc.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwbc = target_vvvvwbc;
|
|
|
|
var target_vvvvwbc = [];
|
|
|
|
target_vvvvwbc.push(temp_vvvvwbc);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(target_vvvvwbc))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var target_vvvvwbc = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var target = target_vvvvwbc.some(target_vvvvwbc_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
if (isSet(how_vvvvwbc) && how_vvvvwbc.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var temp_vvvvwbc = how_vvvvwbc;
|
|
|
|
var how_vvvvwbc = [];
|
|
|
|
how_vvvvwbc.push(temp_vvvvwbc);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
else if (!isSet(how_vvvvwbc))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-21 23:07:22 +00:00
|
|
|
var how_vvvvwbc = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-21 23:07:22 +00:00
|
|
|
var how = how_vvvvwbc.some(how_vvvvwbc_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
// set this function logic
|
|
|
|
if (target && how)
|
|
|
|
{
|
|
|
|
jQuery('.note_build_in_behaviour_one').closest('.control-group').show();
|
|
|
|
jQuery('.note_build_in_behaviour_three').closest('.control-group').show();
|
|
|
|
jQuery('.note_build_in_behaviour_two').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_build_in_behaviour_one').closest('.control-group').hide();
|
|
|
|
jQuery('.note_build_in_behaviour_three').closest('.control-group').hide();
|
|
|
|
jQuery('.note_build_in_behaviour_two').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbc Some function
|
|
|
|
function target_vvvvwbc_SomeFunc(target_vvvvwbc)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwbc == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbc Some function
|
|
|
|
function how_vvvvwbc_SomeFunc(how_vvvvwbc)
|
2017-12-10 19:17:26 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (how_vvvvwbc == 4)
|
2017-12-10 19:17:26 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbd function
|
|
|
|
function vvvvwbd(target_vvvvwbd,type_vvvvwbd)
|
2017-12-03 18:09:04 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwbd == 1 && type_vvvvwbd == 2)
|
2017-12-03 18:09:04 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_libraries').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_libraries').closest('.control-group').hide();
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbf function
|
|
|
|
function vvvvwbf(target_vvvvwbf)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwbf == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_how').closest('.control-group').show();
|
|
|
|
// add required attribute to how field
|
2024-04-21 23:07:22 +00:00
|
|
|
if (jform_vvvvwbfvxd_required)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('how',0);
|
|
|
|
jQuery('#jform_how').prop('required','required');
|
|
|
|
jQuery('#jform_how').attr('aria-required',true);
|
|
|
|
jQuery('#jform_how').addClass('required');
|
2024-04-21 23:07:22 +00:00
|
|
|
jform_vvvvwbfvxd_required = false;
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_type').closest('.control-group').show();
|
|
|
|
// add required attribute to type field
|
2024-04-21 23:07:22 +00:00
|
|
|
if (jform_vvvvwbfvxe_required)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('type',0);
|
|
|
|
jQuery('#jform_type').prop('required','required');
|
|
|
|
jQuery('#jform_type').attr('aria-required',true);
|
|
|
|
jQuery('#jform_type').addClass('required');
|
2024-04-21 23:07:22 +00:00
|
|
|
jform_vvvvwbfvxe_required = false;
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_how').closest('.control-group').hide();
|
|
|
|
// remove required attribute from how field
|
2024-04-21 23:07:22 +00:00
|
|
|
if (!jform_vvvvwbfvxd_required)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('how',1);
|
|
|
|
jQuery('#jform_how').removeAttr('required');
|
|
|
|
jQuery('#jform_how').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_how').removeClass('required');
|
2024-04-21 23:07:22 +00:00
|
|
|
jform_vvvvwbfvxd_required = true;
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_type').closest('.control-group').hide();
|
|
|
|
// remove required attribute from type field
|
2024-04-21 23:07:22 +00:00
|
|
|
if (!jform_vvvvwbfvxe_required)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('type',1);
|
|
|
|
jQuery('#jform_type').removeAttr('required');
|
|
|
|
jQuery('#jform_type').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_type').removeClass('required');
|
2024-04-21 23:07:22 +00:00
|
|
|
jform_vvvvwbfvxe_required = true;
|
2017-12-03 18:09:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-21 23:07:22 +00:00
|
|
|
// the vvvvwbg function
|
|
|
|
function vvvvwbg(target_vvvvwbg)
|
2019-11-09 12:49:20 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-21 23:07:22 +00:00
|
|
|
if (target_vvvvwbg == 2)
|
2019-11-09 12:49:20 +00:00
|
|
|
{
|
|
|
|
jQuery('.note_yes_behaviour_library').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_yes_behaviour_library').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-27 21:05:28 +00:00
|
|
|
// update fields required
|
|
|
|
function updateFieldRequired(name, status) {
|
|
|
|
// check if not_required exist
|
2024-03-09 19:47:28 +00:00
|
|
|
if (document.getElementById('jform_not_required')) {
|
2020-02-27 21:05:28 +00:00
|
|
|
var not_required = jQuery('#jform_not_required').val().split(",");
|
2017-11-26 00:29:08 +00:00
|
|
|
|
2020-02-27 21:05:28 +00:00
|
|
|
if(status == 1)
|
2017-11-26 00:29:08 +00:00
|
|
|
{
|
2020-02-27 21:05:28 +00:00
|
|
|
not_required.push(name);
|
2017-11-26 00:29:08 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2020-02-27 21:05:28 +00:00
|
|
|
not_required = removeFieldFromNotRequired(not_required, name);
|
2017-11-26 00:29:08 +00:00
|
|
|
}
|
2020-02-27 21:05:28 +00:00
|
|
|
|
|
|
|
jQuery('#jform_not_required').val(fixNotRequiredArray(not_required).toString());
|
2017-11-26 00:29:08 +00:00
|
|
|
}
|
2020-02-27 21:05:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// remove field from not_required
|
|
|
|
function removeFieldFromNotRequired(array, what) {
|
|
|
|
return array.filter(function(element){
|
|
|
|
return element !== what;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// fix not required array
|
|
|
|
function fixNotRequiredArray(array) {
|
|
|
|
var seen = {};
|
|
|
|
return removeEmptyFromNotRequiredArray(array).filter(function(item) {
|
|
|
|
return seen.hasOwnProperty(item) ? false : (seen[item] = true);
|
|
|
|
});
|
|
|
|
}
|
2017-11-26 00:29:08 +00:00
|
|
|
|
2020-02-27 21:05:28 +00:00
|
|
|
// remove empty from not_required array
|
|
|
|
function removeEmptyFromNotRequiredArray(array) {
|
|
|
|
return array.filter(function (el) {
|
|
|
|
// remove ( 一_一) as well - lol
|
|
|
|
return (el.length > 0 && '一_一' !== el);
|
|
|
|
});
|
2017-11-26 00:29:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// the isSet function
|
|
|
|
function isSet(val)
|
|
|
|
{
|
|
|
|
if ((val != undefined) && (val != null) && 0 !== val.length){
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-03-11 02:44:43 +00:00
|
|
|
|
2017-11-26 00:29:08 +00:00
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2018-01-15 15:54:05 +00:00
|
|
|
// get the linked details
|
|
|
|
getLinked();
|
2017-11-26 00:29:08 +00:00
|
|
|
// now load the displays
|
|
|
|
getAjaxDisplay('library_config');
|
|
|
|
getAjaxDisplay('library_files_folders_urls');
|
2019-01-31 21:44:21 +00:00
|
|
|
|
|
|
|
// check and load all the customcode edit buttons
|
|
|
|
setTimeout(getEditCustomCodeButtons, 300);
|
2017-11-26 00:29:08 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
function addData(result,where){
|
|
|
|
jQuery(result).insertAfter(jQuery(where).closest('.control-group'));
|
|
|
|
}
|
2019-01-31 21:44:21 +00:00
|
|
|
|
|
|
|
function getAjaxDisplay(type){
|
2023-10-18 07:26:30 +00:00
|
|
|
getCodeFrom_server(1, type, 'type', 'getAjaxDisplay').then(function(result) {
|
2019-01-31 21:44:21 +00:00
|
|
|
if (result) {
|
|
|
|
jQuery('#display_'+type).html(result);
|
|
|
|
}
|
|
|
|
// set button
|
|
|
|
addButtonID(type,'header_'+type+'_buttons', 2); // <-- little edit button
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getFieldSelectOptions(fieldKey){
|
|
|
|
// first check if the field is set
|
|
|
|
if(jQuery("#jform_addconditions__addconditions"+fieldKey+"__option_field").length) {
|
|
|
|
var fieldId = jQuery("#jform_addconditions__addconditions"+fieldKey+"__option_field option:selected").val();
|
2023-10-18 07:26:30 +00:00
|
|
|
getCodeFrom_server(fieldId, 'type', 'type', 'fieldSelectOptions').then(function(result) {
|
2019-01-31 21:44:21 +00:00
|
|
|
if(result) {
|
|
|
|
jQuery('textarea#jform_addconditions__addconditions'+fieldKey+'__field_options').val(result);
|
|
|
|
} else {
|
|
|
|
jQuery('textarea#jform_addconditions__addconditions'+fieldKey+'__field_options').val('');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-18 07:26:30 +00:00
|
|
|
function getCodeFrom_server(id, type, type_name, callingName) {
|
|
|
|
var url = "index.php?option=com_componentbuilder&task=ajax." + callingName + "&format=json&raw=true&vdm="+vastDevMod;
|
|
|
|
if (token.length > 0 && id > 0 && type.length > 0) {
|
|
|
|
url += '&' + token + '=1&' + type_name + '=' + type + '&id=' + id;
|
2019-12-10 23:18:55 +00:00
|
|
|
}
|
2023-10-18 07:26:30 +00:00
|
|
|
var getUrl = JRouter(url);
|
|
|
|
return fetch(getUrl, {
|
|
|
|
method: 'GET',
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
}
|
|
|
|
}).then(function(response) {
|
|
|
|
if (response.ok) {
|
|
|
|
return response.json();
|
|
|
|
} else {
|
|
|
|
throw new Error('Network response was not ok');
|
|
|
|
}
|
|
|
|
}).then(function(data) {
|
|
|
|
return data;
|
|
|
|
}).catch(function(error) {
|
|
|
|
console.error('There was a problem with the fetch operation:', error);
|
2019-12-10 23:18:55 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-03-09 19:47:28 +00:00
|
|
|
function getEditCustomCodeButtons_server(id) {
|
2019-07-08 16:05:54 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getEditCustomCodeButtons&format=json&raw=true&vdm="+vastDevMod);
|
2024-03-09 19:47:28 +00:00
|
|
|
let requestParams = '';
|
|
|
|
if (token.length > 0 && id > 0) {
|
|
|
|
requestParams = token+'=1&id='+id+'&return_here='+return_here;
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
2024-03-09 19:47:28 +00:00
|
|
|
// Construct URL with parameters for GET request
|
|
|
|
const urlWithParams = getUrl + '&' + requestParams;
|
|
|
|
|
|
|
|
// Using the Fetch API for the GET request
|
|
|
|
return fetch(urlWithParams, {
|
|
|
|
method: 'GET',
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
}
|
|
|
|
}).then(response => {
|
|
|
|
if (!response.ok) {
|
|
|
|
throw new Error('Network response was not ok');
|
|
|
|
}
|
|
|
|
return response.json();
|
2019-01-31 21:44:21 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-03-09 19:47:28 +00:00
|
|
|
function getEditCustomCodeButtons() {
|
|
|
|
// Get the id using pure JavaScript
|
|
|
|
const id = document.querySelector("#jform_id").value;
|
|
|
|
getEditCustomCodeButtons_server(id).then(function(result) {
|
|
|
|
if (typeof result === 'object') {
|
|
|
|
Object.entries(result).forEach(([field, buttons]) => {
|
|
|
|
// Creating the div element for buttons
|
|
|
|
const div = document.createElement('div');
|
|
|
|
div.className = 'control-group';
|
|
|
|
div.innerHTML = '<div class="control-label"><label>Add/Edit Customcode</label></div><div class="controls control-customcode-buttons-'+field+'"></div>';
|
|
|
|
|
|
|
|
// Insert the div before .control-wrapper-{field}
|
|
|
|
const insertBeforeElement = document.querySelector(".control-wrapper-"+field);
|
|
|
|
insertBeforeElement.parentNode.insertBefore(div, insertBeforeElement);
|
|
|
|
|
|
|
|
// Adding buttons to the div
|
|
|
|
Object.entries(buttons).forEach(([name, button]) => {
|
|
|
|
const controlsDiv = document.querySelector(".control-customcode-buttons-"+field);
|
|
|
|
controlsDiv.innerHTML += button;
|
2019-01-31 21:44:21 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
2024-03-09 19:47:28 +00:00
|
|
|
}).catch(error => {
|
|
|
|
console.error('Error:', error);
|
|
|
|
});
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
2018-02-27 12:17:38 +00:00
|
|
|
|
2017-11-26 00:29:08 +00:00
|
|
|
function addButtonID_server(type, size){
|
2018-12-29 14:56:06 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getButtonID&format=json&raw=true&vdm="+vastDevMod);
|
2017-11-26 00:29:08 +00:00
|
|
|
if(token.length > 0 && type.length > 0 && size > 0){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&type='+type+'&size='+size;
|
2017-11-26 00:29:08 +00:00
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2017-11-26 00:29:08 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
2017-11-26 00:29:08 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
function addButtonID(type, where, size){
|
|
|
|
addButtonID_server(type, size).done(function(result) {
|
|
|
|
if(result){
|
|
|
|
if (2 == size) {
|
|
|
|
jQuery('#'+where).html(result);
|
|
|
|
} else {
|
|
|
|
addData(result, '#jform_'+where);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2018-02-27 12:17:38 +00:00
|
|
|
}
|
|
|
|
|
2018-03-28 09:46:14 +00:00
|
|
|
function addButton_server(type, size){
|
2018-12-29 14:56:06 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getButton&format=json&raw=true&vdm="+vastDevMod);
|
2017-11-26 00:29:08 +00:00
|
|
|
if(token.length > 0 && type.length > 0){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&type='+type+'&size='+size;
|
2017-11-26 00:29:08 +00:00
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2017-11-26 00:29:08 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
2017-11-26 00:29:08 +00:00
|
|
|
});
|
|
|
|
}
|
2018-03-28 09:46:14 +00:00
|
|
|
function addButton(type, where, size){
|
|
|
|
// just to insure that default behaviour still works
|
|
|
|
size = typeof size !== 'undefined' ? size : 1;
|
|
|
|
addButton_server(type, size).done(function(result) {
|
2017-11-26 00:29:08 +00:00
|
|
|
if(result){
|
2018-03-28 09:46:14 +00:00
|
|
|
if (2 == size) {
|
|
|
|
jQuery('#'+where).html(result);
|
|
|
|
} else {
|
|
|
|
addData(result, '#jform_'+where);
|
|
|
|
}
|
2017-11-26 00:29:08 +00:00
|
|
|
}
|
|
|
|
})
|
2018-02-27 12:17:38 +00:00
|
|
|
}
|
|
|
|
|
2018-01-15 15:54:05 +00:00
|
|
|
function getLinked(){
|
2023-10-18 07:26:30 +00:00
|
|
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
2018-01-15 15:54:05 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('#display_linked_to').html(result);
|
|
|
|
}
|
|
|
|
});
|
2024-03-09 19:47:28 +00:00
|
|
|
}
|