Removing repetable fields from site view, custom admin view, and admin view. Also updated the compiler, removed permissions on fields to speedup page load in admin and joomla component views
This commit is contained in:
@ -23,42 +23,42 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvytvyx_required = false;
|
||||
jform_vvvvvyuvyw_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyt(add_php_view_vvvvvyt);
|
||||
var add_php_view_vvvvvyu = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyu(add_php_view_vvvvvyu);
|
||||
});
|
||||
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(add_php_view_vvvvvyt)
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_php_view_vvvvvyu)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyt == 1)
|
||||
if (add_php_view_vvvvvyu == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvytvyx_required)
|
||||
if (jform_vvvvvyuvyw_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_vvvvvytvyx_required = false;
|
||||
jform_vvvvvyuvyw_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvytvyx_required)
|
||||
if (!jform_vvvvvyuvyw_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_vvvvvytvyx_required = true;
|
||||
jform_vvvvvyuvyw_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user