Added a global editor switch for all editors in JCB, the default is none. gh-305 Added two new fields to the admin view to target the getform method in the model.

This commit is contained in:
2018-07-06 15:46:30 +02:00
parent 25650efa47
commit a9a0952ff3
74 changed files with 3291 additions and 3101 deletions

View File

@@ -9,43 +9,43 @@
*/
// Some Global Values
jform_vvvvwaavzp_required = false;
jform_vvvvwabvzq_required = false;
jform_vvvvwabvzr_required = false;
jform_vvvvwabvzs_required = false;
jform_vvvvwacvzr_required = false;
jform_vvvvwacvzs_required = false;
jform_vvvvwacvzt_required = false;
// Initial Script
jQuery(document).ready(function()
{
var target_vvvvwaa = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaa(target_vvvvwaa);
var target_vvvvwab = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwab(target_vvvvwab);
var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwac = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwac(target_vvvvwac,type_vvvvwac);
vvvvwac(target_vvvvwac);
var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwad = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwad(type_vvvvwad,target_vvvvwad);
var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwad(target_vvvvwad,type_vvvvwad);
var type_vvvvwae = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwae(type_vvvvwae,target_vvvvwae);
});
// the vvvvwaa function
function vvvvwaa(target_vvvvwaa)
// the vvvvwab function
function vvvvwab(target_vvvvwab)
{
// set the function logic
if (target_vvvvwaa == 2)
if (target_vvvvwab == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
if (jform_vvvvwaavzp_required)
if (jform_vvvvwabvzq_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_vvvvwaavzp_required = false;
jform_vvvvwabvzq_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
@@ -54,99 +54,99 @@ function vvvvwaa(target_vvvvwaa)
else
{
jQuery('#jform_function_name').closest('.control-group').hide();
if (!jform_vvvvwaavzp_required)
if (!jform_vvvvwabvzq_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_vvvvwaavzp_required = true;
jform_vvvvwabvzq_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
// the vvvvwab function
function vvvvwab(target_vvvvwab)
// the vvvvwac function
function vvvvwac(target_vvvvwac)
{
// set the function logic
if (target_vvvvwab == 1)
if (target_vvvvwac == 1)
{
jQuery('#jform_component').closest('.control-group').show();
if (jform_vvvvwabvzq_required)
if (jform_vvvvwacvzr_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
jform_vvvvwabvzq_required = false;
jform_vvvvwacvzr_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvwabvzr_required)
if (jform_vvvvwacvzs_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwabvzr_required = false;
jform_vvvvwacvzs_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();
if (jform_vvvvwabvzs_required)
if (jform_vvvvwacvzt_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
jform_vvvvwabvzs_required = false;
jform_vvvvwacvzt_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
if (!jform_vvvvwabvzq_required)
if (!jform_vvvvwacvzr_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
jform_vvvvwabvzq_required = true;
jform_vvvvwacvzr_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvwabvzr_required)
if (!jform_vvvvwacvzs_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwabvzr_required = true;
jform_vvvvwacvzs_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();
if (!jform_vvvvwabvzs_required)
if (!jform_vvvvwacvzt_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
jform_vvvvwabvzs_required = true;
jform_vvvvwacvzt_required = true;
}
}
}
// the vvvvwac function
function vvvvwac(target_vvvvwac,type_vvvvwac)
// the vvvvwad function
function vvvvwad(target_vvvvwad,type_vvvvwad)
{
// set the function logic
if (target_vvvvwac == 1 && type_vvvvwac == 1)
if (target_vvvvwad == 1 && type_vvvvwad == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@@ -158,11 +158,11 @@ function vvvvwac(target_vvvvwac,type_vvvvwac)
}
}
// the vvvvwad function
function vvvvwad(type_vvvvwad,target_vvvvwad)
// the vvvvwae function
function vvvvwae(type_vvvvwae,target_vvvvwae)
{
// set the function logic
if (type_vvvvwad == 1 && target_vvvvwad == 1)
if (type_vvvvwae == 1 && target_vvvvwae == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();