2016-01-30 20:28:43 +00:00
|
|
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
|
|
|
__ __ _ _____ _ _ __ __ _ _ _
|
|
|
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
|
|
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
|
|
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
|
|
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
|
|
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
|
|
|
| |
|
|
|
|
|_|
|
|
|
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
|
|
|
2017-10-12 00:50:14 +00:00
|
|
|
@version @update number 387 of this MVC
|
|
|
|
@build 11th October, 2017
|
2017-02-01 13:17:04 +00:00
|
|
|
@created 6th May, 2015
|
2016-01-30 20:28:43 +00:00
|
|
|
@package Component Builder
|
2017-02-16 14:02:23 +00:00
|
|
|
@subpackage joomla_component.js
|
2016-12-22 21:32:13 +00:00
|
|
|
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
|
2016-01-30 20:28:43 +00:00
|
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
|
|
|
|
Builds Complex Joomla Components
|
|
|
|
|
|
|
|
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
// Some Global Values
|
2016-02-26 13:57:30 +00:00
|
|
|
jform_vvvvvvvvvv_required = false;
|
|
|
|
jform_vvvvvvwvvw_required = false;
|
|
|
|
jform_vvvvvvxvvx_required = false;
|
|
|
|
jform_vvvvvvyvvy_required = false;
|
2016-11-25 02:56:16 +00:00
|
|
|
jform_vvvvvvzvvz_required = false;
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwavwa_required = false;
|
2016-02-26 13:57:30 +00:00
|
|
|
jform_vvvvvwcvwb_required = false;
|
|
|
|
jform_vvvvvwdvwc_required = false;
|
2016-11-25 02:56:16 +00:00
|
|
|
jform_vvvvvwevwd_required = false;
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwfvwe_required = false;
|
2016-10-23 22:48:26 +00:00
|
|
|
jform_vvvvvwjvwf_required = false;
|
|
|
|
jform_vvvvvwkvwg_required = false;
|
|
|
|
jform_vvvvvwlvwh_required = false;
|
|
|
|
jform_vvvvvwmvwi_required = false;
|
2016-11-25 02:56:16 +00:00
|
|
|
jform_vvvvvwnvwj_required = false;
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwovwk_required = false;
|
2016-12-30 10:47:19 +00:00
|
|
|
jform_vvvvvwvvwl_required = false;
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwwvwm_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2016-02-26 13:57:30 +00:00
|
|
|
var add_php_helper_admin_vvvvvvv = jQuery("#jform_add_php_helper_admin input[type='radio']:checked").val();
|
|
|
|
vvvvvvv(add_php_helper_admin_vvvvvvv);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-26 13:57:30 +00:00
|
|
|
var add_php_helper_site_vvvvvvw = jQuery("#jform_add_php_helper_site input[type='radio']:checked").val();
|
|
|
|
vvvvvvw(add_php_helper_site_vvvvvvw);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-11-25 02:56:16 +00:00
|
|
|
var add_php_helper_both_vvvvvvx = jQuery("#jform_add_php_helper_both input[type='radio']:checked").val();
|
|
|
|
vvvvvvx(add_php_helper_both_vvvvvvx);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-11-25 02:56:16 +00:00
|
|
|
var add_css_vvvvvvy = jQuery("#jform_add_css input[type='radio']:checked").val();
|
|
|
|
vvvvvvy(add_css_vvvvvvy);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_javascript_vvvvvvz = jQuery("#jform_add_javascript input[type='radio']:checked").val();
|
|
|
|
vvvvvvz(add_javascript_vvvvvvz);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_sql_vvvvvwa = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
|
|
|
vvvvvwa(add_sql_vvvvvwa);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var emptycontributors_vvvvvwb = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
|
|
|
|
vvvvvwb(emptycontributors_vvvvvwb);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_license_vvvvvwc = jQuery("#jform_add_license input[type='radio']:checked").val();
|
|
|
|
vvvvvwc(add_license_vvvvvwc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_admin_event_vvvvvwd = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
|
|
|
|
vvvvvwd(add_admin_event_vvvvvwd);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_site_event_vvvvvwe = jQuery("#jform_add_site_event input[type='radio']:checked").val();
|
|
|
|
vvvvvwe(add_site_event_vvvvvwe);
|
2016-02-19 09:21:44 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var addreadme_vvvvvwf = jQuery("#jform_addreadme input[type='radio']:checked").val();
|
|
|
|
vvvvvwf(addreadme_vvvvvwf);
|
2016-03-04 20:58:05 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_update_server_vvvvvwg = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
|
|
|
vvvvvwg(add_update_server_vvvvvwg);
|
2016-03-04 20:58:05 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_sales_server_vvvvvwh = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
|
|
|
|
vvvvvwh(add_sales_server_vvvvvwh);
|
2016-10-23 22:48:26 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_license_vvvvvwi = jQuery("#jform_add_license input[type='radio']:checked").val();
|
|
|
|
vvvvvwi(add_license_vvvvvwi);
|
2016-10-23 22:48:26 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_php_dashboard_methods_vvvvvwj = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
|
|
|
|
vvvvvwj(add_php_dashboard_methods_vvvvvwj);
|
2016-10-23 22:48:26 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_php_postflight_install_vvvvvwk = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
|
|
|
|
vvvvvwk(add_php_postflight_install_vvvvvwk);
|
2016-10-23 22:48:26 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_php_postflight_update_vvvvvwl = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
|
|
|
|
vvvvvwl(add_php_postflight_update_vvvvvwl);
|
2016-10-23 22:48:26 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_php_method_uninstall_vvvvvwm = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
|
|
|
|
vvvvvwm(add_php_method_uninstall_vvvvvwm);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_php_preflight_install_vvvvvwn = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
|
|
|
|
vvvvvwn(add_php_preflight_install_vvvvvwn);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_php_preflight_update_vvvvvwo = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
|
|
|
|
vvvvvwo(add_php_preflight_update_vvvvvwo);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2016-11-25 02:56:16 +00:00
|
|
|
var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
|
|
|
vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp);
|
2016-11-25 02:56:16 +00:00
|
|
|
|
|
|
|
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
2017-10-06 14:53:22 +00:00
|
|
|
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_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);
|
2016-11-22 05:48:55 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
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);
|
2016-11-22 17:08:17 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
|
|
|
vvvvvwv(add_update_server_vvvvvwv);
|
2016-12-30 10:47:19 +00:00
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
var buildcomp_vvvvvww = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
|
|
|
vvvvvww(buildcomp_vvvvvww);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2016-02-26 13:57:30 +00:00
|
|
|
// the vvvvvvv function
|
|
|
|
function vvvvvvv(add_php_helper_admin_vvvvvvv)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 13:57:30 +00:00
|
|
|
if (add_php_helper_admin_vvvvvvv == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_helper_admin').closest('.control-group').show();
|
2016-02-26 13:57:30 +00:00
|
|
|
if (jform_vvvvvvvvvv_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_helper_admin',0);
|
|
|
|
jQuery('#jform_php_helper_admin').prop('required','required');
|
|
|
|
jQuery('#jform_php_helper_admin').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_helper_admin').addClass('required');
|
2016-02-26 13:57:30 +00:00
|
|
|
jform_vvvvvvvvvv_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_helper_admin').closest('.control-group').hide();
|
2016-02-26 13:57:30 +00:00
|
|
|
if (!jform_vvvvvvvvvv_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_helper_admin',1);
|
|
|
|
jQuery('#jform_php_helper_admin').removeAttr('required');
|
|
|
|
jQuery('#jform_php_helper_admin').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_helper_admin').removeClass('required');
|
2016-02-26 13:57:30 +00:00
|
|
|
jform_vvvvvvvvvv_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 13:57:30 +00:00
|
|
|
// the vvvvvvw function
|
|
|
|
function vvvvvvw(add_php_helper_site_vvvvvvw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-02-26 13:57:30 +00:00
|
|
|
if (add_php_helper_site_vvvvvvw == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_helper_site').closest('.control-group').show();
|
2016-02-26 13:57:30 +00:00
|
|
|
if (jform_vvvvvvwvvw_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_helper_site',0);
|
|
|
|
jQuery('#jform_php_helper_site').prop('required','required');
|
|
|
|
jQuery('#jform_php_helper_site').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_helper_site').addClass('required');
|
2016-02-26 13:57:30 +00:00
|
|
|
jform_vvvvvvwvvw_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_helper_site').closest('.control-group').hide();
|
2016-02-26 13:57:30 +00:00
|
|
|
if (!jform_vvvvvvwvvw_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_helper_site',1);
|
|
|
|
jQuery('#jform_php_helper_site').removeAttr('required');
|
|
|
|
jQuery('#jform_php_helper_site').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_helper_site').removeClass('required');
|
2016-02-26 13:57:30 +00:00
|
|
|
jform_vvvvvvwvvw_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-26 13:57:30 +00:00
|
|
|
// the vvvvvvx function
|
2016-11-25 02:56:16 +00:00
|
|
|
function vvvvvvx(add_php_helper_both_vvvvvvx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2016-11-25 02:56:16 +00:00
|
|
|
if (add_php_helper_both_vvvvvvx == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2016-11-25 02:56:16 +00:00
|
|
|
jQuery('#jform_php_helper_both').closest('.control-group').show();
|
2016-02-26 13:57:30 +00:00
|
|
|
if (jform_vvvvvvxvvx_required)
|
2016-11-25 02:56:16 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_helper_both',0);
|
|
|
|
jQuery('#jform_php_helper_both').prop('required','required');
|
|
|
|
jQuery('#jform_php_helper_both').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_helper_both').addClass('required');
|
|
|
|
jform_vvvvvvxvvx_required = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_helper_both').closest('.control-group').hide();
|
|
|
|
if (!jform_vvvvvvxvvx_required)
|
|
|
|
{
|
|
|
|
updateFieldRequired('php_helper_both',1);
|
|
|
|
jQuery('#jform_php_helper_both').removeAttr('required');
|
|
|
|
jQuery('#jform_php_helper_both').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_helper_both').removeClass('required');
|
|
|
|
jform_vvvvvvxvvx_required = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// the vvvvvvy function
|
|
|
|
function vvvvvvy(add_css_vvvvvvy)
|
|
|
|
{
|
|
|
|
// set the function logic
|
|
|
|
if (add_css_vvvvvvy == 1)
|
|
|
|
{
|
|
|
|
jQuery('#jform_css').closest('.control-group').show();
|
|
|
|
if (jform_vvvvvvyvvy_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('css',0);
|
|
|
|
jQuery('#jform_css').prop('required','required');
|
|
|
|
jQuery('#jform_css').attr('aria-required',true);
|
|
|
|
jQuery('#jform_css').addClass('required');
|
2016-11-25 02:56:16 +00:00
|
|
|
jform_vvvvvvyvvy_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_css').closest('.control-group').hide();
|
2016-11-25 02:56:16 +00:00
|
|
|
if (!jform_vvvvvvyvvy_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('css',1);
|
|
|
|
jQuery('#jform_css').removeAttr('required');
|
|
|
|
jQuery('#jform_css').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_css').removeClass('required');
|
2016-11-25 02:56:16 +00:00
|
|
|
jform_vvvvvvyvvy_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-25 02:56:16 +00:00
|
|
|
// the vvvvvvz function
|
2017-10-06 14:53:22 +00:00
|
|
|
function vvvvvvz(add_javascript_vvvvvvz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_javascript_vvvvvvz == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-10-06 14:53:22 +00:00
|
|
|
jQuery('#jform_javascript').closest('.control-group').show();
|
2016-11-25 02:56:16 +00:00
|
|
|
if (jform_vvvvvvzvvz_required)
|
2017-10-06 14:53:22 +00:00
|
|
|
{
|
|
|
|
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_javascript').closest('.control-group').hide();
|
|
|
|
if (!jform_vvvvvvzvvz_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(add_sql_vvvvvwa)
|
|
|
|
{
|
|
|
|
// set the function logic
|
|
|
|
if (add_sql_vvvvvwa == 1)
|
|
|
|
{
|
|
|
|
jQuery('#jform_sql').closest('.control-group').show();
|
|
|
|
if (jform_vvvvvwavwa_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('sql',0);
|
|
|
|
jQuery('#jform_sql').prop('required','required');
|
|
|
|
jQuery('#jform_sql').attr('aria-required',true);
|
|
|
|
jQuery('#jform_sql').addClass('required');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwavwa_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_sql').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwavwa_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('sql',1);
|
|
|
|
jQuery('#jform_sql').removeAttr('required');
|
|
|
|
jQuery('#jform_sql').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_sql').removeClass('required');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwavwa_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwb function
|
|
|
|
function vvvvvwb(emptycontributors_vvvvvwb)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (emptycontributors_vvvvvwb == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_number').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_number').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwc function
|
|
|
|
function vvvvvwc(add_license_vvvvvwc)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_license_vvvvvwc == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_license_type').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwcvwb_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwcvwb_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_license_type').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwcvwb_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('license_type',1);
|
|
|
|
jQuery('#jform_license_type').removeAttr('required');
|
|
|
|
jQuery('#jform_license_type').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_license_type').removeClass('required');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwcvwb_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwd function
|
|
|
|
function vvvvvwd(add_admin_event_vvvvvwd)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_admin_event_vvvvvwd == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_admin_event').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwdvwc_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwdvwc_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_admin_event').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwdvwc_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwdvwc_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwe function
|
|
|
|
function vvvvvwe(add_site_event_vvvvvwe)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_site_event_vvvvvwe == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_site_event').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwevwd_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwevwd_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_site_event').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwevwd_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwevwd_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwf function
|
|
|
|
function vvvvvwf(addreadme_vvvvvwf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (addreadme_vvvvvwf == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('.note_readme').closest('.control-group').show();
|
|
|
|
jQuery('#jform_readme-lbl').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwfvwe_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('readme',0);
|
|
|
|
jQuery('#jform_readme').prop('required','required');
|
|
|
|
jQuery('#jform_readme').attr('aria-required',true);
|
|
|
|
jQuery('#jform_readme').addClass('required');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwfvwe_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_readme').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_readme-lbl').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwfvwe_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('readme',1);
|
|
|
|
jQuery('#jform_readme').removeAttr('required');
|
|
|
|
jQuery('#jform_readme').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_readme').removeClass('required');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwfvwe_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwg function
|
|
|
|
function vvvvvwg(add_update_server_vvvvvwg)
|
2016-03-04 20:58:05 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_update_server_vvvvvwg == 1)
|
2016-03-04 20:58:05 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_update_server').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_update_server').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwh function
|
|
|
|
function vvvvvwh(add_sales_server_vvvvvwh)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_sales_server_vvvvvwh == 1)
|
2016-03-04 20:58:05 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_sales_server_ftp').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_sales_server_ftp').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwi function
|
|
|
|
function vvvvvwi(add_license_vvvvvwi)
|
2016-03-04 20:58:05 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_license_vvvvvwi == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('.note_whmcs_lisencing_note').closest('.control-group').show();
|
|
|
|
jQuery('#jform_whmcs_key').closest('.control-group').show();
|
|
|
|
jQuery('#jform_whmcs_url').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_whmcs_lisencing_note').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_whmcs_key').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_whmcs_url').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwj function
|
|
|
|
function vvvvvwj(add_php_dashboard_methods_vvvvvwj)
|
2016-02-19 09:21:44 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_php_dashboard_methods_vvvvvwj == 1)
|
2016-02-19 09:21:44 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_dashboard_tab').closest('.control-group').show();
|
|
|
|
jQuery('#jform_php_dashboard_methods').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwjvwf_required)
|
2016-02-19 09:21:44 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwjvwf_required = false;
|
2016-02-19 09:21:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_dashboard_tab').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_php_dashboard_methods').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwjvwf_required)
|
2016-02-19 09:21:44 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwjvwf_required = true;
|
2016-02-19 09:21:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwk function
|
|
|
|
function vvvvvwk(add_php_postflight_install_vvvvvwk)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_php_postflight_install_vvvvvwk == 1)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_postflight_install').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwkvwg_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwkvwg_required = false;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_postflight_install').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwkvwg_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwkvwg_required = true;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwl function
|
|
|
|
function vvvvvwl(add_php_postflight_update_vvvvvwl)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_php_postflight_update_vvvvvwl == 1)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_postflight_update').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwlvwh_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwlvwh_required = false;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_postflight_update').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwlvwh_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwlvwh_required = true;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwm function
|
|
|
|
function vvvvvwm(add_php_method_uninstall_vvvvvwm)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_php_method_uninstall_vvvvvwm == 1)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_method_uninstall').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwmvwi_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwmvwi_required = false;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_method_uninstall').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwmvwi_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwmvwi_required = true;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwn function
|
|
|
|
function vvvvvwn(add_php_preflight_install_vvvvvwn)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_php_preflight_install_vvvvvwn == 1)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_preflight_install').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwnvwj_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwnvwj_required = false;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_preflight_install').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwnvwj_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwnvwj_required = true;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwo function
|
|
|
|
function vvvvvwo(add_php_preflight_update_vvvvvwo)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_php_preflight_update_vvvvvwo == 1)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_preflight_update').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwovwk_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwovwk_required = false;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_preflight_update').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwovwk_required)
|
2016-10-23 22:48:26 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwovwk_required = true;
|
2016-10-23 22:48:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwp function
|
|
|
|
function vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp)
|
2016-11-22 05:48:55 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (update_server_target_vvvvvwp == 1 && add_update_server_vvvvvwp == 1)
|
2016-11-22 05:48:55 +00:00
|
|
|
{
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwq function
|
|
|
|
function vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq)
|
2016-11-22 05:48:55 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_update_server_vvvvvwq == 1 && update_server_target_vvvvvwq == 1)
|
2016-11-22 05:48:55 +00:00
|
|
|
{
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwr function
|
|
|
|
function vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr)
|
2016-11-22 05:48:55 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (update_server_target_vvvvvwr == 2 && add_update_server_vvvvvwr == 1)
|
2016-11-22 05:48:55 +00:00
|
|
|
{
|
|
|
|
jQuery('.note_update_server_note_zip').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_update_server_note_zip').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwt function
|
|
|
|
function vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt)
|
2016-11-22 05:48:55 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (update_server_target_vvvvvwt == 3 && add_update_server_vvvvvwt == 1)
|
2016-11-22 05:48:55 +00:00
|
|
|
{
|
|
|
|
jQuery('.note_update_server_note_other').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_update_server_note_other').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvwv function
|
|
|
|
function vvvvvwv(add_update_server_vvvvvwv)
|
2016-11-22 17:08:17 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (add_update_server_vvvvvwv == 1)
|
2016-11-22 17:08:17 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_update_server_target').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwvvwl_required)
|
2016-11-22 17:08:17 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwvvwl_required = false;
|
2016-11-22 17:08:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_update_server_target').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwvvwl_required)
|
2016-11-22 17:08:17 +00:00
|
|
|
{
|
|
|
|
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');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwvvwl_required = true;
|
2016-11-22 17:08:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-06 14:53:22 +00:00
|
|
|
// the vvvvvww function
|
|
|
|
function vvvvvww(buildcomp_vvvvvww)
|
2016-12-30 10:47:19 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2017-10-06 14:53:22 +00:00
|
|
|
if (buildcomp_vvvvvww == 1)
|
2016-12-30 10:47:19 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_buildcompsql').closest('.control-group').show();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (jform_vvvvvwwvwm_required)
|
2016-12-30 10:47:19 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('buildcompsql',0);
|
|
|
|
jQuery('#jform_buildcompsql').prop('required','required');
|
|
|
|
jQuery('#jform_buildcompsql').attr('aria-required',true);
|
|
|
|
jQuery('#jform_buildcompsql').addClass('required');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwwvwm_required = false;
|
2016-12-30 10:47:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_buildcompsql').closest('.control-group').hide();
|
2017-10-06 14:53:22 +00:00
|
|
|
if (!jform_vvvvvwwvwm_required)
|
2016-12-30 10:47:19 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('buildcompsql',1);
|
|
|
|
jQuery('#jform_buildcompsql').removeAttr('required');
|
|
|
|
jQuery('#jform_buildcompsql').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_buildcompsql').removeClass('required');
|
2017-10-06 14:53:22 +00:00
|
|
|
jform_vvvvvwwvwm_required = true;
|
2016-12-30 10:47:19 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-30 20:28:43 +00:00
|
|
|
// update required fields
|
|
|
|
function updateFieldRequired(name,status)
|
|
|
|
{
|
|
|
|
var not_required = jQuery('#jform_not_required').val();
|
|
|
|
|
|
|
|
if(status == 1)
|
|
|
|
{
|
|
|
|
if (isSet(not_required) && not_required != 0)
|
|
|
|
{
|
|
|
|
not_required = not_required+','+name;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
not_required = ','+name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (isSet(not_required) && not_required != 0)
|
|
|
|
{
|
|
|
|
not_required = not_required.replace(','+name,'');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_not_required').val(not_required);
|
|
|
|
}
|
|
|
|
|
|
|
|
// the isSet function
|
|
|
|
function isSet(val)
|
|
|
|
{
|
|
|
|
if ((val != undefined) && (val != null) && 0 !== val.length){
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|