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
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwckvxl_required = false;
|
|
|
|
jform_vvvvwcyvxm_required = false;
|
|
|
|
jform_vvvvwcyvxn_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
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwci = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwci = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwci(how_vvvvwci,target_vvvvwci);
|
2019-07-15 20:00:46 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwck = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwck = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwck(how_vvvvwck,target_vvvvwck);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcm = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwcm = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcm(how_vvvvwcm,target_vvvvwcm);
|
2019-07-19 02:17:15 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwco = jQuery("#jform_how").val();
|
|
|
|
var target_vvvvwco = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwco(how_vvvvwco,target_vvvvwco);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var how_vvvvwcq = jQuery("#jform_how").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcq(how_vvvvwcq,target_vvvvwcq);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcr = jQuery("#jform_how").val();
|
|
|
|
vvvvwcr(target_vvvvwcr,how_vvvvwcr);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var how_vvvvwcs = jQuery("#jform_how").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcs(how_vvvvwcs,target_vvvvwcs);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwct = jQuery("#jform_how").val();
|
|
|
|
vvvvwct(target_vvvvwct,how_vvvvwct);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var how_vvvvwcu = jQuery("#jform_how").val();
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcu(how_vvvvwcu,target_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();
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcv = jQuery("#jform_how").val();
|
|
|
|
vvvvwcv(target_vvvvwcv,how_vvvvwcv);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcw = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
var type_vvvvwcw = jQuery("#jform_type input[type='radio']:checked").val();
|
|
|
|
vvvvwcw(target_vvvvwcw,type_vvvvwcw);
|
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);
|
2022-07-09 15:16:21 +00:00
|
|
|
|
|
|
|
var target_vvvvwcz = jQuery("#jform_target input[type='radio']:checked").val();
|
|
|
|
vvvvwcz(target_vvvvwcz);
|
2019-08-08 15:35:58 +00:00
|
|
|
});
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwci function
|
|
|
|
function vvvvwci(how_vvvvwci,target_vvvvwci)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwci) && how_vvvvwci.constructor !== Array)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwci = how_vvvvwci;
|
|
|
|
var how_vvvvwci = [];
|
|
|
|
how_vvvvwci.push(temp_vvvvwci);
|
2018-08-14 08:25:46 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwci))
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwci = [];
|
2018-08-14 08:25:46 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwci.some(how_vvvvwci_SomeFunc);
|
2018-08-14 08:25:46 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwci) && target_vvvvwci.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwci = target_vvvvwci;
|
|
|
|
var target_vvvvwci = [];
|
|
|
|
target_vvvvwci.push(temp_vvvvwci);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwci))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwci = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwci.some(target_vvvvwci_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwci Some function
|
|
|
|
function how_vvvvwci_SomeFunc(how_vvvvwci)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwci == 2)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwci Some function
|
|
|
|
function target_vvvvwci_SomeFunc(target_vvvvwci)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwci == 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;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwck function
|
|
|
|
function vvvvwck(how_vvvvwck,target_vvvvwck)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwck) && how_vvvvwck.constructor !== Array)
|
2018-08-23 01:37:42 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwck = how_vvvvwck;
|
|
|
|
var how_vvvvwck = [];
|
|
|
|
how_vvvvwck.push(temp_vvvvwck);
|
2018-08-23 01:37:42 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwck))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwck = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwck.some(how_vvvvwck_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwck) && target_vvvvwck.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwck = target_vvvvwck;
|
|
|
|
var target_vvvvwck = [];
|
|
|
|
target_vvvvwck.push(temp_vvvvwck);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwck))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwck = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwck.some(target_vvvvwck_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
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwckvxl_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');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwckvxl_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
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwckvxl_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');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwckvxl_required = true;
|
2019-08-08 15:35:58 +00:00
|
|
|
}
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwck Some function
|
|
|
|
function how_vvvvwck_SomeFunc(how_vvvvwck)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwck == 3)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwck Some function
|
|
|
|
function target_vvvvwck_SomeFunc(target_vvvvwck)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwck == 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;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcm function
|
|
|
|
function vvvvwcm(how_vvvvwcm,target_vvvvwcm)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwcm) && how_vvvvwcm.constructor !== Array)
|
2019-01-29 14:43:27 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcm = how_vvvvwcm;
|
|
|
|
var how_vvvvwcm = [];
|
|
|
|
how_vvvvwcm.push(temp_vvvvwcm);
|
2019-01-29 14:43:27 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwcm))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcm = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwcm.some(how_vvvvwcm_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwcm) && target_vvvvwcm.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcm = target_vvvvwcm;
|
|
|
|
var target_vvvvwcm = [];
|
|
|
|
target_vvvvwcm.push(temp_vvvvwcm);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwcm))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcm = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwcm.some(target_vvvvwcm_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcm Some function
|
|
|
|
function how_vvvvwcm_SomeFunc(how_vvvvwcm)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwcm == 2 || how_vvvvwcm == 3)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcm Some function
|
|
|
|
function target_vvvvwcm_SomeFunc(target_vvvvwcm)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcm == 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;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwco function
|
|
|
|
function vvvvwco(how_vvvvwco,target_vvvvwco)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwco) && how_vvvvwco.constructor !== Array)
|
2019-05-15 17:39:27 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwco = how_vvvvwco;
|
|
|
|
var how_vvvvwco = [];
|
|
|
|
how_vvvvwco.push(temp_vvvvwco);
|
2019-05-15 17:39:27 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwco))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwco = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwco.some(how_vvvvwco_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwco) && target_vvvvwco.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwco = target_vvvvwco;
|
|
|
|
var target_vvvvwco = [];
|
|
|
|
target_vvvvwco.push(temp_vvvvwco);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwco))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwco = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwco.some(target_vvvvwco_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwco Some function
|
|
|
|
function how_vvvvwco_SomeFunc(how_vvvvwco)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwco == 1 || how_vvvvwco == 2 || how_vvvvwco == 3)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwco Some function
|
|
|
|
function target_vvvvwco_SomeFunc(target_vvvvwco)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwco == 1)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcq function
|
|
|
|
function vvvvwcq(how_vvvvwcq,target_vvvvwcq)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwcq) && how_vvvvwcq.constructor !== Array)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcq = how_vvvvwcq;
|
|
|
|
var how_vvvvwcq = [];
|
|
|
|
how_vvvvwcq.push(temp_vvvvwcq);
|
2019-06-12 20:06:19 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwcq))
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcq = [];
|
2019-06-12 20:06:19 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwcq.some(how_vvvvwcq_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwcq) && target_vvvvwcq.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcq = target_vvvvwcq;
|
|
|
|
var target_vvvvwcq = [];
|
|
|
|
target_vvvvwcq.push(temp_vvvvwcq);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwcq))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcq = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwcq.some(target_vvvvwcq_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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcq Some function
|
|
|
|
function how_vvvvwcq_SomeFunc(how_vvvvwcq)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwcq == 0)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcq Some function
|
|
|
|
function target_vvvvwcq_SomeFunc(target_vvvvwcq)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcq == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcr function
|
|
|
|
function vvvvwcr(target_vvvvwcr,how_vvvvwcr)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwcr) && target_vvvvwcr.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcr = target_vvvvwcr;
|
|
|
|
var target_vvvvwcr = [];
|
|
|
|
target_vvvvwcr.push(temp_vvvvwcr);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwcr))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcr = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwcr.some(target_vvvvwcr_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwcr) && how_vvvvwcr.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcr = how_vvvvwcr;
|
|
|
|
var how_vvvvwcr = [];
|
|
|
|
how_vvvvwcr.push(temp_vvvvwcr);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwcr))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcr = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwcr.some(how_vvvvwcr_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcr Some function
|
|
|
|
function target_vvvvwcr_SomeFunc(target_vvvvwcr)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcr == 1)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcr Some function
|
|
|
|
function how_vvvvwcr_SomeFunc(how_vvvvwcr)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwcr == 0)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcs function
|
|
|
|
function vvvvwcs(how_vvvvwcs,target_vvvvwcs)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwcs) && how_vvvvwcs.constructor !== Array)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcs = how_vvvvwcs;
|
|
|
|
var how_vvvvwcs = [];
|
|
|
|
how_vvvvwcs.push(temp_vvvvwcs);
|
2019-06-12 20:36:05 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwcs))
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcs = [];
|
2019-06-12 20:36:05 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwcs.some(how_vvvvwcs_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwcs) && target_vvvvwcs.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcs = target_vvvvwcs;
|
|
|
|
var target_vvvvwcs = [];
|
|
|
|
target_vvvvwcs.push(temp_vvvvwcs);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwcs))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcs = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwcs.some(target_vvvvwcs_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcs Some function
|
|
|
|
function how_vvvvwcs_SomeFunc(how_vvvvwcs)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwcs == 1)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcs Some function
|
|
|
|
function target_vvvvwcs_SomeFunc(target_vvvvwcs)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
2019-10-16 20:34:36 +00:00
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcs == 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;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwct function
|
|
|
|
function vvvvwct(target_vvvvwct,how_vvvvwct)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwct) && target_vvvvwct.constructor !== Array)
|
2019-08-08 15:35:58 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwct = target_vvvvwct;
|
|
|
|
var target_vvvvwct = [];
|
|
|
|
target_vvvvwct.push(temp_vvvvwct);
|
2019-08-08 15:35:58 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwct))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwct = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwct.some(target_vvvvwct_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwct) && how_vvvvwct.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwct = how_vvvvwct;
|
|
|
|
var how_vvvvwct = [];
|
|
|
|
how_vvvvwct.push(temp_vvvvwct);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwct))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwct = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwct.some(how_vvvvwct_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwct Some function
|
|
|
|
function target_vvvvwct_SomeFunc(target_vvvvwct)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwct == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwct Some function
|
|
|
|
function how_vvvvwct_SomeFunc(how_vvvvwct)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwct == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcu function
|
|
|
|
function vvvvwcu(how_vvvvwcu,target_vvvvwcu)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwcu) && how_vvvvwcu.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcu = how_vvvvwcu;
|
|
|
|
var how_vvvvwcu = [];
|
|
|
|
how_vvvvwcu.push(temp_vvvvwcu);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwcu))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcu = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwcu.some(how_vvvvwcu_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwcu) && target_vvvvwcu.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcu = target_vvvvwcu;
|
|
|
|
var target_vvvvwcu = [];
|
|
|
|
target_vvvvwcu.push(temp_vvvvwcu);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwcu))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcu = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwcu.some(target_vvvvwcu_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcu Some function
|
|
|
|
function how_vvvvwcu_SomeFunc(how_vvvvwcu)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwcu == 4)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcu Some function
|
|
|
|
function target_vvvvwcu_SomeFunc(target_vvvvwcu)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcu == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcv function
|
|
|
|
function vvvvwcv(target_vvvvwcv,how_vvvvwcv)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(target_vvvvwcv) && target_vvvvwcv.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcv = target_vvvvwcv;
|
|
|
|
var target_vvvvwcv = [];
|
|
|
|
target_vvvvwcv.push(temp_vvvvwcv);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(target_vvvvwcv))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var target_vvvvwcv = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var target = target_vvvvwcv.some(target_vvvvwcv_SomeFunc);
|
2019-10-16 20:34:36 +00:00
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
if (isSet(how_vvvvwcv) && how_vvvvwcv.constructor !== Array)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var temp_vvvvwcv = how_vvvvwcv;
|
|
|
|
var how_vvvvwcv = [];
|
|
|
|
how_vvvvwcv.push(temp_vvvvwcv);
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
else if (!isSet(how_vvvvwcv))
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
2022-07-09 15:16:21 +00:00
|
|
|
var how_vvvvwcv = [];
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
2022-07-09 15:16:21 +00:00
|
|
|
var how = how_vvvvwcv.some(how_vvvvwcv_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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcv Some function
|
|
|
|
function target_vvvvwcv_SomeFunc(target_vvvvwcv)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcv == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcv Some function
|
|
|
|
function how_vvvvwcv_SomeFunc(how_vvvvwcv)
|
2017-12-10 19:17:26 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (how_vvvvwcv == 4)
|
2017-12-10 19:17:26 +00:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcw function
|
|
|
|
function vvvvwcw(target_vvvvwcw,type_vvvvwcw)
|
2017-12-03 18:09:04 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcw == 1 && type_vvvvwcw == 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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcy function
|
|
|
|
function vvvvwcy(target_vvvvwcy)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcy == 1)
|
2019-10-16 20:34:36 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_how').closest('.control-group').show();
|
|
|
|
// add required attribute to how field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwcyvxm_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');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwcyvxm_required = false;
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_type').closest('.control-group').show();
|
|
|
|
// add required attribute to type field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (jform_vvvvwcyvxn_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');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwcyvxn_required = false;
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_how').closest('.control-group').hide();
|
|
|
|
// remove required attribute from how field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwcyvxm_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');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwcyvxm_required = true;
|
2019-10-16 20:34:36 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_type').closest('.control-group').hide();
|
|
|
|
// remove required attribute from type field
|
2022-07-09 15:16:21 +00:00
|
|
|
if (!jform_vvvvwcyvxn_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');
|
2022-07-09 15:16:21 +00:00
|
|
|
jform_vvvvwcyvxn_required = true;
|
2017-12-03 18:09:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-07-09 15:16:21 +00:00
|
|
|
// the vvvvwcz function
|
|
|
|
function vvvvwcz(target_vvvvwcz)
|
2019-11-09 12:49:20 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2022-07-09 15:16:21 +00:00
|
|
|
if (target_vvvvwcz == 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
|
|
|
}
|