Improved the compiler, added the option to add the update server file to the zipped package, fixed a few bugs.
This commit is contained in:
@ -9,8 +9,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.2.0
|
||||
@build 31st October, 2016
|
||||
@version 2.2.2
|
||||
@build 22nd November, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage layout.js
|
||||
@ -23,42 +23,42 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvyivyk_required = false;
|
||||
jform_vvvvvyovyk_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyi = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyi(add_php_view_vvvvvyi);
|
||||
var add_php_view_vvvvvyo = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyo(add_php_view_vvvvvyo);
|
||||
});
|
||||
|
||||
// the vvvvvyi function
|
||||
function vvvvvyi(add_php_view_vvvvvyi)
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_php_view_vvvvvyo)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyi == 1)
|
||||
if (add_php_view_vvvvvyo == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvyivyk_required)
|
||||
if (jform_vvvvvyovyk_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_vvvvvyivyk_required = false;
|
||||
jform_vvvvvyovyk_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyivyk_required)
|
||||
if (!jform_vvvvvyovyk_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_vvvvvyivyk_required = true;
|
||||
jform_vvvvvyovyk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user