Added Wiki to JCB. Resolved gh-125 to insure phone numbers are treated as strings. Resolved gh-128 by adding field to Joomla Component View that allows javascript to be added globaly. Converted a few more repeatable fields to subform fields, this is an ongoing project to remove repeatable fields from JCB.
This commit is contained in:
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version @update number 378 of this MVC
|
||||
@build 18th September, 2017
|
||||
@version @update number 385 of this MVC
|
||||
@build 6th October, 2017
|
||||
@created 6th May, 2015
|
||||
@package Component Builder
|
||||
@subpackage joomla_component.js
|
||||
@ -28,18 +28,19 @@ jform_vvvvvvwvvw_required = false;
|
||||
jform_vvvvvvxvvx_required = false;
|
||||
jform_vvvvvvyvvy_required = false;
|
||||
jform_vvvvvvzvvz_required = false;
|
||||
jform_vvvvvwbvwa_required = false;
|
||||
jform_vvvvvwavwa_required = false;
|
||||
jform_vvvvvwcvwb_required = false;
|
||||
jform_vvvvvwdvwc_required = false;
|
||||
jform_vvvvvwevwd_required = false;
|
||||
jform_vvvvvwivwe_required = false;
|
||||
jform_vvvvvwfvwe_required = false;
|
||||
jform_vvvvvwjvwf_required = false;
|
||||
jform_vvvvvwkvwg_required = false;
|
||||
jform_vvvvvwlvwh_required = false;
|
||||
jform_vvvvvwmvwi_required = false;
|
||||
jform_vvvvvwnvwj_required = false;
|
||||
jform_vvvvvwuvwk_required = false;
|
||||
jform_vvvvvwovwk_required = false;
|
||||
jform_vvvvvwvvwl_required = false;
|
||||
jform_vvvvvwwvwm_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
@ -56,72 +57,75 @@ jQuery(document).ready(function()
|
||||
var add_css_vvvvvvy = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvvy(add_css_vvvvvvy);
|
||||
|
||||
var add_sql_vvvvvvz = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvvz(add_sql_vvvvvvz);
|
||||
var add_javascript_vvvvvvz = jQuery("#jform_add_javascript input[type='radio']:checked").val();
|
||||
vvvvvvz(add_javascript_vvvvvvz);
|
||||
|
||||
var emptycontributors_vvvvvwa = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
|
||||
vvvvvwa(emptycontributors_vvvvvwa);
|
||||
var add_sql_vvvvvwa = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvwa(add_sql_vvvvvwa);
|
||||
|
||||
var add_license_vvvvvwb = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvwb(add_license_vvvvvwb);
|
||||
var emptycontributors_vvvvvwb = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
|
||||
vvvvvwb(emptycontributors_vvvvvwb);
|
||||
|
||||
var add_admin_event_vvvvvwc = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
|
||||
vvvvvwc(add_admin_event_vvvvvwc);
|
||||
var add_license_vvvvvwc = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvwc(add_license_vvvvvwc);
|
||||
|
||||
var add_site_event_vvvvvwd = jQuery("#jform_add_site_event input[type='radio']:checked").val();
|
||||
vvvvvwd(add_site_event_vvvvvwd);
|
||||
var add_admin_event_vvvvvwd = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
|
||||
vvvvvwd(add_admin_event_vvvvvwd);
|
||||
|
||||
var addreadme_vvvvvwe = jQuery("#jform_addreadme input[type='radio']:checked").val();
|
||||
vvvvvwe(addreadme_vvvvvwe);
|
||||
var add_site_event_vvvvvwe = jQuery("#jform_add_site_event input[type='radio']:checked").val();
|
||||
vvvvvwe(add_site_event_vvvvvwe);
|
||||
|
||||
var add_update_server_vvvvvwf = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwf(add_update_server_vvvvvwf);
|
||||
var addreadme_vvvvvwf = jQuery("#jform_addreadme input[type='radio']:checked").val();
|
||||
vvvvvwf(addreadme_vvvvvwf);
|
||||
|
||||
var add_sales_server_vvvvvwg = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
|
||||
vvvvvwg(add_sales_server_vvvvvwg);
|
||||
var add_update_server_vvvvvwg = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwg(add_update_server_vvvvvwg);
|
||||
|
||||
var add_license_vvvvvwh = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvwh(add_license_vvvvvwh);
|
||||
var add_sales_server_vvvvvwh = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
|
||||
vvvvvwh(add_sales_server_vvvvvwh);
|
||||
|
||||
var add_php_dashboard_methods_vvvvvwi = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
|
||||
vvvvvwi(add_php_dashboard_methods_vvvvvwi);
|
||||
var add_license_vvvvvwi = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvwi(add_license_vvvvvwi);
|
||||
|
||||
var add_php_postflight_install_vvvvvwj = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
|
||||
vvvvvwj(add_php_postflight_install_vvvvvwj);
|
||||
var add_php_dashboard_methods_vvvvvwj = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
|
||||
vvvvvwj(add_php_dashboard_methods_vvvvvwj);
|
||||
|
||||
var add_php_postflight_update_vvvvvwk = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
|
||||
vvvvvwk(add_php_postflight_update_vvvvvwk);
|
||||
var add_php_postflight_install_vvvvvwk = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
|
||||
vvvvvwk(add_php_postflight_install_vvvvvwk);
|
||||
|
||||
var add_php_method_uninstall_vvvvvwl = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
|
||||
vvvvvwl(add_php_method_uninstall_vvvvvwl);
|
||||
var add_php_postflight_update_vvvvvwl = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
|
||||
vvvvvwl(add_php_postflight_update_vvvvvwl);
|
||||
|
||||
var add_php_preflight_install_vvvvvwm = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
|
||||
vvvvvwm(add_php_preflight_install_vvvvvwm);
|
||||
var add_php_method_uninstall_vvvvvwm = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
|
||||
vvvvvwm(add_php_method_uninstall_vvvvvwm);
|
||||
|
||||
var add_php_preflight_update_vvvvvwn = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
|
||||
vvvvvwn(add_php_preflight_update_vvvvvwn);
|
||||
var add_php_preflight_install_vvvvvwn = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
|
||||
vvvvvwn(add_php_preflight_install_vvvvvwn);
|
||||
|
||||
var update_server_target_vvvvvwo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo);
|
||||
var add_php_preflight_update_vvvvvwo = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
|
||||
vvvvvwo(add_php_preflight_update_vvvvvwo);
|
||||
|
||||
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp);
|
||||
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp);
|
||||
|
||||
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
|
||||
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq);
|
||||
|
||||
var update_server_target_vvvvvws = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvws = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws);
|
||||
var update_server_target_vvvvvwr = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwr = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr);
|
||||
|
||||
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwu(add_update_server_vvvvvwu);
|
||||
var update_server_target_vvvvvwt = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwt = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt);
|
||||
|
||||
var buildcomp_vvvvvwv = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvwv(buildcomp_vvvvvwv);
|
||||
var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwv(add_update_server_vvvvvwv);
|
||||
|
||||
var buildcomp_vvvvvww = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvww(buildcomp_vvvvvww);
|
||||
});
|
||||
|
||||
// the vvvvvvv function
|
||||
@ -249,41 +253,72 @@ function vvvvvvy(add_css_vvvvvvy)
|
||||
}
|
||||
|
||||
// the vvvvvvz function
|
||||
function vvvvvvz(add_sql_vvvvvvz)
|
||||
function vvvvvvz(add_javascript_vvvvvvz)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_sql_vvvvvvz == 1)
|
||||
if (add_javascript_vvvvvvz == 1)
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').show();
|
||||
jQuery('#jform_javascript').closest('.control-group').show();
|
||||
if (jform_vvvvvvzvvz_required)
|
||||
{
|
||||
updateFieldRequired('sql',0);
|
||||
jQuery('#jform_sql').prop('required','required');
|
||||
jQuery('#jform_sql').attr('aria-required',true);
|
||||
jQuery('#jform_sql').addClass('required');
|
||||
updateFieldRequired('javascript',0);
|
||||
jQuery('#jform_javascript').prop('required','required');
|
||||
jQuery('#jform_javascript').attr('aria-required',true);
|
||||
jQuery('#jform_javascript').addClass('required');
|
||||
jform_vvvvvvzvvz_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').hide();
|
||||
jQuery('#jform_javascript').closest('.control-group').hide();
|
||||
if (!jform_vvvvvvzvvz_required)
|
||||
{
|
||||
updateFieldRequired('sql',1);
|
||||
jQuery('#jform_sql').removeAttr('required');
|
||||
jQuery('#jform_sql').removeAttr('aria-required');
|
||||
jQuery('#jform_sql').removeClass('required');
|
||||
updateFieldRequired('javascript',1);
|
||||
jQuery('#jform_javascript').removeAttr('required');
|
||||
jQuery('#jform_javascript').removeAttr('aria-required');
|
||||
jQuery('#jform_javascript').removeClass('required');
|
||||
jform_vvvvvvzvvz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwa function
|
||||
function vvvvvwa(emptycontributors_vvvvvwa)
|
||||
function vvvvvwa(add_sql_vvvvvwa)
|
||||
{
|
||||
// set the function logic
|
||||
if (emptycontributors_vvvvvwa == 1)
|
||||
if (add_sql_vvvvvwa == 1)
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').show();
|
||||
if (jform_vvvvvwavwa_required)
|
||||
{
|
||||
updateFieldRequired('sql',0);
|
||||
jQuery('#jform_sql').prop('required','required');
|
||||
jQuery('#jform_sql').attr('aria-required',true);
|
||||
jQuery('#jform_sql').addClass('required');
|
||||
jform_vvvvvwavwa_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwavwa_required)
|
||||
{
|
||||
updateFieldRequired('sql',1);
|
||||
jQuery('#jform_sql').removeAttr('required');
|
||||
jQuery('#jform_sql').removeAttr('aria-required');
|
||||
jQuery('#jform_sql').removeClass('required');
|
||||
jform_vvvvvwavwa_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwb function
|
||||
function vvvvvwb(emptycontributors_vvvvvwb)
|
||||
{
|
||||
// set the function logic
|
||||
if (emptycontributors_vvvvvwb == 1)
|
||||
{
|
||||
jQuery('#jform_number').closest('.control-group').show();
|
||||
}
|
||||
@ -293,114 +328,114 @@ function vvvvvwa(emptycontributors_vvvvvwa)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwb function
|
||||
function vvvvvwb(add_license_vvvvvwb)
|
||||
// the vvvvvwc function
|
||||
function vvvvvwc(add_license_vvvvvwc)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_license_vvvvvwb == 1)
|
||||
if (add_license_vvvvvwc == 1)
|
||||
{
|
||||
jQuery('#jform_license_type').closest('.control-group').show();
|
||||
if (jform_vvvvvwbvwa_required)
|
||||
if (jform_vvvvvwcvwb_required)
|
||||
{
|
||||
updateFieldRequired('license_type',0);
|
||||
jQuery('#jform_license_type').prop('required','required');
|
||||
jQuery('#jform_license_type').attr('aria-required',true);
|
||||
jQuery('#jform_license_type').addClass('required');
|
||||
jform_vvvvvwbvwa_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_license_type').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwbvwa_required)
|
||||
{
|
||||
updateFieldRequired('license_type',1);
|
||||
jQuery('#jform_license_type').removeAttr('required');
|
||||
jQuery('#jform_license_type').removeAttr('aria-required');
|
||||
jQuery('#jform_license_type').removeClass('required');
|
||||
jform_vvvvvwbvwa_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwc function
|
||||
function vvvvvwc(add_admin_event_vvvvvwc)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_admin_event_vvvvvwc == 1)
|
||||
{
|
||||
jQuery('#jform_php_admin_event').closest('.control-group').show();
|
||||
if (jform_vvvvvwcvwb_required)
|
||||
{
|
||||
updateFieldRequired('php_admin_event',0);
|
||||
jQuery('#jform_php_admin_event').prop('required','required');
|
||||
jQuery('#jform_php_admin_event').attr('aria-required',true);
|
||||
jQuery('#jform_php_admin_event').addClass('required');
|
||||
jform_vvvvvwcvwb_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_admin_event').closest('.control-group').hide();
|
||||
jQuery('#jform_license_type').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwcvwb_required)
|
||||
{
|
||||
updateFieldRequired('php_admin_event',1);
|
||||
jQuery('#jform_php_admin_event').removeAttr('required');
|
||||
jQuery('#jform_php_admin_event').removeAttr('aria-required');
|
||||
jQuery('#jform_php_admin_event').removeClass('required');
|
||||
updateFieldRequired('license_type',1);
|
||||
jQuery('#jform_license_type').removeAttr('required');
|
||||
jQuery('#jform_license_type').removeAttr('aria-required');
|
||||
jQuery('#jform_license_type').removeClass('required');
|
||||
jform_vvvvvwcvwb_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwd function
|
||||
function vvvvvwd(add_site_event_vvvvvwd)
|
||||
function vvvvvwd(add_admin_event_vvvvvwd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_site_event_vvvvvwd == 1)
|
||||
if (add_admin_event_vvvvvwd == 1)
|
||||
{
|
||||
jQuery('#jform_php_site_event').closest('.control-group').show();
|
||||
jQuery('#jform_php_admin_event').closest('.control-group').show();
|
||||
if (jform_vvvvvwdvwc_required)
|
||||
{
|
||||
updateFieldRequired('php_site_event',0);
|
||||
jQuery('#jform_php_site_event').prop('required','required');
|
||||
jQuery('#jform_php_site_event').attr('aria-required',true);
|
||||
jQuery('#jform_php_site_event').addClass('required');
|
||||
updateFieldRequired('php_admin_event',0);
|
||||
jQuery('#jform_php_admin_event').prop('required','required');
|
||||
jQuery('#jform_php_admin_event').attr('aria-required',true);
|
||||
jQuery('#jform_php_admin_event').addClass('required');
|
||||
jform_vvvvvwdvwc_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_site_event').closest('.control-group').hide();
|
||||
jQuery('#jform_php_admin_event').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwdvwc_required)
|
||||
{
|
||||
updateFieldRequired('php_site_event',1);
|
||||
jQuery('#jform_php_site_event').removeAttr('required');
|
||||
jQuery('#jform_php_site_event').removeAttr('aria-required');
|
||||
jQuery('#jform_php_site_event').removeClass('required');
|
||||
updateFieldRequired('php_admin_event',1);
|
||||
jQuery('#jform_php_admin_event').removeAttr('required');
|
||||
jQuery('#jform_php_admin_event').removeAttr('aria-required');
|
||||
jQuery('#jform_php_admin_event').removeClass('required');
|
||||
jform_vvvvvwdvwc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwe function
|
||||
function vvvvvwe(addreadme_vvvvvwe)
|
||||
function vvvvvwe(add_site_event_vvvvvwe)
|
||||
{
|
||||
// set the function logic
|
||||
if (addreadme_vvvvvwe == 1)
|
||||
if (add_site_event_vvvvvwe == 1)
|
||||
{
|
||||
jQuery('#jform_php_site_event').closest('.control-group').show();
|
||||
if (jform_vvvvvwevwd_required)
|
||||
{
|
||||
updateFieldRequired('php_site_event',0);
|
||||
jQuery('#jform_php_site_event').prop('required','required');
|
||||
jQuery('#jform_php_site_event').attr('aria-required',true);
|
||||
jQuery('#jform_php_site_event').addClass('required');
|
||||
jform_vvvvvwevwd_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_site_event').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwevwd_required)
|
||||
{
|
||||
updateFieldRequired('php_site_event',1);
|
||||
jQuery('#jform_php_site_event').removeAttr('required');
|
||||
jQuery('#jform_php_site_event').removeAttr('aria-required');
|
||||
jQuery('#jform_php_site_event').removeClass('required');
|
||||
jform_vvvvvwevwd_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwf function
|
||||
function vvvvvwf(addreadme_vvvvvwf)
|
||||
{
|
||||
// set the function logic
|
||||
if (addreadme_vvvvvwf == 1)
|
||||
{
|
||||
jQuery('.note_readme').closest('.control-group').show();
|
||||
jQuery('#jform_readme-lbl').closest('.control-group').show();
|
||||
if (jform_vvvvvwevwd_required)
|
||||
if (jform_vvvvvwfvwe_required)
|
||||
{
|
||||
updateFieldRequired('readme',0);
|
||||
jQuery('#jform_readme').prop('required','required');
|
||||
jQuery('#jform_readme').attr('aria-required',true);
|
||||
jQuery('#jform_readme').addClass('required');
|
||||
jform_vvvvvwevwd_required = false;
|
||||
jform_vvvvvwfvwe_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -408,22 +443,22 @@ function vvvvvwe(addreadme_vvvvvwe)
|
||||
{
|
||||
jQuery('.note_readme').closest('.control-group').hide();
|
||||
jQuery('#jform_readme-lbl').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwevwd_required)
|
||||
if (!jform_vvvvvwfvwe_required)
|
||||
{
|
||||
updateFieldRequired('readme',1);
|
||||
jQuery('#jform_readme').removeAttr('required');
|
||||
jQuery('#jform_readme').removeAttr('aria-required');
|
||||
jQuery('#jform_readme').removeClass('required');
|
||||
jform_vvvvvwevwd_required = true;
|
||||
jform_vvvvvwfvwe_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwf function
|
||||
function vvvvvwf(add_update_server_vvvvvwf)
|
||||
// the vvvvvwg function
|
||||
function vvvvvwg(add_update_server_vvvvvwg)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_update_server_vvvvvwf == 1)
|
||||
if (add_update_server_vvvvvwg == 1)
|
||||
{
|
||||
jQuery('#jform_update_server').closest('.control-group').show();
|
||||
}
|
||||
@ -433,11 +468,11 @@ function vvvvvwf(add_update_server_vvvvvwf)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwg function
|
||||
function vvvvvwg(add_sales_server_vvvvvwg)
|
||||
// the vvvvvwh function
|
||||
function vvvvvwh(add_sales_server_vvvvvwh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_sales_server_vvvvvwg == 1)
|
||||
if (add_sales_server_vvvvvwh == 1)
|
||||
{
|
||||
jQuery('#jform_sales_server_ftp').closest('.control-group').show();
|
||||
}
|
||||
@ -447,11 +482,11 @@ function vvvvvwg(add_sales_server_vvvvvwg)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwh function
|
||||
function vvvvvwh(add_license_vvvvvwh)
|
||||
// the vvvvvwi function
|
||||
function vvvvvwi(add_license_vvvvvwi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_license_vvvvvwh == 1)
|
||||
if (add_license_vvvvvwi == 1)
|
||||
{
|
||||
jQuery('.note_whmcs_lisencing_note').closest('.control-group').show();
|
||||
jQuery('#jform_whmcs_key').closest('.control-group').show();
|
||||
@ -465,21 +500,21 @@ function vvvvvwh(add_license_vvvvvwh)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwi function
|
||||
function vvvvvwi(add_php_dashboard_methods_vvvvvwi)
|
||||
// the vvvvvwj function
|
||||
function vvvvvwj(add_php_dashboard_methods_vvvvvwj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_dashboard_methods_vvvvvwi == 1)
|
||||
if (add_php_dashboard_methods_vvvvvwj == 1)
|
||||
{
|
||||
jQuery('#jform_dashboard_tab').closest('.control-group').show();
|
||||
jQuery('#jform_php_dashboard_methods').closest('.control-group').show();
|
||||
if (jform_vvvvvwivwe_required)
|
||||
if (jform_vvvvvwjvwf_required)
|
||||
{
|
||||
updateFieldRequired('php_dashboard_methods',0);
|
||||
jQuery('#jform_php_dashboard_methods').prop('required','required');
|
||||
jQuery('#jform_php_dashboard_methods').attr('aria-required',true);
|
||||
jQuery('#jform_php_dashboard_methods').addClass('required');
|
||||
jform_vvvvvwivwe_required = false;
|
||||
jform_vvvvvwjvwf_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -487,193 +522,177 @@ function vvvvvwi(add_php_dashboard_methods_vvvvvwi)
|
||||
{
|
||||
jQuery('#jform_dashboard_tab').closest('.control-group').hide();
|
||||
jQuery('#jform_php_dashboard_methods').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwivwe_required)
|
||||
if (!jform_vvvvvwjvwf_required)
|
||||
{
|
||||
updateFieldRequired('php_dashboard_methods',1);
|
||||
jQuery('#jform_php_dashboard_methods').removeAttr('required');
|
||||
jQuery('#jform_php_dashboard_methods').removeAttr('aria-required');
|
||||
jQuery('#jform_php_dashboard_methods').removeClass('required');
|
||||
jform_vvvvvwivwe_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwj function
|
||||
function vvvvvwj(add_php_postflight_install_vvvvvwj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_postflight_install_vvvvvwj == 1)
|
||||
{
|
||||
jQuery('#jform_php_postflight_install').closest('.control-group').show();
|
||||
if (jform_vvvvvwjvwf_required)
|
||||
{
|
||||
updateFieldRequired('php_postflight_install',0);
|
||||
jQuery('#jform_php_postflight_install').prop('required','required');
|
||||
jQuery('#jform_php_postflight_install').attr('aria-required',true);
|
||||
jQuery('#jform_php_postflight_install').addClass('required');
|
||||
jform_vvvvvwjvwf_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_postflight_install').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwjvwf_required)
|
||||
{
|
||||
updateFieldRequired('php_postflight_install',1);
|
||||
jQuery('#jform_php_postflight_install').removeAttr('required');
|
||||
jQuery('#jform_php_postflight_install').removeAttr('aria-required');
|
||||
jQuery('#jform_php_postflight_install').removeClass('required');
|
||||
jform_vvvvvwjvwf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwk function
|
||||
function vvvvvwk(add_php_postflight_update_vvvvvwk)
|
||||
function vvvvvwk(add_php_postflight_install_vvvvvwk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_postflight_update_vvvvvwk == 1)
|
||||
if (add_php_postflight_install_vvvvvwk == 1)
|
||||
{
|
||||
jQuery('#jform_php_postflight_update').closest('.control-group').show();
|
||||
jQuery('#jform_php_postflight_install').closest('.control-group').show();
|
||||
if (jform_vvvvvwkvwg_required)
|
||||
{
|
||||
updateFieldRequired('php_postflight_update',0);
|
||||
jQuery('#jform_php_postflight_update').prop('required','required');
|
||||
jQuery('#jform_php_postflight_update').attr('aria-required',true);
|
||||
jQuery('#jform_php_postflight_update').addClass('required');
|
||||
updateFieldRequired('php_postflight_install',0);
|
||||
jQuery('#jform_php_postflight_install').prop('required','required');
|
||||
jQuery('#jform_php_postflight_install').attr('aria-required',true);
|
||||
jQuery('#jform_php_postflight_install').addClass('required');
|
||||
jform_vvvvvwkvwg_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_postflight_update').closest('.control-group').hide();
|
||||
jQuery('#jform_php_postflight_install').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwkvwg_required)
|
||||
{
|
||||
updateFieldRequired('php_postflight_update',1);
|
||||
jQuery('#jform_php_postflight_update').removeAttr('required');
|
||||
jQuery('#jform_php_postflight_update').removeAttr('aria-required');
|
||||
jQuery('#jform_php_postflight_update').removeClass('required');
|
||||
updateFieldRequired('php_postflight_install',1);
|
||||
jQuery('#jform_php_postflight_install').removeAttr('required');
|
||||
jQuery('#jform_php_postflight_install').removeAttr('aria-required');
|
||||
jQuery('#jform_php_postflight_install').removeClass('required');
|
||||
jform_vvvvvwkvwg_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwl function
|
||||
function vvvvvwl(add_php_method_uninstall_vvvvvwl)
|
||||
function vvvvvwl(add_php_postflight_update_vvvvvwl)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_method_uninstall_vvvvvwl == 1)
|
||||
if (add_php_postflight_update_vvvvvwl == 1)
|
||||
{
|
||||
jQuery('#jform_php_method_uninstall').closest('.control-group').show();
|
||||
jQuery('#jform_php_postflight_update').closest('.control-group').show();
|
||||
if (jform_vvvvvwlvwh_required)
|
||||
{
|
||||
updateFieldRequired('php_method_uninstall',0);
|
||||
jQuery('#jform_php_method_uninstall').prop('required','required');
|
||||
jQuery('#jform_php_method_uninstall').attr('aria-required',true);
|
||||
jQuery('#jform_php_method_uninstall').addClass('required');
|
||||
updateFieldRequired('php_postflight_update',0);
|
||||
jQuery('#jform_php_postflight_update').prop('required','required');
|
||||
jQuery('#jform_php_postflight_update').attr('aria-required',true);
|
||||
jQuery('#jform_php_postflight_update').addClass('required');
|
||||
jform_vvvvvwlvwh_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_method_uninstall').closest('.control-group').hide();
|
||||
jQuery('#jform_php_postflight_update').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwlvwh_required)
|
||||
{
|
||||
updateFieldRequired('php_method_uninstall',1);
|
||||
jQuery('#jform_php_method_uninstall').removeAttr('required');
|
||||
jQuery('#jform_php_method_uninstall').removeAttr('aria-required');
|
||||
jQuery('#jform_php_method_uninstall').removeClass('required');
|
||||
updateFieldRequired('php_postflight_update',1);
|
||||
jQuery('#jform_php_postflight_update').removeAttr('required');
|
||||
jQuery('#jform_php_postflight_update').removeAttr('aria-required');
|
||||
jQuery('#jform_php_postflight_update').removeClass('required');
|
||||
jform_vvvvvwlvwh_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwm function
|
||||
function vvvvvwm(add_php_preflight_install_vvvvvwm)
|
||||
function vvvvvwm(add_php_method_uninstall_vvvvvwm)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_preflight_install_vvvvvwm == 1)
|
||||
if (add_php_method_uninstall_vvvvvwm == 1)
|
||||
{
|
||||
jQuery('#jform_php_preflight_install').closest('.control-group').show();
|
||||
jQuery('#jform_php_method_uninstall').closest('.control-group').show();
|
||||
if (jform_vvvvvwmvwi_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_install',0);
|
||||
jQuery('#jform_php_preflight_install').prop('required','required');
|
||||
jQuery('#jform_php_preflight_install').attr('aria-required',true);
|
||||
jQuery('#jform_php_preflight_install').addClass('required');
|
||||
updateFieldRequired('php_method_uninstall',0);
|
||||
jQuery('#jform_php_method_uninstall').prop('required','required');
|
||||
jQuery('#jform_php_method_uninstall').attr('aria-required',true);
|
||||
jQuery('#jform_php_method_uninstall').addClass('required');
|
||||
jform_vvvvvwmvwi_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_preflight_install').closest('.control-group').hide();
|
||||
jQuery('#jform_php_method_uninstall').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwmvwi_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_install',1);
|
||||
jQuery('#jform_php_preflight_install').removeAttr('required');
|
||||
jQuery('#jform_php_preflight_install').removeAttr('aria-required');
|
||||
jQuery('#jform_php_preflight_install').removeClass('required');
|
||||
updateFieldRequired('php_method_uninstall',1);
|
||||
jQuery('#jform_php_method_uninstall').removeAttr('required');
|
||||
jQuery('#jform_php_method_uninstall').removeAttr('aria-required');
|
||||
jQuery('#jform_php_method_uninstall').removeClass('required');
|
||||
jform_vvvvvwmvwi_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwn function
|
||||
function vvvvvwn(add_php_preflight_update_vvvvvwn)
|
||||
function vvvvvwn(add_php_preflight_install_vvvvvwn)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_preflight_update_vvvvvwn == 1)
|
||||
if (add_php_preflight_install_vvvvvwn == 1)
|
||||
{
|
||||
jQuery('#jform_php_preflight_update').closest('.control-group').show();
|
||||
jQuery('#jform_php_preflight_install').closest('.control-group').show();
|
||||
if (jform_vvvvvwnvwj_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_update',0);
|
||||
jQuery('#jform_php_preflight_update').prop('required','required');
|
||||
jQuery('#jform_php_preflight_update').attr('aria-required',true);
|
||||
jQuery('#jform_php_preflight_update').addClass('required');
|
||||
updateFieldRequired('php_preflight_install',0);
|
||||
jQuery('#jform_php_preflight_install').prop('required','required');
|
||||
jQuery('#jform_php_preflight_install').attr('aria-required',true);
|
||||
jQuery('#jform_php_preflight_install').addClass('required');
|
||||
jform_vvvvvwnvwj_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_preflight_update').closest('.control-group').hide();
|
||||
jQuery('#jform_php_preflight_install').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwnvwj_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_update',1);
|
||||
jQuery('#jform_php_preflight_update').removeAttr('required');
|
||||
jQuery('#jform_php_preflight_update').removeAttr('aria-required');
|
||||
jQuery('#jform_php_preflight_update').removeClass('required');
|
||||
updateFieldRequired('php_preflight_install',1);
|
||||
jQuery('#jform_php_preflight_install').removeAttr('required');
|
||||
jQuery('#jform_php_preflight_install').removeAttr('aria-required');
|
||||
jQuery('#jform_php_preflight_install').removeClass('required');
|
||||
jform_vvvvvwnvwj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwo function
|
||||
function vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo)
|
||||
function vvvvvwo(add_php_preflight_update_vvvvvwo)
|
||||
{
|
||||
// set the function logic
|
||||
if (update_server_target_vvvvvwo == 1 && add_update_server_vvvvvwo == 1)
|
||||
if (add_php_preflight_update_vvvvvwo == 1)
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').show();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
|
||||
jQuery('#jform_php_preflight_update').closest('.control-group').show();
|
||||
if (jform_vvvvvwovwk_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_update',0);
|
||||
jQuery('#jform_php_preflight_update').prop('required','required');
|
||||
jQuery('#jform_php_preflight_update').attr('aria-required',true);
|
||||
jQuery('#jform_php_preflight_update').addClass('required');
|
||||
jform_vvvvvwovwk_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').hide();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').hide();
|
||||
jQuery('#jform_php_preflight_update').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwovwk_required)
|
||||
{
|
||||
updateFieldRequired('php_preflight_update',1);
|
||||
jQuery('#jform_php_preflight_update').removeAttr('required');
|
||||
jQuery('#jform_php_preflight_update').removeAttr('aria-required');
|
||||
jQuery('#jform_php_preflight_update').removeClass('required');
|
||||
jform_vvvvvwovwk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwp function
|
||||
function vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp)
|
||||
function vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_update_server_vvvvvwp == 1 && update_server_target_vvvvvwp == 1)
|
||||
if (update_server_target_vvvvvwp == 1 && add_update_server_vvvvvwp == 1)
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').show();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
|
||||
@ -686,10 +705,26 @@ function vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp)
|
||||
}
|
||||
|
||||
// the vvvvvwq function
|
||||
function vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq)
|
||||
function vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq)
|
||||
{
|
||||
// set the function logic
|
||||
if (update_server_target_vvvvvwq == 2 && add_update_server_vvvvvwq == 1)
|
||||
if (add_update_server_vvvvvwq == 1 && update_server_target_vvvvvwq == 1)
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').show();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_update_server_ftp').closest('.control-group').hide();
|
||||
jQuery('.note_update_server_note_ftp').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwr function
|
||||
function vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr)
|
||||
{
|
||||
// set the function logic
|
||||
if (update_server_target_vvvvvwr == 2 && add_update_server_vvvvvwr == 1)
|
||||
{
|
||||
jQuery('.note_update_server_note_zip').closest('.control-group').show();
|
||||
}
|
||||
@ -699,11 +734,11 @@ function vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvws function
|
||||
function vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws)
|
||||
// the vvvvvwt function
|
||||
function vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt)
|
||||
{
|
||||
// set the function logic
|
||||
if (update_server_target_vvvvvws == 3 && add_update_server_vvvvvws == 1)
|
||||
if (update_server_target_vvvvvwt == 3 && add_update_server_vvvvvwt == 1)
|
||||
{
|
||||
jQuery('.note_update_server_note_other').closest('.control-group').show();
|
||||
}
|
||||
@ -713,64 +748,64 @@ function vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwu function
|
||||
function vvvvvwu(add_update_server_vvvvvwu)
|
||||
// the vvvvvwv function
|
||||
function vvvvvwv(add_update_server_vvvvvwv)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_update_server_vvvvvwu == 1)
|
||||
if (add_update_server_vvvvvwv == 1)
|
||||
{
|
||||
jQuery('#jform_update_server_target').closest('.control-group').show();
|
||||
if (jform_vvvvvwuvwk_required)
|
||||
if (jform_vvvvvwvvwl_required)
|
||||
{
|
||||
updateFieldRequired('update_server_target',0);
|
||||
jQuery('#jform_update_server_target').prop('required','required');
|
||||
jQuery('#jform_update_server_target').attr('aria-required',true);
|
||||
jQuery('#jform_update_server_target').addClass('required');
|
||||
jform_vvvvvwuvwk_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_update_server_target').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwuvwk_required)
|
||||
{
|
||||
updateFieldRequired('update_server_target',1);
|
||||
jQuery('#jform_update_server_target').removeAttr('required');
|
||||
jQuery('#jform_update_server_target').removeAttr('aria-required');
|
||||
jQuery('#jform_update_server_target').removeClass('required');
|
||||
jform_vvvvvwuvwk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwv function
|
||||
function vvvvvwv(buildcomp_vvvvvwv)
|
||||
{
|
||||
// set the function logic
|
||||
if (buildcomp_vvvvvwv == 1)
|
||||
{
|
||||
jQuery('#jform_buildcompsql').closest('.control-group').show();
|
||||
if (jform_vvvvvwvvwl_required)
|
||||
{
|
||||
updateFieldRequired('buildcompsql',0);
|
||||
jQuery('#jform_buildcompsql').prop('required','required');
|
||||
jQuery('#jform_buildcompsql').attr('aria-required',true);
|
||||
jQuery('#jform_buildcompsql').addClass('required');
|
||||
jform_vvvvvwvvwl_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_buildcompsql').closest('.control-group').hide();
|
||||
jQuery('#jform_update_server_target').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwvvwl_required)
|
||||
{
|
||||
updateFieldRequired('update_server_target',1);
|
||||
jQuery('#jform_update_server_target').removeAttr('required');
|
||||
jQuery('#jform_update_server_target').removeAttr('aria-required');
|
||||
jQuery('#jform_update_server_target').removeClass('required');
|
||||
jform_vvvvvwvvwl_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvww function
|
||||
function vvvvvww(buildcomp_vvvvvww)
|
||||
{
|
||||
// set the function logic
|
||||
if (buildcomp_vvvvvww == 1)
|
||||
{
|
||||
jQuery('#jform_buildcompsql').closest('.control-group').show();
|
||||
if (jform_vvvvvwwvwm_required)
|
||||
{
|
||||
updateFieldRequired('buildcompsql',0);
|
||||
jQuery('#jform_buildcompsql').prop('required','required');
|
||||
jQuery('#jform_buildcompsql').attr('aria-required',true);
|
||||
jQuery('#jform_buildcompsql').addClass('required');
|
||||
jform_vvvvvwwvwm_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_buildcompsql').closest('.control-group').hide();
|
||||
if (!jform_vvvvvwwvwm_required)
|
||||
{
|
||||
updateFieldRequired('buildcompsql',1);
|
||||
jQuery('#jform_buildcompsql').removeAttr('required');
|
||||
jQuery('#jform_buildcompsql').removeAttr('aria-required');
|
||||
jQuery('#jform_buildcompsql').removeClass('required');
|
||||
jform_vvvvvwvvwl_required = true;
|
||||
jform_vvvvvwwvwm_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user