Expande the compiler to fully build and zip plugins linked to components. Added plugin_updates area. Fixed gh-454 to insure placeholders are build even if no local db placeholders are found. Fixed gh-453 to prevent count error with null return value.
This commit is contained in:
@ -9,44 +9,44 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbevxd_required = false;
|
||||
jform_vvvvwbfvxe_required = false;
|
||||
jform_vvvvwbfvxf_required = false;
|
||||
jform_vvvvwbfvxg_required = false;
|
||||
jform_vvvvwbfvxd_required = false;
|
||||
jform_vvvvwbgvxe_required = false;
|
||||
jform_vvvvwbgvxf_required = false;
|
||||
jform_vvvvwbgvxg_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var target_vvvvwbe = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbe(target_vvvvwbe);
|
||||
|
||||
var target_vvvvwbf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbf(target_vvvvwbf);
|
||||
|
||||
var target_vvvvwbg = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwbg = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbg(target_vvvvwbg,type_vvvvwbg);
|
||||
vvvvwbg(target_vvvvwbg);
|
||||
|
||||
var type_vvvvwbh = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwbh = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbh(type_vvvvwbh,target_vvvvwbh);
|
||||
var type_vvvvwbh = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbh(target_vvvvwbh,type_vvvvwbh);
|
||||
|
||||
var type_vvvvwbi = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwbi = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbi(type_vvvvwbi,target_vvvvwbi);
|
||||
});
|
||||
|
||||
// the vvvvwbe function
|
||||
function vvvvwbe(target_vvvvwbe)
|
||||
// the vvvvwbf function
|
||||
function vvvvwbf(target_vvvvwbf)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwbe == 2)
|
||||
if (target_vvvvwbf == 2)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').show();
|
||||
// add required attribute to function_name field
|
||||
if (jform_vvvvwbevxd_required)
|
||||
if (jform_vvvvwbfvxd_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_vvvvwbevxd_required = false;
|
||||
jform_vvvvwbfvxd_required = false;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
||||
jQuery('#jform_system_name').closest('.control-group').show();
|
||||
@ -55,102 +55,102 @@ function vvvvwbe(target_vvvvwbe)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').hide();
|
||||
// remove required attribute from function_name field
|
||||
if (!jform_vvvvwbevxd_required)
|
||||
if (!jform_vvvvwbfvxd_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_vvvvwbevxd_required = true;
|
||||
jform_vvvvwbfvxd_required = true;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
||||
jQuery('#jform_system_name').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbf function
|
||||
function vvvvwbf(target_vvvvwbf)
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(target_vvvvwbg)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwbf == 1)
|
||||
if (target_vvvvwbg == 1)
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').show();
|
||||
// add required attribute to component field
|
||||
if (jform_vvvvwbfvxe_required)
|
||||
if (jform_vvvvwbgvxe_required)
|
||||
{
|
||||
updateFieldRequired('component',0);
|
||||
jQuery('#jform_component').prop('required','required');
|
||||
jQuery('#jform_component').attr('aria-required',true);
|
||||
jQuery('#jform_component').addClass('required');
|
||||
jform_vvvvwbfvxe_required = false;
|
||||
jform_vvvvwbgvxe_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwbfvxf_required)
|
||||
if (jform_vvvvwbgvxf_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwbfvxf_required = false;
|
||||
jform_vvvvwbgvxf_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_vvvvwbfvxg_required)
|
||||
if (jform_vvvvwbgvxg_required)
|
||||
{
|
||||
updateFieldRequired('type',0);
|
||||
jQuery('#jform_type').prop('required','required');
|
||||
jQuery('#jform_type').attr('aria-required',true);
|
||||
jQuery('#jform_type').addClass('required');
|
||||
jform_vvvvwbfvxg_required = false;
|
||||
jform_vvvvwbgvxg_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').hide();
|
||||
// remove required attribute from component field
|
||||
if (!jform_vvvvwbfvxe_required)
|
||||
if (!jform_vvvvwbgvxe_required)
|
||||
{
|
||||
updateFieldRequired('component',1);
|
||||
jQuery('#jform_component').removeAttr('required');
|
||||
jQuery('#jform_component').removeAttr('aria-required');
|
||||
jQuery('#jform_component').removeClass('required');
|
||||
jform_vvvvwbfvxe_required = true;
|
||||
jform_vvvvwbgvxe_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwbfvxf_required)
|
||||
if (!jform_vvvvwbgvxf_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwbfvxf_required = true;
|
||||
jform_vvvvwbgvxf_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_vvvvwbfvxg_required)
|
||||
if (!jform_vvvvwbgvxg_required)
|
||||
{
|
||||
updateFieldRequired('type',1);
|
||||
jQuery('#jform_type').removeAttr('required');
|
||||
jQuery('#jform_type').removeAttr('aria-required');
|
||||
jQuery('#jform_type').removeClass('required');
|
||||
jform_vvvvwbfvxg_required = true;
|
||||
jform_vvvvwbgvxg_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(target_vvvvwbg,type_vvvvwbg)
|
||||
// the vvvvwbh function
|
||||
function vvvvwbh(target_vvvvwbh,type_vvvvwbh)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwbg == 1 && type_vvvvwbg == 1)
|
||||
if (target_vvvvwbh == 1 && type_vvvvwbh == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
@ -162,11 +162,11 @@ function vvvvwbg(target_vvvvwbg,type_vvvvwbg)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbh function
|
||||
function vvvvwbh(type_vvvvwbh,target_vvvvwbh)
|
||||
// the vvvvwbi function
|
||||
function vvvvwbi(type_vvvvwbi,target_vvvvwbi)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbh == 1 && target_vvvvwbh == 1)
|
||||
if (type_vvvvwbi == 1 && target_vvvvwbi == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
|
Reference in New Issue
Block a user