Resolved gh-410 to allow default data type values for the database to be set per fieldtype.
This commit is contained in:
@ -9,56 +9,56 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbawag_required = false;
|
||||
jform_vvvvwbawah_required = false;
|
||||
jform_vvvvwbawai_required = false;
|
||||
jform_vvvvwbawaj_required = false;
|
||||
jform_vvvvwbawak_required = false;
|
||||
jform_vvvvwbbwal_required = false;
|
||||
jform_vvvvwbcwam_required = false;
|
||||
jform_vvvvwbewan_required = false;
|
||||
jform_vvvvwbgwao_required = false;
|
||||
jform_vvvvwbmwan_required = false;
|
||||
jform_vvvvwbmwao_required = false;
|
||||
jform_vvvvwbmwap_required = false;
|
||||
jform_vvvvwbmwaq_required = false;
|
||||
jform_vvvvwbmwar_required = false;
|
||||
jform_vvvvwbnwas_required = false;
|
||||
jform_vvvvwbowat_required = false;
|
||||
jform_vvvvwbqwau_required = false;
|
||||
jform_vvvvwbswav_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var protocol_vvvvwba = jQuery("#jform_protocol").val();
|
||||
vvvvwba(protocol_vvvvwba);
|
||||
var protocol_vvvvwbm = jQuery("#jform_protocol").val();
|
||||
vvvvwbm(protocol_vvvvwbm);
|
||||
|
||||
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
|
||||
vvvvwbb(protocol_vvvvwbb);
|
||||
var protocol_vvvvwbn = jQuery("#jform_protocol").val();
|
||||
vvvvwbn(protocol_vvvvwbn);
|
||||
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
});
|
||||
|
||||
// the vvvvwba function
|
||||
function vvvvwba(protocol_vvvvwba)
|
||||
// the vvvvwbm function
|
||||
function vvvvwbm(protocol_vvvvwbm)
|
||||
{
|
||||
if (isSet(protocol_vvvvwba) && protocol_vvvvwba.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbm) && protocol_vvvvwbm.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwba = protocol_vvvvwba;
|
||||
var protocol_vvvvwba = [];
|
||||
protocol_vvvvwba.push(temp_vvvvwba);
|
||||
var temp_vvvvwbm = protocol_vvvvwbm;
|
||||
var protocol_vvvvwbm = [];
|
||||
protocol_vvvvwbm.push(temp_vvvvwbm);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwba))
|
||||
else if (!isSet(protocol_vvvvwbm))
|
||||
{
|
||||
var protocol_vvvvwba = [];
|
||||
var protocol_vvvvwbm = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwba.some(protocol_vvvvwba_SomeFunc);
|
||||
var protocol = protocol_vvvvwbm.some(protocol_vvvvwbm_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -66,137 +66,137 @@ function vvvvwba(protocol_vvvvwba)
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
// add required attribute to authentication field
|
||||
if (jform_vvvvwbawag_required)
|
||||
if (jform_vvvvwbmwan_required)
|
||||
{
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwbawag_required = false;
|
||||
jform_vvvvwbmwan_required = false;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
// add required attribute to host field
|
||||
if (jform_vvvvwbawah_required)
|
||||
if (jform_vvvvwbmwao_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwbawah_required = false;
|
||||
jform_vvvvwbmwao_required = false;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
// add required attribute to port field
|
||||
if (jform_vvvvwbawai_required)
|
||||
if (jform_vvvvwbmwap_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwbawai_required = false;
|
||||
jform_vvvvwbmwap_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwbawaj_required)
|
||||
if (jform_vvvvwbmwaq_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwbawaj_required = false;
|
||||
jform_vvvvwbmwaq_required = false;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').show();
|
||||
jQuery('#jform_username').closest('.control-group').show();
|
||||
// add required attribute to username field
|
||||
if (jform_vvvvwbawak_required)
|
||||
if (jform_vvvvwbmwar_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwbawak_required = false;
|
||||
jform_vvvvwbmwar_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
// remove required attribute from authentication field
|
||||
if (!jform_vvvvwbawag_required)
|
||||
if (!jform_vvvvwbmwan_required)
|
||||
{
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwbawag_required = true;
|
||||
jform_vvvvwbmwan_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
// remove required attribute from host field
|
||||
if (!jform_vvvvwbawah_required)
|
||||
if (!jform_vvvvwbmwao_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwbawah_required = true;
|
||||
jform_vvvvwbmwao_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
// remove required attribute from port field
|
||||
if (!jform_vvvvwbawai_required)
|
||||
if (!jform_vvvvwbmwap_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwbawai_required = true;
|
||||
jform_vvvvwbmwap_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwbawaj_required)
|
||||
if (!jform_vvvvwbmwaq_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwbawaj_required = true;
|
||||
jform_vvvvwbmwaq_required = true;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').hide();
|
||||
jQuery('#jform_username').closest('.control-group').hide();
|
||||
// remove required attribute from username field
|
||||
if (!jform_vvvvwbawak_required)
|
||||
if (!jform_vvvvwbmwar_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwbawak_required = true;
|
||||
jform_vvvvwbmwar_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwba Some function
|
||||
function protocol_vvvvwba_SomeFunc(protocol_vvvvwba)
|
||||
// the vvvvwbm Some function
|
||||
function protocol_vvvvwbm_SomeFunc(protocol_vvvvwbm)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwba == 2)
|
||||
if (protocol_vvvvwbm == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbb function
|
||||
function vvvvwbb(protocol_vvvvwbb)
|
||||
// the vvvvwbn function
|
||||
function vvvvwbn(protocol_vvvvwbn)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbb) && protocol_vvvvwbb.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbn) && protocol_vvvvwbn.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbb = protocol_vvvvwbb;
|
||||
var protocol_vvvvwbb = [];
|
||||
protocol_vvvvwbb.push(temp_vvvvwbb);
|
||||
var temp_vvvvwbn = protocol_vvvvwbn;
|
||||
var protocol_vvvvwbn = [];
|
||||
protocol_vvvvwbn.push(temp_vvvvwbn);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbb))
|
||||
else if (!isSet(protocol_vvvvwbn))
|
||||
{
|
||||
var protocol_vvvvwbb = [];
|
||||
var protocol_vvvvwbn = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbb.some(protocol_vvvvwbb_SomeFunc);
|
||||
var protocol = protocol_vvvvwbn.some(protocol_vvvvwbn_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -205,13 +205,13 @@ function vvvvwbb(protocol_vvvvwbb)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
if (jform_vvvvwbbwal_required)
|
||||
if (jform_vvvvwbnwas_required)
|
||||
{
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwbbwal_required = false;
|
||||
jform_vvvvwbnwas_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -219,54 +219,54 @@ function vvvvwbb(protocol_vvvvwbb)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
if (!jform_vvvvwbbwal_required)
|
||||
if (!jform_vvvvwbnwas_required)
|
||||
{
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwbbwal_required = true;
|
||||
jform_vvvvwbnwas_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbb Some function
|
||||
function protocol_vvvvwbb_SomeFunc(protocol_vvvvwbb)
|
||||
// the vvvvwbn Some function
|
||||
function protocol_vvvvwbn_SomeFunc(protocol_vvvvwbn)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbb == 1)
|
||||
if (protocol_vvvvwbn == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbc function
|
||||
function vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc)
|
||||
// the vvvvwbo function
|
||||
function vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbc) && protocol_vvvvwbc.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbo) && protocol_vvvvwbo.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbc = protocol_vvvvwbc;
|
||||
var protocol_vvvvwbc = [];
|
||||
protocol_vvvvwbc.push(temp_vvvvwbc);
|
||||
var temp_vvvvwbo = protocol_vvvvwbo;
|
||||
var protocol_vvvvwbo = [];
|
||||
protocol_vvvvwbo.push(temp_vvvvwbo);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbc))
|
||||
else if (!isSet(protocol_vvvvwbo))
|
||||
{
|
||||
var protocol_vvvvwbc = [];
|
||||
var protocol_vvvvwbo = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbc.some(protocol_vvvvwbc_SomeFunc);
|
||||
var protocol = protocol_vvvvwbo.some(protocol_vvvvwbo_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbc) && authentication_vvvvwbc.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbo) && authentication_vvvvwbo.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbc = authentication_vvvvwbc;
|
||||
var authentication_vvvvwbc = [];
|
||||
authentication_vvvvwbc.push(temp_vvvvwbc);
|
||||
var temp_vvvvwbo = authentication_vvvvwbo;
|
||||
var authentication_vvvvwbo = [];
|
||||
authentication_vvvvwbo.push(temp_vvvvwbo);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbc))
|
||||
else if (!isSet(authentication_vvvvwbo))
|
||||
{
|
||||
var authentication_vvvvwbc = [];
|
||||
var authentication_vvvvwbo = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbc.some(authentication_vvvvwbc_SomeFunc);
|
||||
var authentication = authentication_vvvvwbo.some(authentication_vvvvwbo_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -274,78 +274,78 @@ function vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwbcwam_required)
|
||||
if (jform_vvvvwbowat_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwbcwam_required = false;
|
||||
jform_vvvvwbowat_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwbcwam_required)
|
||||
if (!jform_vvvvwbowat_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwbcwam_required = true;
|
||||
jform_vvvvwbowat_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbc Some function
|
||||
function protocol_vvvvwbc_SomeFunc(protocol_vvvvwbc)
|
||||
// the vvvvwbo Some function
|
||||
function protocol_vvvvwbo_SomeFunc(protocol_vvvvwbo)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbc == 2)
|
||||
if (protocol_vvvvwbo == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbc Some function
|
||||
function authentication_vvvvwbc_SomeFunc(authentication_vvvvwbc)
|
||||
// the vvvvwbo Some function
|
||||
function authentication_vvvvwbo_SomeFunc(authentication_vvvvwbo)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbc == 1 || authentication_vvvvwbc == 3 || authentication_vvvvwbc == 5)
|
||||
if (authentication_vvvvwbo == 1 || authentication_vvvvwbo == 3 || authentication_vvvvwbo == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbe function
|
||||
function vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe)
|
||||
// the vvvvwbq function
|
||||
function vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbe) && protocol_vvvvwbe.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbq) && protocol_vvvvwbq.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbe = protocol_vvvvwbe;
|
||||
var protocol_vvvvwbe = [];
|
||||
protocol_vvvvwbe.push(temp_vvvvwbe);
|
||||
var temp_vvvvwbq = protocol_vvvvwbq;
|
||||
var protocol_vvvvwbq = [];
|
||||
protocol_vvvvwbq.push(temp_vvvvwbq);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbe))
|
||||
else if (!isSet(protocol_vvvvwbq))
|
||||
{
|
||||
var protocol_vvvvwbe = [];
|
||||
var protocol_vvvvwbq = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbe.some(protocol_vvvvwbe_SomeFunc);
|
||||
var protocol = protocol_vvvvwbq.some(protocol_vvvvwbq_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbe) && authentication_vvvvwbe.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbq) && authentication_vvvvwbq.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbe = authentication_vvvvwbe;
|
||||
var authentication_vvvvwbe = [];
|
||||
authentication_vvvvwbe.push(temp_vvvvwbe);
|
||||
var temp_vvvvwbq = authentication_vvvvwbq;
|
||||
var authentication_vvvvwbq = [];
|
||||
authentication_vvvvwbq.push(temp_vvvvwbq);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbe))
|
||||
else if (!isSet(authentication_vvvvwbq))
|
||||
{
|
||||
var authentication_vvvvwbe = [];
|
||||
var authentication_vvvvwbq = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbe.some(authentication_vvvvwbe_SomeFunc);
|
||||
var authentication = authentication_vvvvwbq.some(authentication_vvvvwbq_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -353,78 +353,78 @@ function vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe)
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
// add required attribute to private field
|
||||
if (jform_vvvvwbewan_required)
|
||||
if (jform_vvvvwbqwau_required)
|
||||
{
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwbewan_required = false;
|
||||
jform_vvvvwbqwau_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
// remove required attribute from private field
|
||||
if (!jform_vvvvwbewan_required)
|
||||
if (!jform_vvvvwbqwau_required)
|
||||
{
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwbewan_required = true;
|
||||
jform_vvvvwbqwau_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbe Some function
|
||||
function protocol_vvvvwbe_SomeFunc(protocol_vvvvwbe)
|
||||
// the vvvvwbq Some function
|
||||
function protocol_vvvvwbq_SomeFunc(protocol_vvvvwbq)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbe == 2)
|
||||
if (protocol_vvvvwbq == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbe Some function
|
||||
function authentication_vvvvwbe_SomeFunc(authentication_vvvvwbe)
|
||||
// the vvvvwbq Some function
|
||||
function authentication_vvvvwbq_SomeFunc(authentication_vvvvwbq)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbe == 2 || authentication_vvvvwbe == 3)
|
||||
if (authentication_vvvvwbq == 2 || authentication_vvvvwbq == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg)
|
||||
// the vvvvwbs function
|
||||
function vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbg) && protocol_vvvvwbg.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbs) && protocol_vvvvwbs.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbg = protocol_vvvvwbg;
|
||||
var protocol_vvvvwbg = [];
|
||||
protocol_vvvvwbg.push(temp_vvvvwbg);
|
||||
var temp_vvvvwbs = protocol_vvvvwbs;
|
||||
var protocol_vvvvwbs = [];
|
||||
protocol_vvvvwbs.push(temp_vvvvwbs);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbg))
|
||||
else if (!isSet(protocol_vvvvwbs))
|
||||
{
|
||||
var protocol_vvvvwbg = [];
|
||||
var protocol_vvvvwbs = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbg.some(protocol_vvvvwbg_SomeFunc);
|
||||
var protocol = protocol_vvvvwbs.some(protocol_vvvvwbs_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbg) && authentication_vvvvwbg.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbs) && authentication_vvvvwbs.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbg = authentication_vvvvwbg;
|
||||
var authentication_vvvvwbg = [];
|
||||
authentication_vvvvwbg.push(temp_vvvvwbg);
|
||||
var temp_vvvvwbs = authentication_vvvvwbs;
|
||||
var authentication_vvvvwbs = [];
|
||||
authentication_vvvvwbs.push(temp_vvvvwbs);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbg))
|
||||
else if (!isSet(authentication_vvvvwbs))
|
||||
{
|
||||
var authentication_vvvvwbg = [];
|
||||
var authentication_vvvvwbs = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbg.some(authentication_vvvvwbg_SomeFunc);
|
||||
var authentication = authentication_vvvvwbs.some(authentication_vvvvwbs_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -432,78 +432,78 @@ function vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg)
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').show();
|
||||
// add required attribute to private_key field
|
||||
if (jform_vvvvwbgwao_required)
|
||||
if (jform_vvvvwbswav_required)
|
||||
{
|
||||
updateFieldRequired('private_key',0);
|
||||
jQuery('#jform_private_key').prop('required','required');
|
||||
jQuery('#jform_private_key').attr('aria-required',true);
|
||||
jQuery('#jform_private_key').addClass('required');
|
||||
jform_vvvvwbgwao_required = false;
|
||||
jform_vvvvwbswav_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').hide();
|
||||
// remove required attribute from private_key field
|
||||
if (!jform_vvvvwbgwao_required)
|
||||
if (!jform_vvvvwbswav_required)
|
||||
{
|
||||
updateFieldRequired('private_key',1);
|
||||
jQuery('#jform_private_key').removeAttr('required');
|
||||
jQuery('#jform_private_key').removeAttr('aria-required');
|
||||
jQuery('#jform_private_key').removeClass('required');
|
||||
jform_vvvvwbgwao_required = true;
|
||||
jform_vvvvwbswav_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbg Some function
|
||||
function protocol_vvvvwbg_SomeFunc(protocol_vvvvwbg)
|
||||
// the vvvvwbs Some function
|
||||
function protocol_vvvvwbs_SomeFunc(protocol_vvvvwbs)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbg == 2)
|
||||
if (protocol_vvvvwbs == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbg Some function
|
||||
function authentication_vvvvwbg_SomeFunc(authentication_vvvvwbg)
|
||||
// the vvvvwbs Some function
|
||||
function authentication_vvvvwbs_SomeFunc(authentication_vvvvwbs)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbg == 4 || authentication_vvvvwbg == 5)
|
||||
if (authentication_vvvvwbs == 4 || authentication_vvvvwbs == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbi function
|
||||
function vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi)
|
||||
// the vvvvwbu function
|
||||
function vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbi) && protocol_vvvvwbi.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbu) && protocol_vvvvwbu.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbi = protocol_vvvvwbi;
|
||||
var protocol_vvvvwbi = [];
|
||||
protocol_vvvvwbi.push(temp_vvvvwbi);
|
||||
var temp_vvvvwbu = protocol_vvvvwbu;
|
||||
var protocol_vvvvwbu = [];
|
||||
protocol_vvvvwbu.push(temp_vvvvwbu);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbi))
|
||||
else if (!isSet(protocol_vvvvwbu))
|
||||
{
|
||||
var protocol_vvvvwbi = [];
|
||||
var protocol_vvvvwbu = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbi.some(protocol_vvvvwbi_SomeFunc);
|
||||
var protocol = protocol_vvvvwbu.some(protocol_vvvvwbu_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbi) && authentication_vvvvwbi.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbu) && authentication_vvvvwbu.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbi = authentication_vvvvwbi;
|
||||
var authentication_vvvvwbi = [];
|
||||
authentication_vvvvwbi.push(temp_vvvvwbi);
|
||||
var temp_vvvvwbu = authentication_vvvvwbu;
|
||||
var authentication_vvvvwbu = [];
|
||||
authentication_vvvvwbu.push(temp_vvvvwbu);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbi))
|
||||
else if (!isSet(authentication_vvvvwbu))
|
||||
{
|
||||
var authentication_vvvvwbi = [];
|
||||
var authentication_vvvvwbu = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbi.some(authentication_vvvvwbi_SomeFunc);
|
||||
var authentication = authentication_vvvvwbu.some(authentication_vvvvwbu_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -517,22 +517,22 @@ function vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbi Some function
|
||||
function protocol_vvvvwbi_SomeFunc(protocol_vvvvwbi)
|
||||
// the vvvvwbu Some function
|
||||
function protocol_vvvvwbu_SomeFunc(protocol_vvvvwbu)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbi == 2)
|
||||
if (protocol_vvvvwbu == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbi Some function
|
||||
function authentication_vvvvwbi_SomeFunc(authentication_vvvvwbi)
|
||||
// the vvvvwbu Some function
|
||||
function authentication_vvvvwbu_SomeFunc(authentication_vvvvwbu)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbi == 2 || authentication_vvvvwbi == 3 || authentication_vvvvwbi == 4 || authentication_vvvvwbi == 5)
|
||||
if (authentication_vvvvwbu == 2 || authentication_vvvvwbu == 3 || authentication_vvvvwbu == 4 || authentication_vvvvwbu == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user