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-09 11:54:59 +00:00
|
|
|
jform_vvvvwcjvxl_required = false;
|
|
|
|
jform_vvvvwcxvxm_required = false;
|
|
|
|
jform_vvvvwcxvxn_required = false;
|
2017-11-26 00:29:08 +00:00
|
|
|
|
|
|
|
// Initial Script
|
2024-03-09 19:52:51 +00:00
|
|
|
document.addEventListener('DOMContentLoaded', function()
|
2017-11-26 00:29:08 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwch = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwch = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwch(how_vvvvwch,target_vvvvwch);
|
2019-07-15 20:00:46 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcj = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwcj = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcj(how_vvvvwcj,target_vvvvwcj);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcl = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcl(how_vvvvwcl,target_vvvvwcl);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcn = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwcn = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcn(how_vvvvwcn,target_vvvvwcn);
|
|
|
|
|
|
|
|
var how_vvvvwcp = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwcp = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcp(how_vvvvwcp,target_vvvvwcp);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcq = jQuery("#jform_how").val();
|
|
|
|
vvvvwcq(target_vvvvwcq,how_vvvvwcq);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcr = jQuery("#jform_how").val();
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcr(how_vvvvwcr,target_vvvvwcr);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcs = jQuery("#jform_how").val();
|
|
|
|
vvvvwcs(target_vvvvwcs,how_vvvvwcs);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwct = jQuery("#jform_how").val();
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwct(how_vvvvwct,target_vvvvwct);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcu = jQuery("#jform_how").val();
|
|
|
|
vvvvwcu(target_vvvvwcu,how_vvvvwcu);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val();
|
2024-04-09 11:54:59 +00:00
|
|
|
var type_vvvvwcv = jQuery("#jform_type input[type='radio']:checked").val();
|
|
|
|
vvvvwcv(target_vvvvwcv,type_vvvvwcv);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcx = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcx(target_vvvvwcx);
|
2019-11-09 12:49:20 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var target_vvvvwcy = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcy(target_vvvvwcy);
|
2019-08-08 15:35:58 +00:00
|
|
|
});
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwch function
|
|
|
|
function vvvvwch(how_vvvvwch,target_vvvvwch)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwch) && how_vvvvwch.constructor !== Array)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwch = how_vvvvwch;
|
|
|
|
var how_vvvvwch = [];
|
|
|
|
how_vvvvwch.push(temp_vvvvwch);
|
2018-08-14 08:25:46 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwch))
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwch = [];
|
2018-08-14 08:25:46 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwch.some(how_vvvvwch_SomeFunc);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwch) && target_vvvvwch.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwch = target_vvvvwch;
|
|
|
|
var target_vvvvwch = [];
|
|
|
|
target_vvvvwch.push(temp_vvvvwch);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwch))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwch = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwch.some(target_vvvvwch_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-09 11:54:59 +00:00
|
|
|
// the vvvvwch Some function
|
|
|
|
function how_vvvvwch_SomeFunc(how_vvvvwch)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwch == 2)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwch Some function
|
|
|
|
function target_vvvvwch_SomeFunc(target_vvvvwch)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwch == 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-09 11:54:59 +00:00
|
|
|
// the vvvvwcj function
|
|
|
|
function vvvvwcj(how_vvvvwcj,target_vvvvwcj)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwcj) && how_vvvvwcj.constructor !== Array)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcj = how_vvvvwcj;
|
|
|
|
var how_vvvvwcj = [];
|
|
|
|
how_vvvvwcj.push(temp_vvvvwcj);
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwcj))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcj = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwcj.some(how_vvvvwcj_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwcj) && target_vvvvwcj.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcj = target_vvvvwcj;
|
|
|
|
var target_vvvvwcj = [];
|
|
|
|
target_vvvvwcj.push(temp_vvvvwcj);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwcj))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcj = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwcj.some(target_vvvvwcj_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-09 11:54:59 +00:00
|
|
|
if (jform_vvvvwcjvxl_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-09 11:54:59 +00:00
|
|
|
jform_vvvvwcjvxl_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-09 11:54:59 +00:00
|
|
|
if (!jform_vvvvwcjvxl_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-09 11:54:59 +00:00
|
|
|
jform_vvvvwcjvxl_required = true;
|
2019-08-08 15:35:58 +00:00
|
|
|
}
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcj Some function
|
|
|
|
function how_vvvvwcj_SomeFunc(how_vvvvwcj)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwcj == 3)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcj Some function
|
|
|
|
function target_vvvvwcj_SomeFunc(target_vvvvwcj)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcj == 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-09 11:54:59 +00:00
|
|
|
// the vvvvwcl function
|
|
|
|
function vvvvwcl(how_vvvvwcl,target_vvvvwcl)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwcl) && how_vvvvwcl.constructor !== Array)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcl = how_vvvvwcl;
|
|
|
|
var how_vvvvwcl = [];
|
|
|
|
how_vvvvwcl.push(temp_vvvvwcl);
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwcl))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcl = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwcl.some(how_vvvvwcl_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwcl) && target_vvvvwcl.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcl = target_vvvvwcl;
|
|
|
|
var target_vvvvwcl = [];
|
|
|
|
target_vvvvwcl.push(temp_vvvvwcl);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwcl))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcl = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwcl.some(target_vvvvwcl_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-09 11:54:59 +00:00
|
|
|
// the vvvvwcl Some function
|
|
|
|
function how_vvvvwcl_SomeFunc(how_vvvvwcl)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwcl == 2 || how_vvvvwcl == 3)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcl Some function
|
|
|
|
function target_vvvvwcl_SomeFunc(target_vvvvwcl)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcl == 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-09 11:54:59 +00:00
|
|
|
// the vvvvwcn function
|
|
|
|
function vvvvwcn(how_vvvvwcn,target_vvvvwcn)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwcn) && how_vvvvwcn.constructor !== Array)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcn = how_vvvvwcn;
|
|
|
|
var how_vvvvwcn = [];
|
|
|
|
how_vvvvwcn.push(temp_vvvvwcn);
|
2019-05-15 17:39:27 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwcn))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcn = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwcn.some(how_vvvvwcn_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwcn) && target_vvvvwcn.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcn = target_vvvvwcn;
|
|
|
|
var target_vvvvwcn = [];
|
|
|
|
target_vvvvwcn.push(temp_vvvvwcn);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwcn))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcn = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwcn.some(target_vvvvwcn_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-09 11:54:59 +00:00
|
|
|
// the vvvvwcn Some function
|
|
|
|
function how_vvvvwcn_SomeFunc(how_vvvvwcn)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwcn == 1 || how_vvvvwcn == 2 || how_vvvvwcn == 3)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcn Some function
|
|
|
|
function target_vvvvwcn_SomeFunc(target_vvvvwcn)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcn == 1)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcp function
|
|
|
|
function vvvvwcp(how_vvvvwcp,target_vvvvwcp)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwcp) && how_vvvvwcp.constructor !== Array)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcp = how_vvvvwcp;
|
|
|
|
var how_vvvvwcp = [];
|
|
|
|
how_vvvvwcp.push(temp_vvvvwcp);
|
2019-06-12 20:06:19 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwcp))
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcp = [];
|
2019-06-12 20:06:19 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwcp.some(how_vvvvwcp_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwcp) && target_vvvvwcp.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcp = target_vvvvwcp;
|
|
|
|
var target_vvvvwcp = [];
|
|
|
|
target_vvvvwcp.push(temp_vvvvwcp);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwcp))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcp = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwcp.some(target_vvvvwcp_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-09 11:54:59 +00:00
|
|
|
// the vvvvwcp Some function
|
|
|
|
function how_vvvvwcp_SomeFunc(how_vvvvwcp)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwcp == 0)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcp Some function
|
|
|
|
function target_vvvvwcp_SomeFunc(target_vvvvwcp)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcp == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcq function
|
|
|
|
function vvvvwcq(target_vvvvwcq,how_vvvvwcq)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwcq) && target_vvvvwcq.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcq = target_vvvvwcq;
|
|
|
|
var target_vvvvwcq = [];
|
|
|
|
target_vvvvwcq.push(temp_vvvvwcq);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwcq))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcq = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwcq.some(target_vvvvwcq_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwcq) && how_vvvvwcq.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcq = how_vvvvwcq;
|
|
|
|
var how_vvvvwcq = [];
|
|
|
|
how_vvvvwcq.push(temp_vvvvwcq);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwcq))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcq = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwcq.some(how_vvvvwcq_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-09 11:54:59 +00:00
|
|
|
// the vvvvwcq Some function
|
|
|
|
function target_vvvvwcq_SomeFunc(target_vvvvwcq)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcq == 1)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcq Some function
|
|
|
|
function how_vvvvwcq_SomeFunc(how_vvvvwcq)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwcq == 0)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcr function
|
|
|
|
function vvvvwcr(how_vvvvwcr,target_vvvvwcr)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwcr) && how_vvvvwcr.constructor !== Array)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcr = how_vvvvwcr;
|
|
|
|
var how_vvvvwcr = [];
|
|
|
|
how_vvvvwcr.push(temp_vvvvwcr);
|
2019-06-12 20:36:05 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwcr))
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcr = [];
|
2019-06-12 20:36:05 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwcr.some(how_vvvvwcr_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwcr) && target_vvvvwcr.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcr = target_vvvvwcr;
|
|
|
|
var target_vvvvwcr = [];
|
|
|
|
target_vvvvwcr.push(temp_vvvvwcr);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwcr))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcr = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwcr.some(target_vvvvwcr_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-09 11:54:59 +00:00
|
|
|
// the vvvvwcr Some function
|
|
|
|
function how_vvvvwcr_SomeFunc(how_vvvvwcr)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwcr == 1)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcr Some function
|
|
|
|
function target_vvvvwcr_SomeFunc(target_vvvvwcr)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcr == 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-09 11:54:59 +00:00
|
|
|
// the vvvvwcs function
|
|
|
|
function vvvvwcs(target_vvvvwcs,how_vvvvwcs)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwcs) && target_vvvvwcs.constructor !== Array)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcs = target_vvvvwcs;
|
|
|
|
var target_vvvvwcs = [];
|
|
|
|
target_vvvvwcs.push(temp_vvvvwcs);
|
2019-08-08 15:35:58 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwcs))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcs = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwcs.some(target_vvvvwcs_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwcs) && how_vvvvwcs.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcs = how_vvvvwcs;
|
|
|
|
var how_vvvvwcs = [];
|
|
|
|
how_vvvvwcs.push(temp_vvvvwcs);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwcs))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcs = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwcs.some(how_vvvvwcs_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-09 11:54:59 +00:00
|
|
|
// the vvvvwcs Some function
|
|
|
|
function target_vvvvwcs_SomeFunc(target_vvvvwcs)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcs == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcs Some function
|
|
|
|
function how_vvvvwcs_SomeFunc(how_vvvvwcs)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwcs == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwct function
|
|
|
|
function vvvvwct(how_vvvvwct,target_vvvvwct)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwct) && how_vvvvwct.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwct = how_vvvvwct;
|
|
|
|
var how_vvvvwct = [];
|
|
|
|
how_vvvvwct.push(temp_vvvvwct);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwct))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwct = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwct.some(how_vvvvwct_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwct) && target_vvvvwct.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwct = target_vvvvwct;
|
|
|
|
var target_vvvvwct = [];
|
|
|
|
target_vvvvwct.push(temp_vvvvwct);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwct))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwct = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwct.some(target_vvvvwct_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-09 11:54:59 +00:00
|
|
|
// the vvvvwct Some function
|
|
|
|
function how_vvvvwct_SomeFunc(how_vvvvwct)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwct == 4)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwct Some function
|
|
|
|
function target_vvvvwct_SomeFunc(target_vvvvwct)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwct == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcu function
|
|
|
|
function vvvvwcu(target_vvvvwcu,how_vvvvwcu)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(target_vvvvwcu) && target_vvvvwcu.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcu = target_vvvvwcu;
|
|
|
|
var target_vvvvwcu = [];
|
|
|
|
target_vvvvwcu.push(temp_vvvvwcu);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(target_vvvvwcu))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var target_vvvvwcu = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var target = target_vvvvwcu.some(target_vvvvwcu_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
if (isSet(how_vvvvwcu) && how_vvvvwcu.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var temp_vvvvwcu = how_vvvvwcu;
|
|
|
|
var how_vvvvwcu = [];
|
|
|
|
how_vvvvwcu.push(temp_vvvvwcu);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
else if (!isSet(how_vvvvwcu))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2024-04-09 11:54:59 +00:00
|
|
|
var how_vvvvwcu = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2024-04-09 11:54:59 +00:00
|
|
|
var how = how_vvvvwcu.some(how_vvvvwcu_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-09 11:54:59 +00:00
|
|
|
// the vvvvwcu Some function
|
|
|
|
function target_vvvvwcu_SomeFunc(target_vvvvwcu)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcu == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcu Some function
|
|
|
|
function how_vvvvwcu_SomeFunc(how_vvvvwcu)
|
2017-12-10 19:17:26 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (how_vvvvwcu == 4)
|
2017-12-10 19:17:26 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcv function
|
|
|
|
function vvvvwcv(target_vvvvwcv,type_vvvvwcv)
|
2017-12-03 18:09:04 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcv == 1 && type_vvvvwcv == 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-09 11:54:59 +00:00
|
|
|
// the vvvvwcx function
|
|
|
|
function vvvvwcx(target_vvvvwcx)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcx == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_how').closest('.control-group').show();
|
|
|
|
// add required attribute to how field
|
2024-04-09 11:54:59 +00:00
|
|
|
if (jform_vvvvwcxvxm_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-09 11:54:59 +00:00
|
|
|
jform_vvvvwcxvxm_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-09 11:54:59 +00:00
|
|
|
if (jform_vvvvwcxvxn_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-09 11:54:59 +00:00
|
|
|
jform_vvvvwcxvxn_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-09 11:54:59 +00:00
|
|
|
if (!jform_vvvvwcxvxm_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-09 11:54:59 +00:00
|
|
|
jform_vvvvwcxvxm_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-09 11:54:59 +00:00
|
|
|
if (!jform_vvvvwcxvxn_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-09 11:54:59 +00:00
|
|
|
jform_vvvvwcxvxn_required = true;
|
2017-12-03 18:09:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-09 11:54:59 +00:00
|
|
|
// the vvvvwcy function
|
|
|
|
function vvvvwcy(target_vvvvwcy)
|
2019-11-09 12:49:20 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2024-04-09 11:54:59 +00:00
|
|
|
if (target_vvvvwcy == 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:52:51 +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:52:51 +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:52:51 +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:52:51 +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:52:51 +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:52:51 +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:52:51 +00:00
|
|
|
}
|