2018-05-18 06:28:27 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
|
|
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
|
|
|
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
|
|
* @copyright Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Some Global Values
|
2018-03-11 22:36:14 +00:00
|
|
|
jform_vvvvvxavwo_required = false;
|
|
|
|
jform_vvvvvxbvwp_required = false;
|
|
|
|
jform_vvvvvxcvwq_required = false;
|
|
|
|
jform_vvvvvxdvwr_required = false;
|
|
|
|
jform_vvvvvxevws_required = false;
|
|
|
|
jform_vvvvvxfvwt_required = false;
|
|
|
|
jform_vvvvvxgvwu_required = false;
|
|
|
|
jform_vvvvvxhvwv_required = false;
|
|
|
|
jform_vvvvvxivww_required = false;
|
|
|
|
jform_vvvvvxjvwx_required = false;
|
|
|
|
jform_vvvvvxkvwy_required = false;
|
|
|
|
jform_vvvvvxlvwz_required = false;
|
|
|
|
jform_vvvvvxmvxa_required = false;
|
|
|
|
jform_vvvvvxnvxb_required = false;
|
|
|
|
jform_vvvvvxovxc_required = false;
|
|
|
|
jform_vvvvvxpvxd_required = false;
|
|
|
|
jform_vvvvvxqvxe_required = false;
|
|
|
|
jform_vvvvvxrvxf_required = false;
|
|
|
|
jform_vvvvvxsvxg_required = false;
|
|
|
|
jform_vvvvvxtvxh_required = false;
|
|
|
|
jform_vvvvvxuvxi_required = false;
|
|
|
|
jform_vvvvvxvvxj_required = false;
|
|
|
|
jform_vvvvvxwvxk_required = false;
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxxvxl_required = false;
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvxyvxm_required = false;
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxzvxn_required = false;
|
|
|
|
jform_vvvvvydvxo_required = false;
|
|
|
|
jform_vvvvvydvxp_required = false;
|
|
|
|
jform_vvvvvydvxq_required = false;
|
|
|
|
jform_vvvvvydvxr_required = false;
|
|
|
|
jform_vvvvvydvxs_required = false;
|
|
|
|
jform_vvvvvydvxt_required = false;
|
|
|
|
jform_vvvvvydvxu_required = false;
|
|
|
|
jform_vvvvvyfvxv_required = false;
|
|
|
|
jform_vvvvvyfvxw_required = false;
|
|
|
|
jform_vvvvvyfvxx_required = false;
|
|
|
|
jform_vvvvvyfvxy_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_css_view_vvvvvxa = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
|
|
|
vvvvvxa(add_css_view_vvvvvxa);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_css_views_vvvvvxb = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
|
|
|
vvvvvxb(add_css_views_vvvvvxb);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_javascript_view_file_vvvvvxc = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
|
|
|
vvvvvxc(add_javascript_view_file_vvvvvxc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_javascript_views_file_vvvvvxd = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
|
|
|
vvvvvxd(add_javascript_views_file_vvvvvxd);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_javascript_view_footer_vvvvvxe = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
|
|
|
vvvvvxe(add_javascript_view_footer_vvvvvxe);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_javascript_views_footer_vvvvvxf = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
|
|
|
vvvvvxf(add_javascript_views_footer_vvvvvxf);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_php_ajax_vvvvvxg = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
|
|
|
vvvvvxg(add_php_ajax_vvvvvxg);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_php_getitem_vvvvvxh = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
|
|
|
vvvvvxh(add_php_getitem_vvvvvxh);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_php_getitems_vvvvvxi = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
|
|
|
vvvvvxi(add_php_getitems_vvvvvxi);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_php_getitems_after_all_vvvvvxj = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
|
|
|
vvvvvxj(add_php_getitems_after_all_vvvvvxj);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
var add_php_getlistquery_vvvvvxk = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
|
|
|
vvvvvxk(add_php_getlistquery_vvvvvxk);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_getform_vvvvvxl = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
|
|
|
vvvvvxl(add_php_getform_vvvvvxl);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_before_save_vvvvvxm = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
|
|
|
vvvvvxm(add_php_before_save_vvvvvxm);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_save_vvvvvxn = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
|
|
|
vvvvvxn(add_php_save_vvvvvxn);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_php_postsavehook_vvvvvxo = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
|
|
|
vvvvvxo(add_php_postsavehook_vvvvvxo);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_allowadd_vvvvvxp = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
|
|
|
vvvvvxp(add_php_allowadd_vvvvvxp);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_allowedit_vvvvvxq = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
|
|
|
vvvvvxq(add_php_allowedit_vvvvvxq);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_batchcopy_vvvvvxr = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
|
|
|
vvvvvxr(add_php_batchcopy_vvvvvxr);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_batchmove_vvvvvxs = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
|
|
|
vvvvvxs(add_php_batchmove_vvvvvxs);
|
2016-03-04 20:58:05 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_before_publish_vvvvvxt = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
|
|
|
vvvvvxt(add_php_before_publish_vvvvvxt);
|
2016-04-22 21:32:02 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_after_publish_vvvvvxu = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
|
|
|
vvvvvxu(add_php_after_publish_vvvvvxu);
|
2016-09-07 21:20:58 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_before_delete_vvvvvxv = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
|
|
|
vvvvvxv(add_php_before_delete_vvvvvxv);
|
2016-09-03 21:44:47 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_after_delete_vvvvvxw = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
|
|
|
vvvvvxw(add_php_after_delete_vvvvvxw);
|
2016-12-30 10:47:19 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_php_document_vvvvvxx = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
|
|
|
vvvvvxx(add_php_document_vvvvvxx);
|
2018-03-09 03:26:44 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_sql_vvvvvxy = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
2018-08-14 08:25:46 +00:00
|
|
|
vvvvvxy(add_sql_vvvvvxy);
|
2017-09-13 00:37:43 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var source_vvvvvxz = jQuery("#jform_source input[type='radio']:checked").val();
|
|
|
|
var add_sql_vvvvvxz = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
|
|
|
vvvvvxz(source_vvvvvxz,add_sql_vvvvvxz);
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var source_vvvvvyb = jQuery("#jform_source input[type='radio']:checked").val();
|
|
|
|
var add_sql_vvvvvyb = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
|
|
|
vvvvvyb(source_vvvvvyb,add_sql_vvvvvyb);
|
2018-05-11 04:08:14 +00:00
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
var add_custom_import_vvvvvyd = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
|
|
|
vvvvvyd(add_custom_import_vvvvvyd);
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
var add_custom_import_vvvvvye = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
|
|
|
vvvvvye(add_custom_import_vvvvvye);
|
|
|
|
|
|
|
|
var add_custom_button_vvvvvyf = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
|
|
|
vvvvvyf(add_custom_button_vvvvvyf);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxa function
|
|
|
|
function vvvvvxa(add_css_view_vvvvvxa)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_css_view_vvvvvxa == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_css_view-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to css_view field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxavwo_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('css_view',0);
|
|
|
|
jQuery('#jform_css_view').prop('required','required');
|
|
|
|
jQuery('#jform_css_view').attr('aria-required',true);
|
|
|
|
jQuery('#jform_css_view').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxavwo_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_css_view-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from css_view field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxavwo_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('css_view',1);
|
|
|
|
jQuery('#jform_css_view').removeAttr('required');
|
|
|
|
jQuery('#jform_css_view').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_css_view').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxavwo_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxb function
|
|
|
|
function vvvvvxb(add_css_views_vvvvvxb)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_css_views_vvvvvxb == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_css_views-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to css_views field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxbvwp_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('css_views',0);
|
|
|
|
jQuery('#jform_css_views').prop('required','required');
|
|
|
|
jQuery('#jform_css_views').attr('aria-required',true);
|
|
|
|
jQuery('#jform_css_views').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxbvwp_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_css_views-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from css_views field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxbvwp_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('css_views',1);
|
|
|
|
jQuery('#jform_css_views').removeAttr('required');
|
|
|
|
jQuery('#jform_css_views').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_css_views').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxbvwp_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxc function
|
|
|
|
function vvvvvxc(add_javascript_view_file_vvvvvxc)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_javascript_view_file_vvvvvxc == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to javascript_view_file field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxcvwq_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('javascript_view_file',0);
|
|
|
|
jQuery('#jform_javascript_view_file').prop('required','required');
|
|
|
|
jQuery('#jform_javascript_view_file').attr('aria-required',true);
|
|
|
|
jQuery('#jform_javascript_view_file').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxcvwq_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_javascript_view_file-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from javascript_view_file field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxcvwq_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('javascript_view_file',1);
|
|
|
|
jQuery('#jform_javascript_view_file').removeAttr('required');
|
|
|
|
jQuery('#jform_javascript_view_file').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_javascript_view_file').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxcvwq_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxd function
|
|
|
|
function vvvvvxd(add_javascript_views_file_vvvvvxd)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_javascript_views_file_vvvvvxd == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to javascript_views_file field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxdvwr_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('javascript_views_file',0);
|
|
|
|
jQuery('#jform_javascript_views_file').prop('required','required');
|
|
|
|
jQuery('#jform_javascript_views_file').attr('aria-required',true);
|
|
|
|
jQuery('#jform_javascript_views_file').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxdvwr_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_javascript_views_file-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from javascript_views_file field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxdvwr_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('javascript_views_file',1);
|
|
|
|
jQuery('#jform_javascript_views_file').removeAttr('required');
|
|
|
|
jQuery('#jform_javascript_views_file').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_javascript_views_file').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxdvwr_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxe function
|
|
|
|
function vvvvvxe(add_javascript_view_footer_vvvvvxe)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_javascript_view_footer_vvvvvxe == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to javascript_view_footer field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxevws_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('javascript_view_footer',0);
|
|
|
|
jQuery('#jform_javascript_view_footer').prop('required','required');
|
|
|
|
jQuery('#jform_javascript_view_footer').attr('aria-required',true);
|
|
|
|
jQuery('#jform_javascript_view_footer').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxevws_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from javascript_view_footer field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxevws_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('javascript_view_footer',1);
|
|
|
|
jQuery('#jform_javascript_view_footer').removeAttr('required');
|
|
|
|
jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_javascript_view_footer').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxevws_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxf function
|
|
|
|
function vvvvvxf(add_javascript_views_footer_vvvvvxf)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_javascript_views_footer_vvvvvxf == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to javascript_views_footer field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxfvwt_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('javascript_views_footer',0);
|
|
|
|
jQuery('#jform_javascript_views_footer').prop('required','required');
|
|
|
|
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
|
|
|
|
jQuery('#jform_javascript_views_footer').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxfvwt_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 20:54:26 +00:00
|
|
|
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from javascript_views_footer field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxfvwt_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('javascript_views_footer',1);
|
|
|
|
jQuery('#jform_javascript_views_footer').removeAttr('required');
|
|
|
|
jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_javascript_views_footer').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxfvwt_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxg function
|
|
|
|
function vvvvvxg(add_php_ajax_vvvvvxg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_php_ajax_vvvvvxg == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-10-12 00:50:14 +00:00
|
|
|
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_ajaxmethod field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxgvwu_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_ajaxmethod',0);
|
|
|
|
jQuery('#jform_php_ajaxmethod').prop('required','required');
|
|
|
|
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_ajaxmethod').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxgvwu_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-10-12 00:50:14 +00:00
|
|
|
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_ajaxmethod field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxgvwu_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_ajaxmethod',1);
|
|
|
|
jQuery('#jform_php_ajaxmethod').removeAttr('required');
|
|
|
|
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_ajaxmethod').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxgvwu_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxh function
|
|
|
|
function vvvvvxh(add_php_getitem_vvvvvxh)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_php_getitem_vvvvvxh == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getitem-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_getitem field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxhvwv_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getitem',0);
|
|
|
|
jQuery('#jform_php_getitem').prop('required','required');
|
|
|
|
jQuery('#jform_php_getitem').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_getitem').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxhvwv_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getitem-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_getitem field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxhvwv_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getitem',1);
|
|
|
|
jQuery('#jform_php_getitem').removeAttr('required');
|
|
|
|
jQuery('#jform_php_getitem').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_getitem').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxhvwv_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxi function
|
|
|
|
function vvvvvxi(add_php_getitems_vvvvvxi)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_php_getitems_vvvvvxi == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getitems-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_getitems field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxivww_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getitems',0);
|
|
|
|
jQuery('#jform_php_getitems').prop('required','required');
|
|
|
|
jQuery('#jform_php_getitems').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_getitems').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxivww_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getitems-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_getitems field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxivww_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getitems',1);
|
|
|
|
jQuery('#jform_php_getitems').removeAttr('required');
|
|
|
|
jQuery('#jform_php_getitems').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_getitems').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxivww_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxj function
|
|
|
|
function vvvvvxj(add_php_getitems_after_all_vvvvvxj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_php_getitems_after_all_vvvvvxj == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_getitems_after_all field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxjvwx_required)
|
2016-09-03 21:44:47 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getitems_after_all',0);
|
|
|
|
jQuery('#jform_php_getitems_after_all').prop('required','required');
|
|
|
|
jQuery('#jform_php_getitems_after_all').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_getitems_after_all').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxjvwx_required = false;
|
2016-09-03 21:44:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_getitems_after_all field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxjvwx_required)
|
2016-09-03 21:44:47 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getitems_after_all',1);
|
|
|
|
jQuery('#jform_php_getitems_after_all').removeAttr('required');
|
|
|
|
jQuery('#jform_php_getitems_after_all').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_getitems_after_all').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxjvwx_required = true;
|
2016-09-03 21:44:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxk function
|
|
|
|
function vvvvvxk(add_php_getlistquery_vvvvvxk)
|
2016-09-03 21:44:47 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-05-11 04:08:14 +00:00
|
|
|
if (add_php_getlistquery_vvvvvxk == 1)
|
2016-09-03 21:44:47 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_getlistquery field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxkvwy_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getlistquery',0);
|
|
|
|
jQuery('#jform_php_getlistquery').prop('required','required');
|
|
|
|
jQuery('#jform_php_getlistquery').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_getlistquery').addClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxkvwy_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_getlistquery field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (!jform_vvvvvxkvwy_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getlistquery',1);
|
|
|
|
jQuery('#jform_php_getlistquery').removeAttr('required');
|
|
|
|
jQuery('#jform_php_getlistquery').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_getlistquery').removeClass('required');
|
2018-05-11 04:08:14 +00:00
|
|
|
jform_vvvvvxkvwy_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-11 04:08:14 +00:00
|
|
|
// the vvvvvxl function
|
2018-07-06 13:46:30 +00:00
|
|
|
function vvvvvxl(add_php_getform_vvvvvxl)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_getform_vvvvvxl == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-07-06 13:46:30 +00:00
|
|
|
jQuery('#jform_php_getform-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_getform field
|
2018-05-11 04:08:14 +00:00
|
|
|
if (jform_vvvvvxlvwz_required)
|
2018-07-06 13:46:30 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_getform',0);
|
|
|
|
jQuery('#jform_php_getform').prop('required','required');
|
|
|
|
jQuery('#jform_php_getform').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_getform').addClass('required');
|
|
|
|
jform_vvvvvxlvwz_required = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_getform-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_getform field
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvxlvwz_required)
|
|
|
|
{
|
|
|
|
updateFieldRequired('php_getform',1);
|
|
|
|
jQuery('#jform_php_getform').removeAttr('required');
|
|
|
|
jQuery('#jform_php_getform').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_getform').removeClass('required');
|
|
|
|
jform_vvvvvxlvwz_required = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// the vvvvvxm function
|
|
|
|
function vvvvvxm(add_php_before_save_vvvvvxm)
|
|
|
|
{
|
|
|
|
// set the function logic
|
|
|
|
if (add_php_before_save_vvvvvxm == 1)
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_save-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_before_save field
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvxmvxa_required)
|
2017-09-13 00:37:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_save',0);
|
|
|
|
jQuery('#jform_php_before_save').prop('required','required');
|
|
|
|
jQuery('#jform_php_before_save').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_before_save').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvxmvxa_required = false;
|
2017-09-13 00:37:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_before_save-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_before_save field
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvxmvxa_required)
|
2017-09-13 00:37:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_save',1);
|
|
|
|
jQuery('#jform_php_before_save').removeAttr('required');
|
|
|
|
jQuery('#jform_php_before_save').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_before_save').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvxmvxa_required = true;
|
2017-09-13 00:37:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvxn function
|
|
|
|
function vvvvvxn(add_php_save_vvvvvxn)
|
2017-09-13 00:37:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_save_vvvvvxn == 1)
|
2017-09-13 00:37:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_save-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_save field
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvxnvxb_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_save',0);
|
|
|
|
jQuery('#jform_php_save').prop('required','required');
|
|
|
|
jQuery('#jform_php_save').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_save').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvxnvxb_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_save-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_save field
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvxnvxb_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_save',1);
|
|
|
|
jQuery('#jform_php_save').removeAttr('required');
|
|
|
|
jQuery('#jform_php_save').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_save').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvxnvxb_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvxo function
|
|
|
|
function vvvvvxo(add_php_postsavehook_vvvvvxo)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-07-06 13:46:30 +00:00
|
|
|
if (add_php_postsavehook_vvvvvxo == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_postsavehook field
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvxovxc_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_postsavehook',0);
|
|
|
|
jQuery('#jform_php_postsavehook').prop('required','required');
|
|
|
|
jQuery('#jform_php_postsavehook').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_postsavehook').addClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvxovxc_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_postsavehook-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_postsavehook field
|
2018-07-06 13:46:30 +00:00
|
|
|
if (!jform_vvvvvxovxc_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_postsavehook',1);
|
|
|
|
jQuery('#jform_php_postsavehook').removeAttr('required');
|
|
|
|
jQuery('#jform_php_postsavehook').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_postsavehook').removeClass('required');
|
2018-07-06 13:46:30 +00:00
|
|
|
jform_vvvvvxovxc_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-06 13:46:30 +00:00
|
|
|
// the vvvvvxp function
|
2018-08-14 08:25:46 +00:00
|
|
|
function vvvvvxp(add_php_allowadd_vvvvvxp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_php_allowadd_vvvvvxp == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-08-14 08:25:46 +00:00
|
|
|
jQuery('#jform_php_allowadd-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_allowadd field
|
2018-07-06 13:46:30 +00:00
|
|
|
if (jform_vvvvvxpvxd_required)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_allowadd',0);
|
|
|
|
jQuery('#jform_php_allowadd').prop('required','required');
|
|
|
|
jQuery('#jform_php_allowadd').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_allowadd').addClass('required');
|
|
|
|
jform_vvvvvxpvxd_required = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_allowadd-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_allowadd field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxpvxd_required)
|
|
|
|
{
|
|
|
|
updateFieldRequired('php_allowadd',1);
|
|
|
|
jQuery('#jform_php_allowadd').removeAttr('required');
|
|
|
|
jQuery('#jform_php_allowadd').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_allowadd').removeClass('required');
|
|
|
|
jform_vvvvvxpvxd_required = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// the vvvvvxq function
|
|
|
|
function vvvvvxq(add_php_allowedit_vvvvvxq)
|
|
|
|
{
|
|
|
|
// set the function logic
|
|
|
|
if (add_php_allowedit_vvvvvxq == 1)
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_allowedit-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_allowedit field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxqvxe_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_allowedit',0);
|
|
|
|
jQuery('#jform_php_allowedit').prop('required','required');
|
|
|
|
jQuery('#jform_php_allowedit').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_allowedit').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxqvxe_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_allowedit-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_allowedit field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxqvxe_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_allowedit',1);
|
|
|
|
jQuery('#jform_php_allowedit').removeAttr('required');
|
|
|
|
jQuery('#jform_php_allowedit').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_allowedit').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxqvxe_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxr function
|
|
|
|
function vvvvvxr(add_php_batchcopy_vvvvvxr)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_php_batchcopy_vvvvvxr == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_batchcopy field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxrvxf_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_batchcopy',0);
|
|
|
|
jQuery('#jform_php_batchcopy').prop('required','required');
|
|
|
|
jQuery('#jform_php_batchcopy').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_batchcopy').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxrvxf_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_batchcopy-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_batchcopy field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxrvxf_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_batchcopy',1);
|
|
|
|
jQuery('#jform_php_batchcopy').removeAttr('required');
|
|
|
|
jQuery('#jform_php_batchcopy').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_batchcopy').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxrvxf_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxs function
|
|
|
|
function vvvvvxs(add_php_batchmove_vvvvvxs)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_php_batchmove_vvvvvxs == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_batchmove-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_batchmove field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxsvxg_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_batchmove',0);
|
|
|
|
jQuery('#jform_php_batchmove').prop('required','required');
|
|
|
|
jQuery('#jform_php_batchmove').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_batchmove').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxsvxg_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_batchmove-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_batchmove field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxsvxg_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_batchmove',1);
|
|
|
|
jQuery('#jform_php_batchmove').removeAttr('required');
|
|
|
|
jQuery('#jform_php_batchmove').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_batchmove').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxsvxg_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxt function
|
|
|
|
function vvvvvxt(add_php_before_publish_vvvvvxt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_php_before_publish_vvvvvxt == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_before_publish-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_before_publish field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxtvxh_required)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_publish',0);
|
|
|
|
jQuery('#jform_php_before_publish').prop('required','required');
|
|
|
|
jQuery('#jform_php_before_publish').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_before_publish').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxtvxh_required = false;
|
2016-09-07 21:20:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_before_publish-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_before_publish field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxtvxh_required)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_publish',1);
|
|
|
|
jQuery('#jform_php_before_publish').removeAttr('required');
|
|
|
|
jQuery('#jform_php_before_publish').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_before_publish').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxtvxh_required = true;
|
2016-09-07 21:20:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxu function
|
|
|
|
function vvvvvxu(add_php_after_publish_vvvvvxu)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_php_after_publish_vvvvvxu == 1)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_after_publish-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_after_publish field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxuvxi_required)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_after_publish',0);
|
|
|
|
jQuery('#jform_php_after_publish').prop('required','required');
|
|
|
|
jQuery('#jform_php_after_publish').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_after_publish').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxuvxi_required = false;
|
2016-09-07 21:20:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_after_publish-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_after_publish field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxuvxi_required)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_after_publish',1);
|
|
|
|
jQuery('#jform_php_after_publish').removeAttr('required');
|
|
|
|
jQuery('#jform_php_after_publish').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_after_publish').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxuvxi_required = true;
|
2016-09-07 21:20:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxv function
|
|
|
|
function vvvvvxv(add_php_before_delete_vvvvvxv)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_php_before_delete_vvvvvxv == 1)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_before_delete-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_before_delete field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxvvxj_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_delete',0);
|
|
|
|
jQuery('#jform_php_before_delete').prop('required','required');
|
|
|
|
jQuery('#jform_php_before_delete').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_before_delete').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxvvxj_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_before_delete-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_before_delete field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxvvxj_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_before_delete',1);
|
|
|
|
jQuery('#jform_php_before_delete').removeAttr('required');
|
|
|
|
jQuery('#jform_php_before_delete').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_before_delete').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxvvxj_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxw function
|
|
|
|
function vvvvvxw(add_php_after_delete_vvvvvxw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_php_after_delete_vvvvvxw == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_after_delete-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_after_delete field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxwvxk_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_after_delete',0);
|
|
|
|
jQuery('#jform_php_after_delete').prop('required','required');
|
|
|
|
jQuery('#jform_php_after_delete').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_after_delete').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxwvxk_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_after_delete-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_after_delete field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxwvxk_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_after_delete',1);
|
|
|
|
jQuery('#jform_php_after_delete').removeAttr('required');
|
|
|
|
jQuery('#jform_php_after_delete').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_after_delete').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxwvxk_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxx function
|
|
|
|
function vvvvvxx(add_php_document_vvvvvxx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_php_document_vvvvvxx == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_document field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxxvxl_required)
|
2016-04-22 21:32:02 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_document',0);
|
|
|
|
jQuery('#jform_php_document').prop('required','required');
|
|
|
|
jQuery('#jform_php_document').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_document').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxxvxl_required = false;
|
2016-04-22 21:32:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_document-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_document field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxxvxl_required)
|
2016-04-22 21:32:02 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_document',1);
|
|
|
|
jQuery('#jform_php_document').removeAttr('required');
|
|
|
|
jQuery('#jform_php_document').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_document').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxxvxl_required = true;
|
2016-04-22 21:32:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxy function
|
|
|
|
function vvvvvxy(add_sql_vvvvvxy)
|
2016-04-22 21:32:02 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_sql_vvvvvxy == 1)
|
2016-04-22 21:32:02 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_source').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to source field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxyvxm_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('source',0);
|
|
|
|
jQuery('#jform_source').prop('required','required');
|
|
|
|
jQuery('#jform_source').attr('aria-required',true);
|
|
|
|
jQuery('#jform_source').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxyvxm_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_source').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from source field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxyvxm_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('source',1);
|
|
|
|
jQuery('#jform_source').removeAttr('required');
|
|
|
|
jQuery('#jform_source').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_source').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxyvxm_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvxz function
|
|
|
|
function vvvvvxz(source_vvvvvxz,add_sql_vvvvvxz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (source_vvvvvxz == 2 && add_sql_vvvvvxz == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_sql').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to sql field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvxzvxn_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('sql',0);
|
|
|
|
jQuery('#jform_sql').prop('required','required');
|
|
|
|
jQuery('#jform_sql').attr('aria-required',true);
|
|
|
|
jQuery('#jform_sql').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxzvxn_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_sql').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from sql field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvxzvxn_required)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('sql',1);
|
|
|
|
jQuery('#jform_sql').removeAttr('required');
|
|
|
|
jQuery('#jform_sql').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_sql').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvxzvxn_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvyb function
|
|
|
|
function vvvvvyb(source_vvvvvyb,add_sql_vvvvvyb)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (source_vvvvvyb == 1 && add_sql_vvvvvyb == 1)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
2017-10-12 00:50:14 +00:00
|
|
|
jQuery('#jform_addtables-lbl').closest('.control-group').show();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-10-12 00:50:14 +00:00
|
|
|
jQuery('#jform_addtables-lbl').closest('.control-group').hide();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvyd function
|
|
|
|
function vvvvvyd(add_custom_import_vvvvvyd)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_custom_import_vvvvvyd == 1)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_html_import_view').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to html_import_view field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvydvxo_required)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('html_import_view',0);
|
|
|
|
jQuery('#jform_html_import_view').prop('required','required');
|
|
|
|
jQuery('#jform_html_import_view').attr('aria-required',true);
|
|
|
|
jQuery('#jform_html_import_view').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxo_required = false;
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
|
|
|
jQuery('.note_advanced_import').closest('.control-group').show();
|
2016-05-20 05:00:31 +00:00
|
|
|
jQuery('#jform_php_import_display').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_import_display field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvydvxp_required)
|
2016-05-20 05:00:31 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_display',0);
|
|
|
|
jQuery('#jform_php_import_display').prop('required','required');
|
|
|
|
jQuery('#jform_php_import_display').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_import_display').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxp_required = false;
|
2016-05-20 05:00:31 +00:00
|
|
|
}
|
2017-03-27 12:38:51 +00:00
|
|
|
jQuery('#jform_php_import_ext').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_import_ext field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvydvxq_required)
|
2017-03-27 12:38:51 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_ext',0);
|
|
|
|
jQuery('#jform_php_import_ext').prop('required','required');
|
|
|
|
jQuery('#jform_php_import_ext').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_import_ext').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxq_required = false;
|
2017-03-27 12:38:51 +00:00
|
|
|
}
|
2018-01-17 23:14:43 +00:00
|
|
|
jQuery('#jform_php_import_headers').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_import_headers field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvydvxr_required)
|
2018-01-17 23:14:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_headers',0);
|
|
|
|
jQuery('#jform_php_import_headers').prop('required','required');
|
|
|
|
jQuery('#jform_php_import_headers').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_import_headers').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxr_required = false;
|
2018-01-17 23:14:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_php_import').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_import field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvydvxs_required)
|
2016-05-04 23:14:20 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import',0);
|
|
|
|
jQuery('#jform_php_import').prop('required','required');
|
|
|
|
jQuery('#jform_php_import').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_import').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxs_required = false;
|
2016-05-04 23:14:20 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_php_import_save').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_import_save field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvydvxt_required)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_save',0);
|
|
|
|
jQuery('#jform_php_import_save').prop('required','required');
|
|
|
|
jQuery('#jform_php_import_save').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_import_save').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxt_required = false;
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_php_import_setdata').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_import_setdata field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvydvxu_required)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_setdata',0);
|
|
|
|
jQuery('#jform_php_import_setdata').prop('required','required');
|
|
|
|
jQuery('#jform_php_import_setdata').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_import_setdata').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxu_required = false;
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_html_import_view').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from html_import_view field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvydvxo_required)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('html_import_view',1);
|
|
|
|
jQuery('#jform_html_import_view').removeAttr('required');
|
|
|
|
jQuery('#jform_html_import_view').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_html_import_view').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxo_required = true;
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
|
|
|
jQuery('.note_advanced_import').closest('.control-group').hide();
|
2016-05-20 05:00:31 +00:00
|
|
|
jQuery('#jform_php_import_display').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_import_display field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvydvxp_required)
|
2016-05-20 05:00:31 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_display',1);
|
|
|
|
jQuery('#jform_php_import_display').removeAttr('required');
|
|
|
|
jQuery('#jform_php_import_display').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_import_display').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxp_required = true;
|
2016-05-20 05:00:31 +00:00
|
|
|
}
|
2017-03-27 12:38:51 +00:00
|
|
|
jQuery('#jform_php_import_ext').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_import_ext field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvydvxq_required)
|
2017-03-27 12:38:51 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_ext',1);
|
|
|
|
jQuery('#jform_php_import_ext').removeAttr('required');
|
|
|
|
jQuery('#jform_php_import_ext').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_import_ext').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxq_required = true;
|
2017-03-27 12:38:51 +00:00
|
|
|
}
|
2018-01-17 23:14:43 +00:00
|
|
|
jQuery('#jform_php_import_headers').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_import_headers field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvydvxr_required)
|
2018-01-17 23:14:43 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_headers',1);
|
|
|
|
jQuery('#jform_php_import_headers').removeAttr('required');
|
|
|
|
jQuery('#jform_php_import_headers').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_import_headers').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxr_required = true;
|
2018-01-17 23:14:43 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_php_import').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_import field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvydvxs_required)
|
2016-05-04 23:14:20 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import',1);
|
|
|
|
jQuery('#jform_php_import').removeAttr('required');
|
|
|
|
jQuery('#jform_php_import').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_import').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxs_required = true;
|
2016-05-04 23:14:20 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_php_import_save').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_import_save field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvydvxt_required)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_save',1);
|
|
|
|
jQuery('#jform_php_import_save').removeAttr('required');
|
|
|
|
jQuery('#jform_php_import_save').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_import_save').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxt_required = true;
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
|
|
|
jQuery('#jform_php_import_setdata').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_import_setdata field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvydvxu_required)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_import_setdata',1);
|
|
|
|
jQuery('#jform_php_import_setdata').removeAttr('required');
|
|
|
|
jQuery('#jform_php_import_setdata').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_import_setdata').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvydvxu_required = true;
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvye function
|
|
|
|
function vvvvvye(add_custom_import_vvvvvye)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_custom_import_vvvvvye == 0)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
jQuery('.note_beginner_import').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('.note_beginner_import').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-14 08:25:46 +00:00
|
|
|
// the vvvvvyf function
|
|
|
|
function vvvvvyf(add_custom_button_vvvvvyf)
|
2016-09-11 15:27:04 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2018-08-14 08:25:46 +00:00
|
|
|
if (add_custom_button_vvvvvyf == 1)
|
2016-09-11 15:27:04 +00:00
|
|
|
{
|
2017-10-12 00:50:14 +00:00
|
|
|
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_controller field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvyfvxv_required)
|
2016-09-11 15:27:04 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_controller',0);
|
|
|
|
jQuery('#jform_php_controller').prop('required','required');
|
|
|
|
jQuery('#jform_php_controller').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_controller').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvyfvxv_required = false;
|
2016-09-11 15:27:04 +00:00
|
|
|
}
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_controller_list-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_controller_list field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvyfvxw_required)
|
2017-03-08 04:49:54 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_controller_list',0);
|
|
|
|
jQuery('#jform_php_controller_list').prop('required','required');
|
|
|
|
jQuery('#jform_php_controller_list').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_controller_list').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvyfvxw_required = false;
|
2017-03-08 04:49:54 +00:00
|
|
|
}
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_model-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_model field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvyfvxx_required)
|
2016-09-11 15:27:04 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_model',0);
|
|
|
|
jQuery('#jform_php_model').prop('required','required');
|
|
|
|
jQuery('#jform_php_model').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_model').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvyfvxx_required = false;
|
2017-03-08 04:49:54 +00:00
|
|
|
}
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_model_list-lbl').closest('.control-group').show();
|
2018-09-10 11:04:52 +00:00
|
|
|
// add required attribute to php_model_list field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (jform_vvvvvyfvxy_required)
|
2017-03-08 04:49:54 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_model_list',0);
|
|
|
|
jQuery('#jform_php_model_list').prop('required','required');
|
|
|
|
jQuery('#jform_php_model_list').attr('aria-required',true);
|
|
|
|
jQuery('#jform_php_model_list').addClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvyfvxy_required = false;
|
2016-09-11 15:27:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-10-12 00:50:14 +00:00
|
|
|
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_controller-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_controller field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvyfvxv_required)
|
2016-09-11 15:27:04 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_controller',1);
|
|
|
|
jQuery('#jform_php_controller').removeAttr('required');
|
|
|
|
jQuery('#jform_php_controller').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_controller').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvyfvxv_required = true;
|
2016-09-11 15:27:04 +00:00
|
|
|
}
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_controller_list-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_controller_list field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvyfvxw_required)
|
2017-03-08 04:49:54 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_controller_list',1);
|
|
|
|
jQuery('#jform_php_controller_list').removeAttr('required');
|
|
|
|
jQuery('#jform_php_controller_list').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_controller_list').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvyfvxw_required = true;
|
2017-03-08 04:49:54 +00:00
|
|
|
}
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_model-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_model field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvyfvxx_required)
|
2016-09-11 15:27:04 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_model',1);
|
|
|
|
jQuery('#jform_php_model').removeAttr('required');
|
|
|
|
jQuery('#jform_php_model').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_model').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvyfvxx_required = true;
|
2017-03-08 04:49:54 +00:00
|
|
|
}
|
2018-06-25 02:25:10 +00:00
|
|
|
jQuery('#jform_php_model_list-lbl').closest('.control-group').hide();
|
2018-09-10 11:04:52 +00:00
|
|
|
// remove required attribute from php_model_list field
|
2018-08-14 08:25:46 +00:00
|
|
|
if (!jform_vvvvvyfvxy_required)
|
2017-03-08 04:49:54 +00:00
|
|
|
{
|
|
|
|
updateFieldRequired('php_model_list',1);
|
|
|
|
jQuery('#jform_php_model_list').removeAttr('required');
|
|
|
|
jQuery('#jform_php_model_list').removeAttr('aria-required');
|
|
|
|
jQuery('#jform_php_model_list').removeClass('required');
|
2018-08-14 08:25:46 +00:00
|
|
|
jform_vvvvvyfvxy_required = true;
|
2016-09-11 15:27:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-30 20:28:43 +00:00
|
|
|
// update required fields
|
|
|
|
function updateFieldRequired(name,status)
|
|
|
|
{
|
|
|
|
var not_required = jQuery('#jform_not_required').val();
|
|
|
|
|
|
|
|
if(status == 1)
|
|
|
|
{
|
|
|
|
if (isSet(not_required) && not_required != 0)
|
|
|
|
{
|
|
|
|
not_required = not_required+','+name;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
not_required = ','+name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (isSet(not_required) && not_required != 0)
|
|
|
|
{
|
|
|
|
not_required = not_required.replace(','+name,'');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jQuery('#jform_not_required').val(not_required);
|
|
|
|
}
|
|
|
|
|
|
|
|
// the isSet function
|
|
|
|
function isSet(val)
|
|
|
|
{
|
|
|
|
if ((val != undefined) && (val != null) && 0 !== val.length){
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2018-03-11 02:44:43 +00:00
|
|
|
|
2016-05-04 23:14:20 +00:00
|
|
|
jQuery(document).ready(function()
|
2017-10-14 15:56:04 +00:00
|
|
|
{
|
2018-03-28 09:46:14 +00:00
|
|
|
// check if this view has alias field
|
|
|
|
checkAliasField();
|
2018-01-15 15:54:05 +00:00
|
|
|
// get the linked details
|
|
|
|
getLinked();
|
2017-10-12 23:14:17 +00:00
|
|
|
// set button
|
2017-10-14 15:56:04 +00:00
|
|
|
addButtonID('admin_fields','create_edit_buttons', 1); // <-- first
|
2016-05-04 23:14:20 +00:00
|
|
|
var valueSwitch = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
2018-01-23 22:05:57 +00:00
|
|
|
getDynamicScripts(valueSwitch);
|
2017-10-14 03:37:18 +00:00
|
|
|
// now load the fields
|
2017-10-26 16:43:51 +00:00
|
|
|
getAjaxDisplay('admin_fields');
|
|
|
|
getAjaxDisplay('admin_fields_conditions');
|
2018-05-22 19:01:36 +00:00
|
|
|
getAjaxDisplay('admin_fields_relations');
|
2017-10-14 15:56:04 +00:00
|
|
|
// set button
|
|
|
|
addButtonID('admin_fields_conditions','create_edit_buttons', 1); // <-- second
|
2017-10-26 16:43:51 +00:00
|
|
|
// set button to create more fields
|
2017-10-16 17:14:23 +00:00
|
|
|
addButton('field','create_edit_buttons'); // <-- third
|
2018-05-22 19:01:36 +00:00
|
|
|
// set button
|
|
|
|
addButtonID('admin_fields_relations','create_edit_buttons', 1); // <-- forth
|
2018-08-24 21:46:41 +00:00
|
|
|
// set button
|
|
|
|
addButtonID('admin_custom_tabs','addtabs-lbl', 1); // <-- fifth
|
2019-01-31 21:44:21 +00:00
|
|
|
// check and load all the customcode edit buttons
|
|
|
|
getEditCustomCodeButtons();
|
2016-05-04 23:14:20 +00:00
|
|
|
});
|
|
|
|
|
2018-03-28 09:46:14 +00:00
|
|
|
function checkAliasField() {
|
|
|
|
checkAliasField_server(1).done(function(result) {
|
|
|
|
if(result){
|
|
|
|
// remove the notice
|
|
|
|
jQuery('.note_create_edit_notice_p').remove();
|
|
|
|
} else {
|
|
|
|
// hide everything about alias management
|
|
|
|
jQuery('#jform_alias_builder_type').closest('.control-group').remove();
|
|
|
|
jQuery('#jform_alias_builder').closest('.control-group').remove();
|
|
|
|
jQuery('.note_alias_builder_default').closest('.control-group').remove();
|
|
|
|
jQuery('.note_alias_builder_custom').closest('.control-group').remove();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function checkAliasField_server(type){
|
2018-12-29 14:56:06 +00:00
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.checkAliasField&format=json&raw=true&vdm="+vastDevMod;
|
2018-03-28 09:46:14 +00:00
|
|
|
if(token.length > 0 && type > 0){
|
|
|
|
var request = 'token='+token+'&type=' + type;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2018-03-28 09:46:14 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
2018-03-28 09:46:14 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-10-26 16:43:51 +00:00
|
|
|
function getAjaxDisplay(type){
|
|
|
|
getAjaxDisplay_server(type).done(function(result) {
|
2017-10-14 03:37:18 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('#display_'+type).html(result);
|
|
|
|
}
|
2017-10-14 15:56:04 +00:00
|
|
|
// set button
|
|
|
|
addButtonID(type,'header_'+type+'_buttons', 2); // <-- little edit button
|
2017-10-14 03:37:18 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-10-26 16:43:51 +00:00
|
|
|
function getAjaxDisplay_server(type){
|
2018-12-29 14:56:06 +00:00
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getAjaxDisplay&format=json&raw=true&vdm="+vastDevMod;
|
2017-10-14 03:37:18 +00:00
|
|
|
if(token.length > 0 && type.length > 0){
|
|
|
|
var request = 'token='+token+'&type=' + type;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2017-10-14 03:37:18 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
2017-10-14 03:37:18 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-10-12 23:14:17 +00:00
|
|
|
function addData(result,where){
|
2017-10-26 16:43:51 +00:00
|
|
|
jQuery(result).insertAfter(jQuery(where).closest('.control-group'));
|
2017-10-12 23:14:17 +00:00
|
|
|
}
|
|
|
|
|
2016-01-30 20:28:43 +00:00
|
|
|
function getTableColumns_server(tableName){
|
2018-12-29 14:56:06 +00:00
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.tableColumns&format=json&raw=true&vdm="+vastDevMod;
|
2016-01-30 20:28:43 +00:00
|
|
|
if(token.length > 0 && tableName.length > 0){
|
|
|
|
var request = 'token='+token+'&table='+tableName;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2016-01-30 20:28:43 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2017-10-12 00:50:14 +00:00
|
|
|
function getTableColumns(fieldKey, table_, nr_){
|
|
|
|
// first check if the field is set
|
|
|
|
if(jQuery("#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_table").length) {
|
|
|
|
// get options
|
|
|
|
var tableName = jQuery("#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_table option:selected").val();
|
|
|
|
getTableColumns_server(tableName).done(function(result) {
|
|
|
|
if(result){
|
|
|
|
jQuery("textarea#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_sourcemap").val(result);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery("textarea#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_sourcemap").val('');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
|
|
|
|
2018-01-23 22:05:57 +00:00
|
|
|
function getDynamicScripts_server(typpe){
|
2018-12-29 14:56:06 +00:00
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicScripts&format=json&raw=true&vdm="+vastDevMod;
|
2016-05-04 04:53:33 +00:00
|
|
|
if(token.length > 0 && typpe.length > 0){
|
|
|
|
var request = 'token='+token+'&type='+typpe;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
2018-12-29 14:56:06 +00:00
|
|
|
dataType: 'json',
|
2016-05-04 04:53:33 +00:00
|
|
|
data: request,
|
2018-12-29 14:56:06 +00:00
|
|
|
jsonp: false
|
2016-05-04 04:53:33 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2018-01-23 22:05:57 +00:00
|
|
|
function getDynamicScripts(id){
|
2016-05-04 04:53:33 +00:00
|
|
|
if (1 == id) {
|
|
|
|
// get the current values
|
2016-05-20 05:00:31 +00:00
|
|
|
var current_import_display = jQuery('textarea#jform_php_import_display').val();
|
2016-05-04 23:14:20 +00:00
|
|
|
var current_import = jQuery('textarea#jform_php_import').val();
|
2018-01-17 23:14:43 +00:00
|
|
|
var current_headers = jQuery('textarea#jform_php_import_headers').val();
|
2016-05-04 04:53:33 +00:00
|
|
|
var current_setdata = jQuery('textarea#jform_php_import_setdata').val();
|
|
|
|
var current_save = jQuery('textarea#jform_php_import_save').val();
|
|
|
|
var current_view = jQuery('textarea#jform_html_import_view').val();
|
2017-03-27 12:38:51 +00:00
|
|
|
var current_ext = jQuery('textarea#jform_php_import_ext').val();
|
2016-05-20 05:00:31 +00:00
|
|
|
// set the display method script
|
|
|
|
if(current_import_display.length == 0){
|
2018-01-23 22:05:57 +00:00
|
|
|
getDynamicScripts_server('display').done(function(result) {
|
2016-05-20 05:00:31 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_php_import_display').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// set the import method script
|
2016-05-04 23:14:20 +00:00
|
|
|
if(current_import.length == 0){
|
2018-01-23 22:05:57 +00:00
|
|
|
getDynamicScripts_server('import').done(function(result) {
|
2016-05-04 23:14:20 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_php_import').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2018-01-17 23:14:43 +00:00
|
|
|
// set the headers method script
|
|
|
|
if(current_headers.length == 0){
|
2018-01-23 22:05:57 +00:00
|
|
|
getDynamicScripts_server('headers').done(function(result) {
|
2018-01-17 23:14:43 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_php_import_headers').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2016-05-04 23:14:20 +00:00
|
|
|
// set the setData method script
|
2016-05-04 04:53:33 +00:00
|
|
|
if(current_setdata.length == 0){
|
2018-01-23 22:05:57 +00:00
|
|
|
getDynamicScripts_server('setdata').done(function(result) {
|
2016-05-04 04:53:33 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_php_import_setdata').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// set the save method script
|
|
|
|
if(current_save.length == 0){
|
2018-01-23 22:05:57 +00:00
|
|
|
getDynamicScripts_server('save').done(function(result) {
|
2016-05-04 04:53:33 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_php_import_save').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
// set the view script
|
|
|
|
if(current_view.length == 0){
|
2018-01-23 22:05:57 +00:00
|
|
|
getDynamicScripts_server('view').done(function(result) {
|
2016-05-04 04:53:33 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_html_import_view').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2017-03-27 12:38:51 +00:00
|
|
|
// set the import ext script
|
|
|
|
if(current_ext.length == 0){
|
2018-01-23 22:05:57 +00:00
|
|
|
getDynamicScripts_server('ext').done(function(result) {
|
2017-03-27 12:38:51 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('textarea#jform_php_import_ext').val(result);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function getEditCustomCodeButtons_server(id){
|
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getEditCustomCodeButtons&format=json&raw=true&vdm="+vastDevMod;
|
|
|
|
if(token.length > 0 && id > 0){
|
|
|
|
var request = 'token='+token+'&id='+id+'&return_here='+return_here;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'json',
|
|
|
|
data: request,
|
|
|
|
jsonp: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getEditCustomCodeButtons(){
|
|
|
|
// get the id
|
|
|
|
id = jQuery("#jform_id").val();
|
|
|
|
getEditCustomCodeButtons_server(id).done(function(result) {
|
|
|
|
if(isObject(result)){
|
|
|
|
jQuery.each(result, function( field, buttons ) {
|
|
|
|
jQuery('<div class="control-group"><div class="control-label"><label>Edit Customcode</label></div><div class="controls control-customcode-buttons-'+field+'"></div></div>').insertBefore(".control-wrapper-"+ field);
|
|
|
|
jQuery.each(buttons, function( name, button ) {
|
|
|
|
jQuery(".control-customcode-buttons-"+field).append(button);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// check object is not empty
|
|
|
|
function isObject(obj) {
|
|
|
|
for(var prop in obj) {
|
|
|
|
if (Object.prototype.hasOwnProperty.call(obj, prop)) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function addButtonID_server(type, size){
|
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getButtonID&format=json&raw=true&vdm="+vastDevMod);
|
|
|
|
if(token.length > 0 && type.length > 0 && size > 0){
|
|
|
|
var request = 'token='+token+'&type='+type+'&size='+size;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'json',
|
|
|
|
data: request,
|
|
|
|
jsonp: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function addButtonID(type, where, size){
|
|
|
|
addButtonID_server(type, size).done(function(result) {
|
|
|
|
if(result){
|
|
|
|
if (2 == size) {
|
|
|
|
jQuery('#'+where).html(result);
|
|
|
|
} else {
|
|
|
|
addData(result, '#jform_'+where);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function addButton_server(type, size){
|
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getButton&format=json&raw=true&vdm="+vastDevMod);
|
|
|
|
if(token.length > 0 && type.length > 0){
|
|
|
|
var request = 'token='+token+'&type='+type+'&size='+size;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'json',
|
|
|
|
data: request,
|
|
|
|
jsonp: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
function addButton(type, where, size){
|
|
|
|
// just to insure that default behaviour still works
|
|
|
|
size = typeof size !== 'undefined' ? size : 1;
|
|
|
|
addButton_server(type, size).done(function(result) {
|
|
|
|
if(result){
|
|
|
|
if (2 == size) {
|
|
|
|
jQuery('#'+where).html(result);
|
|
|
|
} else {
|
|
|
|
addData(result, '#jform_'+where);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
function getLinked_server(type){
|
|
|
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLinked&format=json&raw=true&vdm="+vastDevMod;
|
|
|
|
if(token.length > 0 && type > 0){
|
|
|
|
var request = 'token='+token+'&type='+type;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'json',
|
|
|
|
data: request,
|
|
|
|
jsonp: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function getLinked(){
|
|
|
|
getLinked_server(1).done(function(result) {
|
|
|
|
if(result){
|
|
|
|
jQuery('#display_linked_to').html(result);
|
|
|
|
}
|
|
|
|
});
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|