Release of v5.1.1-beta1
Add JCB new package engine.
This commit is contained in:
@ -9,112 +9,112 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwcmvxv_required = false;
|
||||
jform_vvvvwcivxs_required = false;
|
||||
jform_vvvvwcjvxt_required = false;
|
||||
jform_vvvvwckvxu_required = false;
|
||||
jform_vvvvwclvxv_required = false;
|
||||
jform_vvvvwcnvxw_required = false;
|
||||
jform_vvvvwcovxx_required = false;
|
||||
jform_vvvvwcpvxy_required = false;
|
||||
jform_vvvvwcrvxz_required = false;
|
||||
|
||||
// Initial Script
|
||||
document.addEventListener('DOMContentLoaded', function()
|
||||
{
|
||||
var location_vvvvwcm = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcm(location_vvvvwcm);
|
||||
var location_vvvvwci = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwci(location_vvvvwci);
|
||||
|
||||
var location_vvvvwcn = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcn(location_vvvvwcn);
|
||||
var location_vvvvwcj = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcj(location_vvvvwcj);
|
||||
|
||||
var type_vvvvwco = jQuery("#jform_type").val();
|
||||
vvvvwco(type_vvvvwco);
|
||||
var type_vvvvwck = jQuery("#jform_type").val();
|
||||
vvvvwck(type_vvvvwck);
|
||||
|
||||
var type_vvvvwcp = jQuery("#jform_type").val();
|
||||
vvvvwcp(type_vvvvwcp);
|
||||
var type_vvvvwcl = jQuery("#jform_type").val();
|
||||
vvvvwcl(type_vvvvwcl);
|
||||
|
||||
var type_vvvvwcq = jQuery("#jform_type").val();
|
||||
vvvvwcq(type_vvvvwcq);
|
||||
var type_vvvvwcm = jQuery("#jform_type").val();
|
||||
vvvvwcm(type_vvvvwcm);
|
||||
|
||||
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcr(target_vvvvwcr);
|
||||
var target_vvvvwcn = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcn(target_vvvvwcn);
|
||||
});
|
||||
|
||||
// the vvvvwcm function
|
||||
function vvvvwcm(location_vvvvwcm)
|
||||
// the vvvvwci function
|
||||
function vvvvwci(location_vvvvwci)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwcm == 1)
|
||||
if (location_vvvvwci == 1)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
// add required attribute to admin_view field
|
||||
if (jform_vvvvwcmvxv_required)
|
||||
if (jform_vvvvwcivxs_required)
|
||||
{
|
||||
updateFieldRequired('admin_view',0);
|
||||
jQuery('#jform_admin_view').prop('required','required');
|
||||
jQuery('#jform_admin_view').attr('aria-required',true);
|
||||
jQuery('#jform_admin_view').addClass('required');
|
||||
jform_vvvvwcmvxv_required = false;
|
||||
jform_vvvvwcivxs_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||
// remove required attribute from admin_view field
|
||||
if (!jform_vvvvwcmvxv_required)
|
||||
if (!jform_vvvvwcivxs_required)
|
||||
{
|
||||
updateFieldRequired('admin_view',1);
|
||||
jQuery('#jform_admin_view').removeAttr('required');
|
||||
jQuery('#jform_admin_view').removeAttr('aria-required');
|
||||
jQuery('#jform_admin_view').removeClass('required');
|
||||
jform_vvvvwcmvxv_required = true;
|
||||
jform_vvvvwcivxs_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcn function
|
||||
function vvvvwcn(location_vvvvwcn)
|
||||
// the vvvvwcj function
|
||||
function vvvvwcj(location_vvvvwcj)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwcn == 2)
|
||||
if (location_vvvvwcj == 2)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
// add required attribute to site_view field
|
||||
if (jform_vvvvwcnvxw_required)
|
||||
if (jform_vvvvwcjvxt_required)
|
||||
{
|
||||
updateFieldRequired('site_view',0);
|
||||
jQuery('#jform_site_view').prop('required','required');
|
||||
jQuery('#jform_site_view').attr('aria-required',true);
|
||||
jQuery('#jform_site_view').addClass('required');
|
||||
jform_vvvvwcnvxw_required = false;
|
||||
jform_vvvvwcjvxt_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||
// remove required attribute from site_view field
|
||||
if (!jform_vvvvwcnvxw_required)
|
||||
if (!jform_vvvvwcjvxt_required)
|
||||
{
|
||||
updateFieldRequired('site_view',1);
|
||||
jQuery('#jform_site_view').removeAttr('required');
|
||||
jQuery('#jform_site_view').removeAttr('aria-required');
|
||||
jQuery('#jform_site_view').removeClass('required');
|
||||
jform_vvvvwcnvxw_required = true;
|
||||
jform_vvvvwcjvxt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwco function
|
||||
function vvvvwco(type_vvvvwco)
|
||||
// the vvvvwck function
|
||||
function vvvvwck(type_vvvvwck)
|
||||
{
|
||||
if (isSet(type_vvvvwco) && type_vvvvwco.constructor !== Array)
|
||||
if (isSet(type_vvvvwck) && type_vvvvwck.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwco = type_vvvvwco;
|
||||
var type_vvvvwco = [];
|
||||
type_vvvvwco.push(temp_vvvvwco);
|
||||
var temp_vvvvwck = type_vvvvwck;
|
||||
var type_vvvvwck = [];
|
||||
type_vvvvwck.push(temp_vvvvwck);
|
||||
}
|
||||
else if (!isSet(type_vvvvwco))
|
||||
else if (!isSet(type_vvvvwck))
|
||||
{
|
||||
var type_vvvvwco = [];
|
||||
var type_vvvvwck = [];
|
||||
}
|
||||
var type = type_vvvvwco.some(type_vvvvwco_SomeFunc);
|
||||
var type = type_vvvvwck.some(type_vvvvwck_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -122,55 +122,55 @@ function vvvvwco(type_vvvvwco)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
// add required attribute to url field
|
||||
if (jform_vvvvwcovxx_required)
|
||||
if (jform_vvvvwckvxu_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwcovxx_required = false;
|
||||
jform_vvvvwckvxu_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
// remove required attribute from url field
|
||||
if (!jform_vvvvwcovxx_required)
|
||||
if (!jform_vvvvwckvxu_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwcovxx_required = true;
|
||||
jform_vvvvwckvxu_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwco Some function
|
||||
function type_vvvvwco_SomeFunc(type_vvvvwco)
|
||||
// the vvvvwck Some function
|
||||
function type_vvvvwck_SomeFunc(type_vvvvwck)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwco == 3)
|
||||
if (type_vvvvwck == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwcp function
|
||||
function vvvvwcp(type_vvvvwcp)
|
||||
// the vvvvwcl function
|
||||
function vvvvwcl(type_vvvvwcl)
|
||||
{
|
||||
if (isSet(type_vvvvwcp) && type_vvvvwcp.constructor !== Array)
|
||||
if (isSet(type_vvvvwcl) && type_vvvvwcl.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcp = type_vvvvwcp;
|
||||
var type_vvvvwcp = [];
|
||||
type_vvvvwcp.push(temp_vvvvwcp);
|
||||
var temp_vvvvwcl = type_vvvvwcl;
|
||||
var type_vvvvwcl = [];
|
||||
type_vvvvwcl.push(temp_vvvvwcl);
|
||||
}
|
||||
else if (!isSet(type_vvvvwcp))
|
||||
else if (!isSet(type_vvvvwcl))
|
||||
{
|
||||
var type_vvvvwcp = [];
|
||||
var type_vvvvwcl = [];
|
||||
}
|
||||
var type = type_vvvvwcp.some(type_vvvvwcp_SomeFunc);
|
||||
var type = type_vvvvwcl.some(type_vvvvwcl_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -178,55 +178,55 @@ function vvvvwcp(type_vvvvwcp)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
// add required attribute to article field
|
||||
if (jform_vvvvwcpvxy_required)
|
||||
if (jform_vvvvwclvxv_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwcpvxy_required = false;
|
||||
jform_vvvvwclvxv_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
// remove required attribute from article field
|
||||
if (!jform_vvvvwcpvxy_required)
|
||||
if (!jform_vvvvwclvxv_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwcpvxy_required = true;
|
||||
jform_vvvvwclvxv_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcp Some function
|
||||
function type_vvvvwcp_SomeFunc(type_vvvvwcp)
|
||||
// the vvvvwcl Some function
|
||||
function type_vvvvwcl_SomeFunc(type_vvvvwcl)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwcp == 1)
|
||||
if (type_vvvvwcl == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwcq function
|
||||
function vvvvwcq(type_vvvvwcq)
|
||||
// the vvvvwcm function
|
||||
function vvvvwcm(type_vvvvwcm)
|
||||
{
|
||||
if (isSet(type_vvvvwcq) && type_vvvvwcq.constructor !== Array)
|
||||
if (isSet(type_vvvvwcm) && type_vvvvwcm.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcq = type_vvvvwcq;
|
||||
var type_vvvvwcq = [];
|
||||
type_vvvvwcq.push(temp_vvvvwcq);
|
||||
var temp_vvvvwcm = type_vvvvwcm;
|
||||
var type_vvvvwcm = [];
|
||||
type_vvvvwcm.push(temp_vvvvwcm);
|
||||
}
|
||||
else if (!isSet(type_vvvvwcq))
|
||||
else if (!isSet(type_vvvvwcm))
|
||||
{
|
||||
var type_vvvvwcq = [];
|
||||
var type_vvvvwcm = [];
|
||||
}
|
||||
var type = type_vvvvwcq.some(type_vvvvwcq_SomeFunc);
|
||||
var type = type_vvvvwcm.some(type_vvvvwcm_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -240,45 +240,45 @@ function vvvvwcq(type_vvvvwcq)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcq Some function
|
||||
function type_vvvvwcq_SomeFunc(type_vvvvwcq)
|
||||
// the vvvvwcm Some function
|
||||
function type_vvvvwcm_SomeFunc(type_vvvvwcm)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwcq == 2)
|
||||
if (type_vvvvwcm == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwcr function
|
||||
function vvvvwcr(target_vvvvwcr)
|
||||
// the vvvvwcn function
|
||||
function vvvvwcn(target_vvvvwcn)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwcr == 1)
|
||||
if (target_vvvvwcn == 1)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
// add required attribute to groups field
|
||||
if (jform_vvvvwcrvxz_required)
|
||||
if (jform_vvvvwcnvxw_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_vvvvwcrvxz_required = false;
|
||||
jform_vvvvwcnvxw_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
// remove required attribute from groups field
|
||||
if (!jform_vvvvwcrvxz_required)
|
||||
if (!jform_vvvvwcnvxw_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_vvvvwcrvxz_required = true;
|
||||
jform_vvvvwcnvxw_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user