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 template.js
@ -24,42 +24,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvybvyc_required = false;
jform_vvvvvycvye_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyb = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyb(add_php_view_vvvvvyb);
var add_php_view_vvvvvyc = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyc(add_php_view_vvvvvyc);
});
// the vvvvvyb function
function vvvvvyb(add_php_view_vvvvvyb)
// the vvvvvyc function
function vvvvvyc(add_php_view_vvvvvyc)
{
// set the function logic
if (add_php_view_vvvvvyb == 1)
if (add_php_view_vvvvvyc == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvybvyc_required)
if (jform_vvvvvycvye_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_vvvvvybvyc_required = false;
jform_vvvvvycvye_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvybvyc_required)
if (!jform_vvvvvycvye_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_vvvvvybvyc_required = true;
jform_vvvvvycvye_required = true;
}
}
}