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>
|
2020-02-17 20:01:02 +00:00
|
|
|
* @copyright Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved.
|
2018-05-18 06:28:27 +00:00
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Some Global Values
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvvzvvwj_required = false;
|
|
|
|
jform_vvvvvzwvwk_required = false;
|
|
|
|
jform_vvvvwaavwl_required = false;
|
|
|
|
jform_vvvvwaavwm_required = false;
|
2019-12-03 02:17:35 +00:00
|
|
|
jform_vvvvwaavwn_required = false;
|
|
|
|
jform_vvvvwaavwo_required = false;
|
|
|
|
jform_vvvvwaavwp_required = false;
|
|
|
|
jform_vvvvwaavwq_required = false;
|
|
|
|
jform_vvvvwaavwr_required = false;
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Initial Script
|
|
|
|
jQuery(document).ready(function()
|
|
|
|
{
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_css_view_vvvvvyv = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
|
|
|
vvvvvyv(add_css_view_vvvvvyv);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_css_views_vvvvvyw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
|
|
|
vvvvvyw(add_css_views_vvvvvyw);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_javascript_view_file_vvvvvyx = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
|
|
|
vvvvvyx(add_javascript_view_file_vvvvvyx);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_javascript_views_file_vvvvvyy = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
|
|
|
vvvvvyy(add_javascript_views_file_vvvvvyy);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_javascript_view_footer_vvvvvyz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
|
|
|
vvvvvyz(add_javascript_view_footer_vvvvvyz);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_javascript_views_footer_vvvvvza = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
|
|
|
vvvvvza(add_javascript_views_footer_vvvvvza);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
|
|
|
vvvvvzb(add_php_ajax_vvvvvzb);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_getitem_vvvvvzc = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
|
|
|
vvvvvzc(add_php_getitem_vvvvvzc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_getitems_vvvvvzd = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
|
|
|
vvvvvzd(add_php_getitems_vvvvvzd);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_getitems_after_all_vvvvvze = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
|
|
|
vvvvvze(add_php_getitems_after_all_vvvvvze);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_getlistquery_vvvvvzf = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
|
|
|
vvvvvzf(add_php_getlistquery_vvvvvzf);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_getform_vvvvvzg = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
|
|
|
vvvvvzg(add_php_getform_vvvvvzg);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_before_save_vvvvvzh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
|
|
|
vvvvvzh(add_php_before_save_vvvvvzh);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_save_vvvvvzi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
|
|
|
vvvvvzi(add_php_save_vvvvvzi);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_postsavehook_vvvvvzj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
|
|
|
vvvvvzj(add_php_postsavehook_vvvvvzj);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_allowadd_vvvvvzk = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
|
|
|
vvvvvzk(add_php_allowadd_vvvvvzk);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_allowedit_vvvvvzl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
|
|
|
vvvvvzl(add_php_allowedit_vvvvvzl);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_before_cancel_vvvvvzm = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
|
|
|
vvvvvzm(add_php_before_cancel_vvvvvzm);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_after_cancel_vvvvvzn = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
|
|
|
vvvvvzn(add_php_after_cancel_vvvvvzn);
|
2016-03-04 20:58:05 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_batchcopy_vvvvvzo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
|
|
|
vvvvvzo(add_php_batchcopy_vvvvvzo);
|
2016-04-22 21:32:02 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_batchmove_vvvvvzp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
|
|
|
vvvvvzp(add_php_batchmove_vvvvvzp);
|
2016-09-07 21:20:58 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_before_publish_vvvvvzq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
|
|
|
vvvvvzq(add_php_before_publish_vvvvvzq);
|
2016-09-03 21:44:47 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_after_publish_vvvvvzr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
|
|
|
vvvvvzr(add_php_after_publish_vvvvvzr);
|
2016-12-30 10:47:19 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_before_delete_vvvvvzs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
|
|
|
vvvvvzs(add_php_before_delete_vvvvvzs);
|
2018-03-09 03:26:44 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_after_delete_vvvvvzt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
|
|
|
vvvvvzt(add_php_after_delete_vvvvvzt);
|
2018-01-15 15:54:05 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
|
|
|
vvvvvzu(add_php_document_vvvvvzu);
|
2018-05-11 04:08:14 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_sql_vvvvvzv = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
|
|
|
vvvvvzv(add_sql_vvvvvzv);
|
2019-05-15 17:39:27 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
|
|
|
|
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
|
|
|
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
|
2019-07-15 20:00:46 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
|
|
|
|
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
|
|
|
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
|
2019-06-12 20:06:19 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_custom_import_vvvvwaa = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
|
|
|
vvvvwaa(add_custom_import_vvvvwaa);
|
2019-06-12 20:36:05 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_custom_import_vvvvwab = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
|
|
|
vvvvwab(add_custom_import_vvvvwab);
|
2019-08-08 15:35:58 +00:00
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
var add_custom_button_vvvvwac = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
|
|
|
vvvvwac(add_custom_button_vvvvwac);
|
2016-01-30 20:28:43 +00:00
|
|
|
});
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvyv function
|
|
|
|
function vvvvvyv(add_css_view_vvvvvyv)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_css_view_vvvvvyv == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvyw function
|
|
|
|
function vvvvvyw(add_css_views_vvvvvyw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_css_views_vvvvvyw == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvyx function
|
|
|
|
function vvvvvyx(add_javascript_view_file_vvvvvyx)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_javascript_view_file_vvvvvyx == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvyy function
|
|
|
|
function vvvvvyy(add_javascript_views_file_vvvvvyy)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_javascript_views_file_vvvvvyy == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvyz function
|
|
|
|
function vvvvvyz(add_javascript_view_footer_vvvvvyz)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_javascript_view_footer_vvvvvyz == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvza function
|
|
|
|
function vvvvvza(add_javascript_views_footer_vvvvvza)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_javascript_views_footer_vvvvvza == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzb function
|
|
|
|
function vvvvvzb(add_php_ajax_vvvvvzb)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_ajax_vvvvvzb == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzc function
|
|
|
|
function vvvvvzc(add_php_getitem_vvvvvzc)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_getitem_vvvvvzc == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzd function
|
|
|
|
function vvvvvzd(add_php_getitems_vvvvvzd)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_getitems_vvvvvzd == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvze function
|
|
|
|
function vvvvvze(add_php_getitems_after_all_vvvvvze)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_getitems_after_all_vvvvvze == 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();
|
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();
|
2016-09-03 21:44:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzf function
|
|
|
|
function vvvvvzf(add_php_getlistquery_vvvvvzf)
|
2016-09-03 21:44:47 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_getlistquery_vvvvvzf == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzg function
|
|
|
|
function vvvvvzg(add_php_getform_vvvvvzg)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_getform_vvvvvzg == 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();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_getform-lbl').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzh function
|
|
|
|
function vvvvvzh(add_php_before_save_vvvvvzh)
|
2018-07-06 13:46:30 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_before_save_vvvvvzh == 1)
|
2018-07-06 13:46:30 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_save-lbl').closest('.control-group').show();
|
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();
|
2017-09-13 00:37:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzi function
|
|
|
|
function vvvvvzi(add_php_save_vvvvvzi)
|
2017-09-13 00:37:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_save_vvvvvzi == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzj function
|
|
|
|
function vvvvvzj(add_php_postsavehook_vvvvvzj)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_postsavehook_vvvvvzj == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzk function
|
|
|
|
function vvvvvzk(add_php_allowadd_vvvvvzk)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_allowadd_vvvvvzk == 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();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_allowadd-lbl').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzl function
|
|
|
|
function vvvvvzl(add_php_allowedit_vvvvvzl)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_allowedit_vvvvvzl == 1)
|
2018-08-14 08:25:46 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_allowedit-lbl').closest('.control-group').show();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzm function
|
|
|
|
function vvvvvzm(add_php_before_cancel_vvvvvzm)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_before_cancel_vvvvvzm == 1)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_before_cancel-lbl').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzn function
|
|
|
|
function vvvvvzn(add_php_after_cancel_vvvvvzn)
|
2019-06-12 20:06:19 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_after_cancel_vvvvvzn == 1)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
jQuery('#jform_php_after_cancel-lbl').closest('.control-group').hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzo function
|
|
|
|
function vvvvvzo(add_php_batchcopy_vvvvvzo)
|
2019-06-12 20:36:05 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_batchcopy_vvvvvzo == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzp function
|
|
|
|
function vvvvvzp(add_php_batchmove_vvvvvzp)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_batchmove_vvvvvzp == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzq function
|
|
|
|
function vvvvvzq(add_php_before_publish_vvvvvzq)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_before_publish_vvvvvzq == 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();
|
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();
|
2016-09-07 21:20:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzr function
|
|
|
|
function vvvvvzr(add_php_after_publish_vvvvvzr)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_after_publish_vvvvvzr == 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();
|
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();
|
2016-09-07 21:20:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzs function
|
|
|
|
function vvvvvzs(add_php_before_delete_vvvvvzs)
|
2016-09-07 21:20:58 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_before_delete_vvvvvzs == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzt function
|
|
|
|
function vvvvvzt(add_php_after_delete_vvvvvzt)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_after_delete_vvvvvzt == 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();
|
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();
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzu function
|
|
|
|
function vvvvvzu(add_php_document_vvvvvzu)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_php_document_vvvvvzu == 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();
|
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();
|
2016-04-22 21:32:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzv function
|
|
|
|
function vvvvvzv(add_sql_vvvvvzv)
|
2016-04-22 21:32:02 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_sql_vvvvvzv == 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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvvzvvwj_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvvzvvwj_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvvzvvwj_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvvzvvwj_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzw function
|
|
|
|
function vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (source_vvvvvzw == 2 && add_sql_vvvvvzw == 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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvvzwvwk_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvvzwvwk_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvvzwvwk_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvvzwvwk_required = true;
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvvzy function
|
|
|
|
function vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy)
|
2016-01-30 20:28:43 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (source_vvvvvzy == 1 && add_sql_vvvvvzy == 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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvwaa function
|
|
|
|
function vvvvwaa(add_custom_import_vvvvwaa)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_custom_import_vvvvwaa == 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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvwaavwl_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwl_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvwaavwm_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwm_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvwaavwn_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwn_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvwaavwo_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwo_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvwaavwp_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwp_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvwaavwq_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwq_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (jform_vvvvwaavwr_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwr_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvwaavwl_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwl_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvwaavwm_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwm_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvwaavwn_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwn_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvwaavwo_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwo_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvwaavwp_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwp_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvwaavwq_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwq_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
|
2020-02-04 23:18:34 +00:00
|
|
|
if (!jform_vvvvwaavwr_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');
|
2020-02-04 23:18:34 +00:00
|
|
|
jform_vvvvwaavwr_required = true;
|
2016-05-04 04:53:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvwab function
|
|
|
|
function vvvvwab(add_custom_import_vvvvwab)
|
2016-05-04 04:53:33 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_custom_import_vvvvwab == 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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-12-03 02:17:35 +00:00
|
|
|
// the vvvvwac function
|
|
|
|
function vvvvwac(add_custom_button_vvvvwac)
|
2016-09-11 15:27:04 +00:00
|
|
|
{
|
|
|
|
// set the function logic
|
2019-12-03 02:17:35 +00:00
|
|
|
if (add_custom_button_vvvvwac == 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();
|
|
|
|
jQuery('#jform_php_controller_list-lbl').closest('.control-group').show();
|
|
|
|
jQuery('#jform_php_model-lbl').closest('.control-group').show();
|
|
|
|
jQuery('#jform_php_model_list-lbl').closest('.control-group').show();
|
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();
|
|
|
|
jQuery('#jform_php_controller_list-lbl').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_php_model-lbl').closest('.control-group').hide();
|
|
|
|
jQuery('#jform_php_model_list-lbl').closest('.control-group').hide();
|
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() {
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'type', 'type', 'checkAliasField').done(function(result) {
|
2018-03-28 09:46:14 +00:00
|
|
|
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){
|
2019-07-08 16:05:54 +00:00
|
|
|
var getUrl = JRouter("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){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&type=' + type;
|
2018-03-28 09:46:14 +00:00
|
|
|
}
|
|
|
|
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){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, type, 'type', 'getAjaxDisplay').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-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
|
|
|
}
|
|
|
|
|
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();
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, tableName, 'table', 'tableColumns').done(function(result) {
|
2017-10-12 00:50:14 +00:00
|
|
|
if(result){
|
|
|
|
jQuery("textarea#jform_addtables_"+table_+"addtables"+fieldKey+nr_+"_sourcemap").val(result);
|
2019-12-10 23:18:55 +00:00
|
|
|
} else {
|
2017-10-12 00:50:14 +00:00
|
|
|
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(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){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'display', 'type', 'getDynamicScripts').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){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'import', 'type', 'getDynamicScripts').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){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'headers', 'type', 'getDynamicScripts').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){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'setdata', 'type', 'getDynamicScripts').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){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'save', 'type', 'getDynamicScripts').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){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'view', 'type', 'getDynamicScripts').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){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'ext', 'type', 'getDynamicScripts').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
|
|
|
}
|
|
|
|
|
2019-12-10 23:18:55 +00:00
|
|
|
function getCodeFrom_server(id, type, type_name, callingName){
|
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax." + callingName + "&format=json&raw=true&vdm="+vastDevMod);
|
|
|
|
if(token.length > 0 && id > 0 && type.length > 0) {
|
|
|
|
var request = token + '=1&' + type_name + '=' + type + '&id=' + id;
|
|
|
|
}
|
|
|
|
return jQuery.ajax({
|
|
|
|
type: 'GET',
|
|
|
|
url: getUrl,
|
|
|
|
dataType: 'json',
|
|
|
|
data: request,
|
|
|
|
jsonp: false
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-01-31 21:44:21 +00:00
|
|
|
function getEditCustomCodeButtons_server(id){
|
2019-07-08 16:05:54 +00:00
|
|
|
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getEditCustomCodeButtons&format=json&raw=true&vdm="+vastDevMod);
|
2019-01-31 21:44:21 +00:00
|
|
|
if(token.length > 0 && id > 0){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&id='+id+'&return_here='+return_here;
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
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 ) {
|
2019-05-15 22:50:45 +00:00
|
|
|
jQuery('<div class="control-group"><div class="control-label"><label>Add/Edit Customcode</label></div><div class="controls control-customcode-buttons-'+field+'"></div></div>').insertBefore(".control-wrapper-"+ field);
|
2019-01-31 21:44:21 +00:00
|
|
|
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){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&type='+type+'&size='+size;
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
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){
|
2019-07-08 16:05:54 +00:00
|
|
|
var request = token+'=1&type='+type+'&size='+size;
|
2019-01-31 21:44:21 +00:00
|
|
|
}
|
|
|
|
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(){
|
2019-12-10 23:18:55 +00:00
|
|
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').done(function(result) {
|
2019-01-31 21:44:21 +00:00
|
|
|
if(result){
|
|
|
|
jQuery('#display_linked_to').html(result);
|
|
|
|
}
|
|
|
|
});
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|