added another field to the component view, to add helper methods to both admin and site area of the component

This commit is contained in:
2016-11-25 04:56:16 +02:00
parent 082196378b
commit 0cd5660141
382 changed files with 3714 additions and 3580 deletions

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.3
@build 22nd November, 2016
@version 2.2.4
@build 25th November, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.js
@ -23,42 +23,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvypvyl_required = false;
jform_vvvvvyqvym_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyp = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyp(add_php_view_vvvvvyp);
var add_php_view_vvvvvyq = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyq(add_php_view_vvvvvyq);
});
// the vvvvvyp function
function vvvvvyp(add_php_view_vvvvvyp)
// the vvvvvyq function
function vvvvvyq(add_php_view_vvvvvyq)
{
// set the function logic
if (add_php_view_vvvvvyp == 1)
if (add_php_view_vvvvvyq == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvypvyl_required)
if (jform_vvvvvyqvym_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_vvvvvypvyl_required = false;
jform_vvvvvyqvym_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvypvyl_required)
if (!jform_vvvvvyqvym_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_vvvvvypvyl_required = true;
jform_vvvvvyqvym_required = true;
}
}
}