Resolved gh-441 to allow fieldtype name prefixing. Resolved gh-443 to allow Alphanumeric+dot in fieldtype name. Fixed gh-446 to insure that JFormRuleInt validates correctly in the admin field realtions. Improved the new plugin area to also have system name and option to add custom header code. gh-436

This commit is contained in:
2019-07-19 04:17:15 +02:00
parent a5ae94b93a
commit affaeb72f8
77 changed files with 4338 additions and 3890 deletions

View File

@ -9,44 +9,44 @@
*/
// Some Global Values
jform_vvvvwajvwz_required = false;
jform_vvvvwakvxa_required = false;
jform_vvvvwakvxb_required = false;
jform_vvvvwakvxc_required = false;
jform_vvvvwamvxa_required = false;
jform_vvvvwanvxb_required = false;
jform_vvvvwanvxc_required = false;
jform_vvvvwanvxd_required = false;
// Initial Script
jQuery(document).ready(function()
{
var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaj(target_vvvvwaj);
var target_vvvvwak = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwak(target_vvvvwak);
var target_vvvvwal = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwal = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwal(target_vvvvwal,type_vvvvwal);
var type_vvvvwam = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwam = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwam(type_vvvvwam,target_vvvvwam);
vvvvwam(target_vvvvwam);
var target_vvvvwan = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwan(target_vvvvwan);
var target_vvvvwao = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwao(target_vvvvwao,type_vvvvwao);
var type_vvvvwap = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwap = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwap(type_vvvvwap,target_vvvvwap);
});
// the vvvvwaj function
function vvvvwaj(target_vvvvwaj)
// the vvvvwam function
function vvvvwam(target_vvvvwam)
{
// set the function logic
if (target_vvvvwaj == 2)
if (target_vvvvwam == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
// add required attribute to function_name field
if (jform_vvvvwajvwz_required)
if (jform_vvvvwamvxa_required)
{
updateFieldRequired('function_name',0);
jQuery('#jform_function_name').prop('required','required');
jQuery('#jform_function_name').attr('aria-required',true);
jQuery('#jform_function_name').addClass('required');
jform_vvvvwajvwz_required = false;
jform_vvvvwamvxa_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
jQuery('#jform_system_name').closest('.control-group').show();
@ -55,102 +55,102 @@ function vvvvwaj(target_vvvvwaj)
{
jQuery('#jform_function_name').closest('.control-group').hide();
// remove required attribute from function_name field
if (!jform_vvvvwajvwz_required)
if (!jform_vvvvwamvxa_required)
{
updateFieldRequired('function_name',1);
jQuery('#jform_function_name').removeAttr('required');
jQuery('#jform_function_name').removeAttr('aria-required');
jQuery('#jform_function_name').removeClass('required');
jform_vvvvwajvwz_required = true;
jform_vvvvwamvxa_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
// the vvvvwak function
function vvvvwak(target_vvvvwak)
// the vvvvwan function
function vvvvwan(target_vvvvwan)
{
// set the function logic
if (target_vvvvwak == 1)
if (target_vvvvwan == 1)
{
jQuery('#jform_component').closest('.control-group').show();
// add required attribute to component field
if (jform_vvvvwakvxa_required)
if (jform_vvvvwanvxb_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
jform_vvvvwakvxa_required = false;
jform_vvvvwanvxb_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
if (jform_vvvvwakvxb_required)
if (jform_vvvvwanvxc_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwakvxb_required = false;
jform_vvvvwanvxc_required = false;
}
jQuery('#jform_from_line').closest('.control-group').show();
jQuery('#jform_hashtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
jQuery('#jform_type').closest('.control-group').show();
// add required attribute to type field
if (jform_vvvvwakvxc_required)
if (jform_vvvvwanvxd_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
jform_vvvvwakvxc_required = false;
jform_vvvvwanvxd_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
// remove required attribute from component field
if (!jform_vvvvwakvxa_required)
if (!jform_vvvvwanvxb_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
jform_vvvvwakvxa_required = true;
jform_vvvvwanvxb_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
if (!jform_vvvvwakvxb_required)
if (!jform_vvvvwanvxc_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwakvxb_required = true;
jform_vvvvwanvxc_required = true;
}
jQuery('#jform_from_line').closest('.control-group').hide();
jQuery('#jform_hashtarget').closest('.control-group').hide();
jQuery('#jform_to_line').closest('.control-group').hide();
jQuery('#jform_type').closest('.control-group').hide();
// remove required attribute from type field
if (!jform_vvvvwakvxc_required)
if (!jform_vvvvwanvxd_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
jform_vvvvwakvxc_required = true;
jform_vvvvwanvxd_required = true;
}
}
}
// the vvvvwal function
function vvvvwal(target_vvvvwal,type_vvvvwal)
// the vvvvwao function
function vvvvwao(target_vvvvwao,type_vvvvwao)
{
// set the function logic
if (target_vvvvwal == 1 && type_vvvvwal == 1)
if (target_vvvvwao == 1 && type_vvvvwao == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@ -162,11 +162,11 @@ function vvvvwal(target_vvvvwal,type_vvvvwal)
}
}
// the vvvvwam function
function vvvvwam(type_vvvvwam,target_vvvvwam)
// the vvvvwap function
function vvvvwap(type_vvvvwap,target_vvvvwap)
{
// set the function logic
if (type_vvvvwam == 1 && target_vvvvwam == 1)
if (type_vvvvwap == 1 && target_vvvvwap == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();