Trying to remove random variable changes per/build, or at least to cut it down in a major way.

This commit is contained in:
2016-02-26 15:57:30 +02:00
parent 2ecf186846
commit 15e3c82dd2
35 changed files with 1715 additions and 1674 deletions

View File

@ -24,42 +24,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_yaSbwWTZmj_required = false;
jform_vvvvvxtvxt_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_yaSbwWT = jQuery("#jform_add_php_view input[type='radio']:checked").val();
yaSbwWT(add_php_view_yaSbwWT);
var add_php_view_vvvvvxt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxt(add_php_view_vvvvvxt);
});
// the yaSbwWT function
function yaSbwWT(add_php_view_yaSbwWT)
// the vvvvvxt function
function vvvvvxt(add_php_view_vvvvvxt)
{
// set the function logic
if (add_php_view_yaSbwWT == 1)
if (add_php_view_vvvvvxt == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_yaSbwWTZmj_required)
if (jform_vvvvvxtvxt_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_yaSbwWTZmj_required = false;
jform_vvvvvxtvxt_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_yaSbwWTZmj_required)
if (!jform_vvvvvxtvxt_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_yaSbwWTZmj_required = true;
jform_vvvvvxtvxt_required = true;
}
}
}