Added custom buttons to admin views, improved the compiler code, with some bug fixes

This commit is contained in:
2016-09-11 17:27:04 +02:00
parent 8fbd4f8701
commit ecb3ab5af9
372 changed files with 4170 additions and 3139 deletions

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.20
@build 7th September, 2016
@version 2.1.21
@build 11th September, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.js
@ -24,42 +24,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvycvyd_required = false;
jform_vvvvvydvyf_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyc = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyc(add_php_view_vvvvvyc);
var add_php_view_vvvvvyd = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyd(add_php_view_vvvvvyd);
});
// the vvvvvyc function
function vvvvvyc(add_php_view_vvvvvyc)
// the vvvvvyd function
function vvvvvyd(add_php_view_vvvvvyd)
{
// set the function logic
if (add_php_view_vvvvvyc == 1)
if (add_php_view_vvvvvyd == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvycvyd_required)
if (jform_vvvvvydvyf_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_vvvvvycvyd_required = false;
jform_vvvvvydvyf_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvycvyd_required)
if (!jform_vvvvvydvyf_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_vvvvvycvyd_required = true;
jform_vvvvvydvyf_required = true;
}
}
}