Stable Release of version 2.10.5
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -9,23 +9,20 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwdnvyt_required = false;
|
||||
jform_vvvvwdovyu_required = false;
|
||||
jform_vvvvwdpvyv_required = false;
|
||||
jform_vvvvwdqvyw_required = false;
|
||||
jform_vvvvwdsvyx_required = false;
|
||||
jform_vvvvwdovyt_required = false;
|
||||
jform_vvvvwdpvyu_required = false;
|
||||
jform_vvvvwdqvyv_required = false;
|
||||
jform_vvvvwdrvyw_required = false;
|
||||
jform_vvvvwdtvyx_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var location_vvvvwdn = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwdn(location_vvvvwdn);
|
||||
|
||||
var location_vvvvwdo = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwdo(location_vvvvwdo);
|
||||
|
||||
var type_vvvvwdp = jQuery("#jform_type").val();
|
||||
vvvvwdp(type_vvvvwdp);
|
||||
var location_vvvvwdp = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwdp(location_vvvvwdp);
|
||||
|
||||
var type_vvvvwdq = jQuery("#jform_type").val();
|
||||
vvvvwdq(type_vvvvwdq);
|
||||
@ -33,130 +30,77 @@ jQuery(document).ready(function()
|
||||
var type_vvvvwdr = jQuery("#jform_type").val();
|
||||
vvvvwdr(type_vvvvwdr);
|
||||
|
||||
var target_vvvvwds = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwds(target_vvvvwds);
|
||||
var type_vvvvwds = jQuery("#jform_type").val();
|
||||
vvvvwds(type_vvvvwds);
|
||||
|
||||
var target_vvvvwdt = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwdt(target_vvvvwdt);
|
||||
});
|
||||
|
||||
// the vvvvwdn function
|
||||
function vvvvwdn(location_vvvvwdn)
|
||||
// the vvvvwdo function
|
||||
function vvvvwdo(location_vvvvwdo)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwdn == 1)
|
||||
if (location_vvvvwdo == 1)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
// add required attribute to admin_view field
|
||||
if (jform_vvvvwdnvyt_required)
|
||||
if (jform_vvvvwdovyt_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_vvvvwdnvyt_required = false;
|
||||
jform_vvvvwdovyt_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||
// remove required attribute from admin_view field
|
||||
if (!jform_vvvvwdnvyt_required)
|
||||
if (!jform_vvvvwdovyt_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_vvvvwdnvyt_required = true;
|
||||
jform_vvvvwdovyt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdo function
|
||||
function vvvvwdo(location_vvvvwdo)
|
||||
// the vvvvwdp function
|
||||
function vvvvwdp(location_vvvvwdp)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwdo == 2)
|
||||
if (location_vvvvwdp == 2)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
// add required attribute to site_view field
|
||||
if (jform_vvvvwdovyu_required)
|
||||
if (jform_vvvvwdpvyu_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_vvvvwdovyu_required = false;
|
||||
jform_vvvvwdpvyu_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||
// remove required attribute from site_view field
|
||||
if (!jform_vvvvwdovyu_required)
|
||||
if (!jform_vvvvwdpvyu_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_vvvvwdovyu_required = true;
|
||||
jform_vvvvwdpvyu_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdp function
|
||||
function vvvvwdp(type_vvvvwdp)
|
||||
{
|
||||
if (isSet(type_vvvvwdp) && type_vvvvwdp.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdp = type_vvvvwdp;
|
||||
var type_vvvvwdp = [];
|
||||
type_vvvvwdp.push(temp_vvvvwdp);
|
||||
}
|
||||
else if (!isSet(type_vvvvwdp))
|
||||
{
|
||||
var type_vvvvwdp = [];
|
||||
}
|
||||
var type = type_vvvvwdp.some(type_vvvvwdp_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
// add required attribute to url field
|
||||
if (jform_vvvvwdpvyv_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwdpvyv_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
// remove required attribute from url field
|
||||
if (!jform_vvvvwdpvyv_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwdpvyv_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdp Some function
|
||||
function type_vvvvwdp_SomeFunc(type_vvvvwdp)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwdp == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdq function
|
||||
function vvvvwdq(type_vvvvwdq)
|
||||
{
|
||||
@ -176,28 +120,28 @@ function vvvvwdq(type_vvvvwdq)
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
// add required attribute to article field
|
||||
if (jform_vvvvwdqvyw_required)
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
// add required attribute to url field
|
||||
if (jform_vvvvwdqvyv_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwdqvyw_required = false;
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwdqvyv_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
// remove required attribute from article field
|
||||
if (!jform_vvvvwdqvyw_required)
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
// remove required attribute from url field
|
||||
if (!jform_vvvvwdqvyv_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwdqvyw_required = true;
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwdqvyv_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -206,7 +150,7 @@ function vvvvwdq(type_vvvvwdq)
|
||||
function type_vvvvwdq_SomeFunc(type_vvvvwdq)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwdq == 1)
|
||||
if (type_vvvvwdq == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -229,6 +173,62 @@ function vvvvwdr(type_vvvvwdr)
|
||||
var type = type_vvvvwdr.some(type_vvvvwdr_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
// add required attribute to article field
|
||||
if (jform_vvvvwdrvyw_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwdrvyw_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
// remove required attribute from article field
|
||||
if (!jform_vvvvwdrvyw_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwdrvyw_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdr Some function
|
||||
function type_vvvvwdr_SomeFunc(type_vvvvwdr)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwdr == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwds function
|
||||
function vvvvwds(type_vvvvwds)
|
||||
{
|
||||
if (isSet(type_vvvvwds) && type_vvvvwds.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwds = type_vvvvwds;
|
||||
var type_vvvvwds = [];
|
||||
type_vvvvwds.push(temp_vvvvwds);
|
||||
}
|
||||
else if (!isSet(type_vvvvwds))
|
||||
{
|
||||
var type_vvvvwds = [];
|
||||
}
|
||||
var type = type_vvvvwds.some(type_vvvvwds_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
@ -240,45 +240,45 @@ function vvvvwdr(type_vvvvwdr)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdr Some function
|
||||
function type_vvvvwdr_SomeFunc(type_vvvvwdr)
|
||||
// the vvvvwds Some function
|
||||
function type_vvvvwds_SomeFunc(type_vvvvwds)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwdr == 2)
|
||||
if (type_vvvvwds == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwds function
|
||||
function vvvvwds(target_vvvvwds)
|
||||
// the vvvvwdt function
|
||||
function vvvvwdt(target_vvvvwdt)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwds == 1)
|
||||
if (target_vvvvwdt == 1)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
// add required attribute to groups field
|
||||
if (jform_vvvvwdsvyx_required)
|
||||
if (jform_vvvvwdtvyx_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_vvvvwdsvyx_required = false;
|
||||
jform_vvvvwdtvyx_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
// remove required attribute from groups field
|
||||
if (!jform_vvvvwdsvyx_required)
|
||||
if (!jform_vvvvwdtvyx_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_vvvvwdsvyx_required = true;
|
||||
jform_vvvvwdtvyx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,6 +63,9 @@ jQuery(document).ready(function()
|
||||
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
|
||||
var target_vvvvwcc = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcc(target_vvvvwcc);
|
||||
});
|
||||
|
||||
// the vvvvwbl function
|
||||
@ -797,6 +800,20 @@ function vvvvwcb(target_vvvvwcb)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcc function
|
||||
function vvvvwcc(target_vvvvwcc)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwcc == 2)
|
||||
{
|
||||
jQuery('.note_yes_behaviour_library').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_yes_behaviour_library').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// update required fields
|
||||
function updateFieldRequired(name,status)
|
||||
{
|
||||
|
@ -159,10 +159,6 @@
|
||||
message="COM_COMPONENTBUILDER_LIBRARY_DESCRIPTION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_LIBRARY_DESCRIPTION_HINT"
|
||||
/>
|
||||
<!-- Note_build_in_behaviour_two Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_build_in_behaviour_two" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_DESCRIPTION" heading="h4" class="alert alert-success note_build_in_behaviour_two" />
|
||||
<!-- Note_yes_behaviour_two Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_yes_behaviour_two" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_DESCRIPTION" heading="h4" class="alert alert-success note_yes_behaviour_two" />
|
||||
<!-- Note_no_behaviour_two Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_no_behaviour_two" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_TWO_DESCRIPTION" heading="h4" class="alert alert-error note_no_behaviour_two" />
|
||||
<!-- Note_display_library_files_folders_urls Field. Type: Note. A None Database Field. (joomla) -->
|
||||
@ -177,18 +173,8 @@
|
||||
name="not_required"
|
||||
default="[]"
|
||||
/>
|
||||
<!-- Libraries Field. Type: Librariesx. (custom) -->
|
||||
<field
|
||||
type="librariesx"
|
||||
name="libraries"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
default="0"
|
||||
required="false"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Note_yes_behaviour_one Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_yes_behaviour_one" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_DESCRIPTION" heading="h4" class="alert alert-success note_yes_behaviour_one" />
|
||||
<!-- Note_display_library_config Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_display_library_config" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_DISPLAY_LIBRARY_CONFIG_DESCRIPTION" class="note_display_library_config" />
|
||||
<!-- Php_setdocument Field. Type: Textarea. (joomla) -->
|
||||
@ -322,10 +308,26 @@
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Note_yes_behaviour_library Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_yes_behaviour_library" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_LIBRARY_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_LIBRARY_DESCRIPTION" heading="h4" class="alert alert-success note_yes_behaviour_library" />
|
||||
<!-- Note_build_in_behaviour_one Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_build_in_behaviour_one" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_ONE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_ONE_DESCRIPTION" heading="h4" class="alert alert-success note_build_in_behaviour_one" />
|
||||
<!-- Note_yes_behaviour_one Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_yes_behaviour_one" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_ONE_DESCRIPTION" heading="h4" class="alert alert-success note_yes_behaviour_one" />
|
||||
<!-- Note_yes_behaviour_two Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_yes_behaviour_two" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_YES_BEHAVIOUR_TWO_DESCRIPTION" heading="h4" class="alert alert-success note_yes_behaviour_two" />
|
||||
<!-- Libraries Field. Type: Librariesx. (custom) -->
|
||||
<field
|
||||
type="librariesx"
|
||||
name="libraries"
|
||||
label="COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_LABEL"
|
||||
description="COM_COMPONENTBUILDER_LIBRARY_LIBRARIES_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="true"
|
||||
default="0"
|
||||
required="false"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Note_build_in_behaviour_two Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_build_in_behaviour_two" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_BUILD_IN_BEHAVIOUR_TWO_DESCRIPTION" heading="h4" class="alert alert-success note_build_in_behaviour_two" />
|
||||
<!-- Note_no_behaviour_one Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_no_behaviour_one" label="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_LABEL" description="COM_COMPONENTBUILDER_LIBRARY_NOTE_NO_BEHAVIOUR_ONE_DESCRIPTION" heading="h4" class="alert alert-error note_no_behaviour_one" />
|
||||
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
|
||||
|
@ -9,180 +9,42 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwddvyj_required = false;
|
||||
jform_vvvvwddvyk_required = false;
|
||||
jform_vvvvwddvyl_required = false;
|
||||
jform_vvvvwddvym_required = false;
|
||||
jform_vvvvwddvyn_required = false;
|
||||
jform_vvvvwdevyo_required = false;
|
||||
jform_vvvvwdfvyp_required = false;
|
||||
jform_vvvvwdhvyq_required = false;
|
||||
jform_vvvvwdjvyr_required = false;
|
||||
jform_vvvvwdevyj_required = false;
|
||||
jform_vvvvwdevyk_required = false;
|
||||
jform_vvvvwdevyl_required = false;
|
||||
jform_vvvvwdevym_required = false;
|
||||
jform_vvvvwdevyn_required = false;
|
||||
jform_vvvvwdfvyo_required = false;
|
||||
jform_vvvvwdgvyp_required = false;
|
||||
jform_vvvvwdivyq_required = false;
|
||||
jform_vvvvwdkvyr_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var protocol_vvvvwdd = jQuery("#jform_protocol").val();
|
||||
vvvvwdd(protocol_vvvvwdd);
|
||||
|
||||
var protocol_vvvvwde = jQuery("#jform_protocol").val();
|
||||
vvvvwde(protocol_vvvvwde);
|
||||
|
||||
var protocol_vvvvwdf = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwdf = jQuery("#jform_authentication").val();
|
||||
vvvvwdf(protocol_vvvvwdf,authentication_vvvvwdf);
|
||||
vvvvwdf(protocol_vvvvwdf);
|
||||
|
||||
var protocol_vvvvwdh = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwdh = jQuery("#jform_authentication").val();
|
||||
vvvvwdh(protocol_vvvvwdh,authentication_vvvvwdh);
|
||||
var protocol_vvvvwdg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwdg = jQuery("#jform_authentication").val();
|
||||
vvvvwdg(protocol_vvvvwdg,authentication_vvvvwdg);
|
||||
|
||||
var protocol_vvvvwdj = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwdj = jQuery("#jform_authentication").val();
|
||||
vvvvwdj(protocol_vvvvwdj,authentication_vvvvwdj);
|
||||
var protocol_vvvvwdi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwdi = jQuery("#jform_authentication").val();
|
||||
vvvvwdi(protocol_vvvvwdi,authentication_vvvvwdi);
|
||||
|
||||
var protocol_vvvvwdl = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwdl = jQuery("#jform_authentication").val();
|
||||
vvvvwdl(protocol_vvvvwdl,authentication_vvvvwdl);
|
||||
var protocol_vvvvwdk = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwdk = jQuery("#jform_authentication").val();
|
||||
vvvvwdk(protocol_vvvvwdk,authentication_vvvvwdk);
|
||||
|
||||
var protocol_vvvvwdm = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwdm = jQuery("#jform_authentication").val();
|
||||
vvvvwdm(protocol_vvvvwdm,authentication_vvvvwdm);
|
||||
});
|
||||
|
||||
// the vvvvwdd function
|
||||
function vvvvwdd(protocol_vvvvwdd)
|
||||
{
|
||||
if (isSet(protocol_vvvvwdd) && protocol_vvvvwdd.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdd = protocol_vvvvwdd;
|
||||
var protocol_vvvvwdd = [];
|
||||
protocol_vvvvwdd.push(temp_vvvvwdd);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwdd))
|
||||
{
|
||||
var protocol_vvvvwdd = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwdd.some(protocol_vvvvwdd_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
// add required attribute to authentication field
|
||||
if (jform_vvvvwddvyj_required)
|
||||
{
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwddvyj_required = false;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
// add required attribute to host field
|
||||
if (jform_vvvvwddvyk_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwddvyk_required = false;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
// add required attribute to port field
|
||||
if (jform_vvvvwddvyl_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwddvyl_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwddvym_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwddvym_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_vvvvwddvyn_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwddvyn_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
// remove required attribute from authentication field
|
||||
if (!jform_vvvvwddvyj_required)
|
||||
{
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwddvyj_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
// remove required attribute from host field
|
||||
if (!jform_vvvvwddvyk_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwddvyk_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
// remove required attribute from port field
|
||||
if (!jform_vvvvwddvyl_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwddvyl_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwddvym_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwddvym_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_vvvvwddvyn_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwddvyn_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdd Some function
|
||||
function protocol_vvvvwdd_SomeFunc(protocol_vvvvwdd)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwdd == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwde function
|
||||
function vvvvwde(protocol_vvvvwde)
|
||||
{
|
||||
@ -202,30 +64,110 @@ function vvvvwde(protocol_vvvvwde)
|
||||
// set this function logic
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
if (jform_vvvvwdevyo_required)
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
// add required attribute to authentication field
|
||||
if (jform_vvvvwdevyj_required)
|
||||
{
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwdevyo_required = false;
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwdevyj_required = false;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
// add required attribute to host field
|
||||
if (jform_vvvvwdevyk_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwdevyk_required = false;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
// add required attribute to port field
|
||||
if (jform_vvvvwdevyl_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwdevyl_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwdevym_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwdevym_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_vvvvwdevyn_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwdevyn_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
if (!jform_vvvvwdevyo_required)
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
// remove required attribute from authentication field
|
||||
if (!jform_vvvvwdevyj_required)
|
||||
{
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwdevyo_required = true;
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwdevyj_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
// remove required attribute from host field
|
||||
if (!jform_vvvvwdevyk_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwdevyk_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
// remove required attribute from port field
|
||||
if (!jform_vvvvwdevyl_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwdevyl_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwdevym_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwdevym_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_vvvvwdevyn_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwdevyn_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -234,7 +176,7 @@ function vvvvwde(protocol_vvvvwde)
|
||||
function protocol_vvvvwde_SomeFunc(protocol_vvvvwde)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwde == 1)
|
||||
if (protocol_vvvvwde == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -242,7 +184,7 @@ function protocol_vvvvwde_SomeFunc(protocol_vvvvwde)
|
||||
}
|
||||
|
||||
// the vvvvwdf function
|
||||
function vvvvwdf(protocol_vvvvwdf,authentication_vvvvwdf)
|
||||
function vvvvwdf(protocol_vvvvwdf)
|
||||
{
|
||||
if (isSet(protocol_vvvvwdf) && protocol_vvvvwdf.constructor !== Array)
|
||||
{
|
||||
@ -256,44 +198,34 @@ function vvvvwdf(protocol_vvvvwdf,authentication_vvvvwdf)
|
||||
}
|
||||
var protocol = protocol_vvvvwdf.some(protocol_vvvvwdf_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwdf) && authentication_vvvvwdf.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdf = authentication_vvvvwdf;
|
||||
var authentication_vvvvwdf = [];
|
||||
authentication_vvvvwdf.push(temp_vvvvwdf);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwdf))
|
||||
{
|
||||
var authentication_vvvvwdf = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwdf.some(authentication_vvvvwdf_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwdfvyp_required)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
if (jform_vvvvwdfvyo_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwdfvyp_required = false;
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwdfvyo_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwdfvyp_required)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
if (!jform_vvvvwdfvyo_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwdfvyp_required = true;
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwdfvyo_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -302,50 +234,118 @@ function vvvvwdf(protocol_vvvvwdf,authentication_vvvvwdf)
|
||||
function protocol_vvvvwdf_SomeFunc(protocol_vvvvwdf)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwdf == 2)
|
||||
if (protocol_vvvvwdf == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdf Some function
|
||||
function authentication_vvvvwdf_SomeFunc(authentication_vvvvwdf)
|
||||
// the vvvvwdg function
|
||||
function vvvvwdg(protocol_vvvvwdg,authentication_vvvvwdg)
|
||||
{
|
||||
if (isSet(protocol_vvvvwdg) && protocol_vvvvwdg.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdg = protocol_vvvvwdg;
|
||||
var protocol_vvvvwdg = [];
|
||||
protocol_vvvvwdg.push(temp_vvvvwdg);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwdg))
|
||||
{
|
||||
var protocol_vvvvwdg = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwdg.some(protocol_vvvvwdg_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwdg) && authentication_vvvvwdg.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdg = authentication_vvvvwdg;
|
||||
var authentication_vvvvwdg = [];
|
||||
authentication_vvvvwdg.push(temp_vvvvwdg);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwdg))
|
||||
{
|
||||
var authentication_vvvvwdg = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwdg.some(authentication_vvvvwdg_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwdgvyp_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwdgvyp_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwdgvyp_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwdgvyp_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdg Some function
|
||||
function protocol_vvvvwdg_SomeFunc(protocol_vvvvwdg)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwdf == 1 || authentication_vvvvwdf == 3 || authentication_vvvvwdf == 5)
|
||||
if (protocol_vvvvwdg == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdh function
|
||||
function vvvvwdh(protocol_vvvvwdh,authentication_vvvvwdh)
|
||||
// the vvvvwdg Some function
|
||||
function authentication_vvvvwdg_SomeFunc(authentication_vvvvwdg)
|
||||
{
|
||||
if (isSet(protocol_vvvvwdh) && protocol_vvvvwdh.constructor !== Array)
|
||||
// set the function logic
|
||||
if (authentication_vvvvwdg == 1 || authentication_vvvvwdg == 3 || authentication_vvvvwdg == 5)
|
||||
{
|
||||
var temp_vvvvwdh = protocol_vvvvwdh;
|
||||
var protocol_vvvvwdh = [];
|
||||
protocol_vvvvwdh.push(temp_vvvvwdh);
|
||||
return true;
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwdh))
|
||||
{
|
||||
var protocol_vvvvwdh = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwdh.some(protocol_vvvvwdh_SomeFunc);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isSet(authentication_vvvvwdh) && authentication_vvvvwdh.constructor !== Array)
|
||||
// the vvvvwdi function
|
||||
function vvvvwdi(protocol_vvvvwdi,authentication_vvvvwdi)
|
||||
{
|
||||
if (isSet(protocol_vvvvwdi) && protocol_vvvvwdi.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdh = authentication_vvvvwdh;
|
||||
var authentication_vvvvwdh = [];
|
||||
authentication_vvvvwdh.push(temp_vvvvwdh);
|
||||
var temp_vvvvwdi = protocol_vvvvwdi;
|
||||
var protocol_vvvvwdi = [];
|
||||
protocol_vvvvwdi.push(temp_vvvvwdi);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwdh))
|
||||
else if (!isSet(protocol_vvvvwdi))
|
||||
{
|
||||
var authentication_vvvvwdh = [];
|
||||
var protocol_vvvvwdi = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwdh.some(authentication_vvvvwdh_SomeFunc);
|
||||
var protocol = protocol_vvvvwdi.some(protocol_vvvvwdi_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwdi) && authentication_vvvvwdi.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdi = authentication_vvvvwdi;
|
||||
var authentication_vvvvwdi = [];
|
||||
authentication_vvvvwdi.push(temp_vvvvwdi);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwdi))
|
||||
{
|
||||
var authentication_vvvvwdi = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwdi.some(authentication_vvvvwdi_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -353,78 +353,78 @@ function vvvvwdh(protocol_vvvvwdh,authentication_vvvvwdh)
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
// add required attribute to private field
|
||||
if (jform_vvvvwdhvyq_required)
|
||||
if (jform_vvvvwdivyq_required)
|
||||
{
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwdhvyq_required = false;
|
||||
jform_vvvvwdivyq_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
// remove required attribute from private field
|
||||
if (!jform_vvvvwdhvyq_required)
|
||||
if (!jform_vvvvwdivyq_required)
|
||||
{
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwdhvyq_required = true;
|
||||
jform_vvvvwdivyq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdh Some function
|
||||
function protocol_vvvvwdh_SomeFunc(protocol_vvvvwdh)
|
||||
// the vvvvwdi Some function
|
||||
function protocol_vvvvwdi_SomeFunc(protocol_vvvvwdi)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwdh == 2)
|
||||
if (protocol_vvvvwdi == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdh Some function
|
||||
function authentication_vvvvwdh_SomeFunc(authentication_vvvvwdh)
|
||||
// the vvvvwdi Some function
|
||||
function authentication_vvvvwdi_SomeFunc(authentication_vvvvwdi)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwdh == 2 || authentication_vvvvwdh == 3)
|
||||
if (authentication_vvvvwdi == 2 || authentication_vvvvwdi == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdj function
|
||||
function vvvvwdj(protocol_vvvvwdj,authentication_vvvvwdj)
|
||||
// the vvvvwdk function
|
||||
function vvvvwdk(protocol_vvvvwdk,authentication_vvvvwdk)
|
||||
{
|
||||
if (isSet(protocol_vvvvwdj) && protocol_vvvvwdj.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwdk) && protocol_vvvvwdk.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdj = protocol_vvvvwdj;
|
||||
var protocol_vvvvwdj = [];
|
||||
protocol_vvvvwdj.push(temp_vvvvwdj);
|
||||
var temp_vvvvwdk = protocol_vvvvwdk;
|
||||
var protocol_vvvvwdk = [];
|
||||
protocol_vvvvwdk.push(temp_vvvvwdk);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwdj))
|
||||
else if (!isSet(protocol_vvvvwdk))
|
||||
{
|
||||
var protocol_vvvvwdj = [];
|
||||
var protocol_vvvvwdk = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwdj.some(protocol_vvvvwdj_SomeFunc);
|
||||
var protocol = protocol_vvvvwdk.some(protocol_vvvvwdk_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwdj) && authentication_vvvvwdj.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwdk) && authentication_vvvvwdk.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdj = authentication_vvvvwdj;
|
||||
var authentication_vvvvwdj = [];
|
||||
authentication_vvvvwdj.push(temp_vvvvwdj);
|
||||
var temp_vvvvwdk = authentication_vvvvwdk;
|
||||
var authentication_vvvvwdk = [];
|
||||
authentication_vvvvwdk.push(temp_vvvvwdk);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwdj))
|
||||
else if (!isSet(authentication_vvvvwdk))
|
||||
{
|
||||
var authentication_vvvvwdj = [];
|
||||
var authentication_vvvvwdk = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwdj.some(authentication_vvvvwdj_SomeFunc);
|
||||
var authentication = authentication_vvvvwdk.some(authentication_vvvvwdk_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -432,78 +432,78 @@ function vvvvwdj(protocol_vvvvwdj,authentication_vvvvwdj)
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').show();
|
||||
// add required attribute to private_key field
|
||||
if (jform_vvvvwdjvyr_required)
|
||||
if (jform_vvvvwdkvyr_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_vvvvwdjvyr_required = false;
|
||||
jform_vvvvwdkvyr_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').hide();
|
||||
// remove required attribute from private_key field
|
||||
if (!jform_vvvvwdjvyr_required)
|
||||
if (!jform_vvvvwdkvyr_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_vvvvwdjvyr_required = true;
|
||||
jform_vvvvwdkvyr_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdj Some function
|
||||
function protocol_vvvvwdj_SomeFunc(protocol_vvvvwdj)
|
||||
// the vvvvwdk Some function
|
||||
function protocol_vvvvwdk_SomeFunc(protocol_vvvvwdk)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwdj == 2)
|
||||
if (protocol_vvvvwdk == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdj Some function
|
||||
function authentication_vvvvwdj_SomeFunc(authentication_vvvvwdj)
|
||||
// the vvvvwdk Some function
|
||||
function authentication_vvvvwdk_SomeFunc(authentication_vvvvwdk)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwdj == 4 || authentication_vvvvwdj == 5)
|
||||
if (authentication_vvvvwdk == 4 || authentication_vvvvwdk == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdl function
|
||||
function vvvvwdl(protocol_vvvvwdl,authentication_vvvvwdl)
|
||||
// the vvvvwdm function
|
||||
function vvvvwdm(protocol_vvvvwdm,authentication_vvvvwdm)
|
||||
{
|
||||
if (isSet(protocol_vvvvwdl) && protocol_vvvvwdl.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwdm) && protocol_vvvvwdm.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdl = protocol_vvvvwdl;
|
||||
var protocol_vvvvwdl = [];
|
||||
protocol_vvvvwdl.push(temp_vvvvwdl);
|
||||
var temp_vvvvwdm = protocol_vvvvwdm;
|
||||
var protocol_vvvvwdm = [];
|
||||
protocol_vvvvwdm.push(temp_vvvvwdm);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwdl))
|
||||
else if (!isSet(protocol_vvvvwdm))
|
||||
{
|
||||
var protocol_vvvvwdl = [];
|
||||
var protocol_vvvvwdm = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwdl.some(protocol_vvvvwdl_SomeFunc);
|
||||
var protocol = protocol_vvvvwdm.some(protocol_vvvvwdm_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwdl) && authentication_vvvvwdl.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwdm) && authentication_vvvvwdm.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdl = authentication_vvvvwdl;
|
||||
var authentication_vvvvwdl = [];
|
||||
authentication_vvvvwdl.push(temp_vvvvwdl);
|
||||
var temp_vvvvwdm = authentication_vvvvwdm;
|
||||
var authentication_vvvvwdm = [];
|
||||
authentication_vvvvwdm.push(temp_vvvvwdm);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwdl))
|
||||
else if (!isSet(authentication_vvvvwdm))
|
||||
{
|
||||
var authentication_vvvvwdl = [];
|
||||
var authentication_vvvvwdm = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwdl.some(authentication_vvvvwdl_SomeFunc);
|
||||
var authentication = authentication_vvvvwdm.some(authentication_vvvvwdm_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -517,22 +517,22 @@ function vvvvwdl(protocol_vvvvwdl,authentication_vvvvwdl)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdl Some function
|
||||
function protocol_vvvvwdl_SomeFunc(protocol_vvvvwdl)
|
||||
// the vvvvwdm Some function
|
||||
function protocol_vvvvwdm_SomeFunc(protocol_vvvvwdm)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwdl == 2)
|
||||
if (protocol_vvvvwdm == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdl Some function
|
||||
function authentication_vvvvwdl_SomeFunc(authentication_vvvvwdl)
|
||||
// the vvvvwdm Some function
|
||||
function authentication_vvvvwdm_SomeFunc(authentication_vvvvwdm)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwdl == 2 || authentication_vvvvwdl == 3 || authentication_vvvvwdl == 4 || authentication_vvvvwdl == 5)
|
||||
if (authentication_vvvvwdm == 2 || authentication_vvvvwdm == 3 || authentication_vvvvwdm == 4 || authentication_vvvvwdm == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ class ComponentbuilderModelLibrary extends JModelAdmin
|
||||
'note_no_behaviour_one',
|
||||
'note_yes_behaviour_one',
|
||||
'note_build_in_behaviour_one',
|
||||
'note_yes_behaviour_library',
|
||||
'addconditions',
|
||||
'php_setdocument'
|
||||
),
|
||||
@ -189,14 +190,6 @@ class ComponentbuilderModelLibrary extends JModelAdmin
|
||||
$item->php_setdocument = base64_decode($item->php_setdocument);
|
||||
}
|
||||
|
||||
if (!empty($item->libraries))
|
||||
{
|
||||
// Convert the libraries field to an array.
|
||||
$libraries = new Registry;
|
||||
$libraries->loadString($item->libraries);
|
||||
$item->libraries = $libraries->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->addconditions))
|
||||
{
|
||||
// Convert the addconditions field to an array.
|
||||
@ -205,6 +198,14 @@ class ComponentbuilderModelLibrary extends JModelAdmin
|
||||
$item->addconditions = $addconditions->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->libraries))
|
||||
{
|
||||
// Convert the libraries field to an array.
|
||||
$libraries = new Registry;
|
||||
$libraries->loadString($item->libraries);
|
||||
$item->libraries = $libraries->toArray();
|
||||
}
|
||||
|
||||
|
||||
if (empty($item->id))
|
||||
{
|
||||
@ -1036,19 +1037,6 @@ class ComponentbuilderModelLibrary extends JModelAdmin
|
||||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
// Set the libraries items to data.
|
||||
if (isset($data['libraries']) && is_array($data['libraries']))
|
||||
{
|
||||
$libraries = new JRegistry;
|
||||
$libraries->loadArray($data['libraries']);
|
||||
$data['libraries'] = (string) $libraries;
|
||||
}
|
||||
elseif (!isset($data['libraries']))
|
||||
{
|
||||
// Set the empty libraries to data
|
||||
$data['libraries'] = '';
|
||||
}
|
||||
|
||||
// Set the addconditions items to data.
|
||||
if (isset($data['addconditions']) && is_array($data['addconditions']))
|
||||
{
|
||||
@ -1062,6 +1050,19 @@ class ComponentbuilderModelLibrary extends JModelAdmin
|
||||
$data['addconditions'] = '';
|
||||
}
|
||||
|
||||
// Set the libraries items to data.
|
||||
if (isset($data['libraries']) && is_array($data['libraries']))
|
||||
{
|
||||
$libraries = new JRegistry;
|
||||
$libraries->loadArray($data['libraries']);
|
||||
$data['libraries'] = (string) $libraries;
|
||||
}
|
||||
elseif (!isset($data['libraries']))
|
||||
{
|
||||
// Set the empty libraries to data
|
||||
$data['libraries'] = '';
|
||||
}
|
||||
|
||||
// Set the php_setdocument string to base64 string.
|
||||
if (isset($data['php_setdocument']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user