Improved the compiler. All other changes are only random variable name and date changes (due to automation)
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.0.9
|
||||
@build 31st January, 2016
|
||||
@build 15th February, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage layout.js
|
||||
@ -24,42 +24,42 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_QMYVTRNDPt_required = false;
|
||||
jform_fUPcPNLIoc_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_QMYVTRN = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
QMYVTRN(add_php_view_QMYVTRN);
|
||||
var add_php_view_fUPcPNL = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
fUPcPNL(add_php_view_fUPcPNL);
|
||||
});
|
||||
|
||||
// the QMYVTRN function
|
||||
function QMYVTRN(add_php_view_QMYVTRN)
|
||||
// the fUPcPNL function
|
||||
function fUPcPNL(add_php_view_fUPcPNL)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_QMYVTRN == 1)
|
||||
if (add_php_view_fUPcPNL == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_QMYVTRNDPt_required)
|
||||
if (jform_fUPcPNLIoc_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_QMYVTRNDPt_required = false;
|
||||
jform_fUPcPNLIoc_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_QMYVTRNDPt_required)
|
||||
if (!jform_fUPcPNLIoc_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_QMYVTRNDPt_required = true;
|
||||
jform_fUPcPNLIoc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user