Files
Component-Builder/admin/tmpl/admin_view/default.php
T
Robot 2fe5f4b174 Release of v6.1.6
Add Health Check buttons to the JCB Compiler and Component list view to verify system PHP configuration. Add the Toolbar Custom Buttons subform to the Global Subform settings for improved usability and presentation. Fix the Field edit view to ensure full compliance with Joomla 6 standards and updated UI/UX conventions. Begin migration from UIkit to Bootstrap 5 to align JCB with Joomla 6+ standards. Complete Bootstrap 5 refactor of all primary views and core UI. Continue phased removal of UIkit with full transition planned for upcoming releases. Fix deprecated JText usage in Admin Custom Tabs area for Joomla 5+ compatibility. #1302. Fix snippet loading for Joomla 6, improving reliability and removing legacy UIkit dependencies during migration. Introduced strict version-aware compilation to ensure libraries are only included when explicitly defined for Joomla 6. Disabled automatic UIkit injection for Joomla 6, preventing auto-loading across custom admin views, site views, templates, and layouts. Migrate Search view for J6 to use Bootstrap and Joomla-native HTML and JavaScript. Remove all manually linked Bootstrap v4 assets from the component. Improve subform ordering fields for clearer display and better readability. Refactor the JavaScript waiting spinner to use solid, native JavaScript with improved page-loading handling.
2026-05-21 20:49:33 +00:00

788 lines
27 KiB
PHP

<?php
/**
* @package Joomla.Component.Builder
*
* @created 30th April, 2015
* @author Llewellyn van der Merwe <https://dev.vdm.io>
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
use Joomla\CMS\Uri\Uri;
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->getDocument()->getWebAssetManager();
$wa->useScript('keepalive')->useScript('form.validate');
Html::_('bootstrap.tooltip');
// No direct access to this file
defined('_JEXEC') or die;
$layout = $this->isModal ? 'modal' : 'edit';
$tmpl = $this->input->get('tmpl');
$tmpl = $tmpl ? '&tmpl=' . $tmpl : '';
?>
<script type="text/javascript">
(function() {
// create loading overlay
var loadingDiv = document.createElement('div');
loadingDiv.id = 'loading';
loadingDiv.style.position = 'fixed';
loadingDiv.style.top = '0';
loadingDiv.style.left = '0';
loadingDiv.style.right = '0';
loadingDiv.style.bottom = '0';
loadingDiv.style.width = '100%';
loadingDiv.style.height = '100%';
loadingDiv.style.background = "rgba(255,255,255,0.8) url('components/com_componentbuilder/assets/images/ajax.gif') 50% 35% no-repeat";
loadingDiv.style.opacity = '0.8';
loadingDiv.style.zIndex = '9999';
loadingDiv.style.display = 'block';
loadingDiv.style.msFilter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
loadingDiv.style.filter = "alpha(opacity=80)";
document.body.appendChild(loadingDiv);
// remove overlay when page fully loaded
window.addEventListener('load', function() {
var componentLoader = document.getElementById('componentbuilder_loader');
if (componentLoader) componentLoader.style.display = 'block';
loadingDiv.style.display = 'none';
});
})();
</script>
<div id="componentbuilder_loader" style="display: none;">
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=admin_view&layout=' . $layout . $tmpl . '&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
<?php echo LayoutHelper::render('admin_view.details_above', $this); ?>
<div class="main-card">
<?php echo Html::_('uitab.startTabSet', 'admin_viewTab', ['active' => 'details', 'recall' => true]); ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'details', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_DETAILS', true)); ?>
<div class="row">
<div class="col-md-6">
<?php echo LayoutHelper::render('admin_view.details_left', $this); ?>
</div>
<div class="col-md-6">
<?php echo LayoutHelper::render('admin_view.details_right', $this); ?>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.details_fullwidth', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'settings', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_SETTINGS', true)); ?>
<div class="row">
</div>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.settings_fullwidth', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'fields', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_FIELDS', true)); ?>
<div class="row">
<div class="col-md-6">
<?php echo LayoutHelper::render('admin_view.fields_left', $this); ?>
</div>
<div class="col-md-6">
<?php echo LayoutHelper::render('admin_view.fields_right', $this); ?>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.fields_fullwidth', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'css', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_CSS', true)); ?>
<div class="row">
</div>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.css_fullwidth', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'javascript', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT', true)); ?>
<div class="row">
</div>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.javascript_fullwidth', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'toolbar', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_TOOLBAR', true)); ?>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.toolbar_left', $this); ?>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.toolbar_fullwidth', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'php', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_PHP', true)); ?>
<div class="row">
</div>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.php_fullwidth', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'mysql', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL', true)); ?>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.mysql_left', $this); ?>
</div>
</div>
<div class="row">
<div class="col-md-12">
<?php echo LayoutHelper::render('admin_view.mysql_fullwidth', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php $this->ignore_fieldsets = array('details','metadata','vdmmetadata','accesscontrol'); ?>
<?php $this->tab_name = 'admin_viewTab'; ?>
<?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
<?php if ($this->canDo->get('admin_view.edit.created_by') || $this->canDo->get('admin_view.edit.created') || $this->canDo->get('admin_view.edit.state') || ($this->canDo->get('admin_view.delete') && $this->canDo->get('admin_view.edit.state'))) : ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'publishing', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_PUBLISHING', true)); ?>
<div class="row">
<div class="col-md-6">
<?php echo LayoutHelper::render('admin_view.publishing', $this); ?>
</div>
<div class="col-md-6">
<?php echo LayoutHelper::render('admin_view.publlshing', $this); ?>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php endif; ?>
<?php if ($this->canDo->get('core.admin')) : ?>
<?php echo Html::_('uitab.addTab', 'admin_viewTab', 'permissions', Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION', true)); ?>
<div class="row">
<div class="col-md-12">
<fieldset id="fieldset-rules" class="options-form">
<legend><?php echo Text::_('COM_COMPONENTBUILDER_ADMIN_VIEW_PERMISSION'); ?></legend>
<div>
<?php echo $this->form->getInput('rules'); ?>
</div>
</fieldset>
</div>
</div>
<?php echo Html::_('uitab.endTab'); ?>
<?php endif; ?>
<?php echo Html::_('uitab.endTabSet'); ?>
<div>
<input type="hidden" name="task" value="admin_view.edit" />
<?php echo Html::_('form.token'); ?>
</div>
</div>
<div class="clearfix"></div>
<?php echo LayoutHelper::render('admin_view.details_under', $this); ?>
</form>
</div>
<script type="text/javascript">
// #jform_add_css_view listeners for add_css_view_vvvvvxf function
jQuery('#jform_add_css_view').on('keyup',function()
{
var add_css_view_vvvvvxf = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvxf(add_css_view_vvvvvxf);
});
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
{
e.preventDefault();
var add_css_view_vvvvvxf = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvxf(add_css_view_vvvvvxf);
});
// #jform_add_css_views listeners for add_css_views_vvvvvxg function
jQuery('#jform_add_css_views').on('keyup',function()
{
var add_css_views_vvvvvxg = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvxg(add_css_views_vvvvvxg);
});
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
{
e.preventDefault();
var add_css_views_vvvvvxg = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvxg(add_css_views_vvvvvxg);
});
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvxh function
jQuery('#jform_add_javascript_view_file').on('keyup',function()
{
var add_javascript_view_file_vvvvvxh = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
vvvvvxh(add_javascript_view_file_vvvvvxh);
});
jQuery('#adminForm').on('change', '#jform_add_javascript_view_file',function (e)
{
e.preventDefault();
var add_javascript_view_file_vvvvvxh = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
vvvvvxh(add_javascript_view_file_vvvvvxh);
});
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvxi function
jQuery('#jform_add_javascript_views_file').on('keyup',function()
{
var add_javascript_views_file_vvvvvxi = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
vvvvvxi(add_javascript_views_file_vvvvvxi);
});
jQuery('#adminForm').on('change', '#jform_add_javascript_views_file',function (e)
{
e.preventDefault();
var add_javascript_views_file_vvvvvxi = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
vvvvvxi(add_javascript_views_file_vvvvvxi);
});
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvxj function
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
{
var add_javascript_view_footer_vvvvvxj = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvxj(add_javascript_view_footer_vvvvvxj);
});
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
{
e.preventDefault();
var add_javascript_view_footer_vvvvvxj = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvxj(add_javascript_view_footer_vvvvvxj);
});
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvxk function
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
{
var add_javascript_views_footer_vvvvvxk = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvxk(add_javascript_views_footer_vvvvvxk);
});
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
{
e.preventDefault();
var add_javascript_views_footer_vvvvvxk = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvxk(add_javascript_views_footer_vvvvvxk);
});
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvxl function
jQuery('#jform_add_php_ajax').on('keyup',function()
{
var add_php_ajax_vvvvvxl = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvxl(add_php_ajax_vvvvvxl);
});
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
{
e.preventDefault();
var add_php_ajax_vvvvvxl = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvxl(add_php_ajax_vvvvvxl);
});
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvxm function
jQuery('#jform_add_php_getitem').on('keyup',function()
{
var add_php_getitem_vvvvvxm = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
vvvvvxm(add_php_getitem_vvvvvxm);
});
jQuery('#adminForm').on('change', '#jform_add_php_getitem',function (e)
{
e.preventDefault();
var add_php_getitem_vvvvvxm = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
vvvvvxm(add_php_getitem_vvvvvxm);
});
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvxn function
jQuery('#jform_add_php_getitems').on('keyup',function()
{
var add_php_getitems_vvvvvxn = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
vvvvvxn(add_php_getitems_vvvvvxn);
});
jQuery('#adminForm').on('change', '#jform_add_php_getitems',function (e)
{
e.preventDefault();
var add_php_getitems_vvvvvxn = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
vvvvvxn(add_php_getitems_vvvvvxn);
});
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvxo function
jQuery('#jform_add_php_getitems_after_all').on('keyup',function()
{
var add_php_getitems_after_all_vvvvvxo = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
vvvvvxo(add_php_getitems_after_all_vvvvvxo);
});
jQuery('#adminForm').on('change', '#jform_add_php_getitems_after_all',function (e)
{
e.preventDefault();
var add_php_getitems_after_all_vvvvvxo = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
vvvvvxo(add_php_getitems_after_all_vvvvvxo);
});
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvxp function
jQuery('#jform_add_php_getlistquery').on('keyup',function()
{
var add_php_getlistquery_vvvvvxp = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
vvvvvxp(add_php_getlistquery_vvvvvxp);
});
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
{
e.preventDefault();
var add_php_getlistquery_vvvvvxp = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
vvvvvxp(add_php_getlistquery_vvvvvxp);
});
// #jform_add_php_getform listeners for add_php_getform_vvvvvxq function
jQuery('#jform_add_php_getform').on('keyup',function()
{
var add_php_getform_vvvvvxq = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
vvvvvxq(add_php_getform_vvvvvxq);
});
jQuery('#adminForm').on('change', '#jform_add_php_getform',function (e)
{
e.preventDefault();
var add_php_getform_vvvvvxq = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
vvvvvxq(add_php_getform_vvvvvxq);
});
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvxr function
jQuery('#jform_add_php_before_save').on('keyup',function()
{
var add_php_before_save_vvvvvxr = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
vvvvvxr(add_php_before_save_vvvvvxr);
});
jQuery('#adminForm').on('change', '#jform_add_php_before_save',function (e)
{
e.preventDefault();
var add_php_before_save_vvvvvxr = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
vvvvvxr(add_php_before_save_vvvvvxr);
});
// #jform_add_php_save listeners for add_php_save_vvvvvxs function
jQuery('#jform_add_php_save').on('keyup',function()
{
var add_php_save_vvvvvxs = jQuery("#jform_add_php_save input[type='radio']:checked").val();
vvvvvxs(add_php_save_vvvvvxs);
});
jQuery('#adminForm').on('change', '#jform_add_php_save',function (e)
{
e.preventDefault();
var add_php_save_vvvvvxs = jQuery("#jform_add_php_save input[type='radio']:checked").val();
vvvvvxs(add_php_save_vvvvvxs);
});
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvxt function
jQuery('#jform_add_php_postsavehook').on('keyup',function()
{
var add_php_postsavehook_vvvvvxt = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
vvvvvxt(add_php_postsavehook_vvvvvxt);
});
jQuery('#adminForm').on('change', '#jform_add_php_postsavehook',function (e)
{
e.preventDefault();
var add_php_postsavehook_vvvvvxt = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
vvvvvxt(add_php_postsavehook_vvvvvxt);
});
// #jform_add_php_allowadd listeners for add_php_allowadd_vvvvvxu function
jQuery('#jform_add_php_allowadd').on('keyup',function()
{
var add_php_allowadd_vvvvvxu = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
vvvvvxu(add_php_allowadd_vvvvvxu);
});
jQuery('#adminForm').on('change', '#jform_add_php_allowadd',function (e)
{
e.preventDefault();
var add_php_allowadd_vvvvvxu = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
vvvvvxu(add_php_allowadd_vvvvvxu);
});
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvxv function
jQuery('#jform_add_php_allowedit').on('keyup',function()
{
var add_php_allowedit_vvvvvxv = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvxv(add_php_allowedit_vvvvvxv);
});
jQuery('#adminForm').on('change', '#jform_add_php_allowedit',function (e)
{
e.preventDefault();
var add_php_allowedit_vvvvvxv = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvxv(add_php_allowedit_vvvvvxv);
});
// #jform_add_php_before_cancel listeners for add_php_before_cancel_vvvvvxw function
jQuery('#jform_add_php_before_cancel').on('keyup',function()
{
var add_php_before_cancel_vvvvvxw = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
vvvvvxw(add_php_before_cancel_vvvvvxw);
});
jQuery('#adminForm').on('change', '#jform_add_php_before_cancel',function (e)
{
e.preventDefault();
var add_php_before_cancel_vvvvvxw = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
vvvvvxw(add_php_before_cancel_vvvvvxw);
});
// #jform_add_php_after_cancel listeners for add_php_after_cancel_vvvvvxx function
jQuery('#jform_add_php_after_cancel').on('keyup',function()
{
var add_php_after_cancel_vvvvvxx = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
vvvvvxx(add_php_after_cancel_vvvvvxx);
});
jQuery('#adminForm').on('change', '#jform_add_php_after_cancel',function (e)
{
e.preventDefault();
var add_php_after_cancel_vvvvvxx = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
vvvvvxx(add_php_after_cancel_vvvvvxx);
});
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvxy function
jQuery('#jform_add_php_batchcopy').on('keyup',function()
{
var add_php_batchcopy_vvvvvxy = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
vvvvvxy(add_php_batchcopy_vvvvvxy);
});
jQuery('#adminForm').on('change', '#jform_add_php_batchcopy',function (e)
{
e.preventDefault();
var add_php_batchcopy_vvvvvxy = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
vvvvvxy(add_php_batchcopy_vvvvvxy);
});
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvxz function
jQuery('#jform_add_php_batchmove').on('keyup',function()
{
var add_php_batchmove_vvvvvxz = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
vvvvvxz(add_php_batchmove_vvvvvxz);
});
jQuery('#adminForm').on('change', '#jform_add_php_batchmove',function (e)
{
e.preventDefault();
var add_php_batchmove_vvvvvxz = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
vvvvvxz(add_php_batchmove_vvvvvxz);
});
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvya function
jQuery('#jform_add_php_before_publish').on('keyup',function()
{
var add_php_before_publish_vvvvvya = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
vvvvvya(add_php_before_publish_vvvvvya);
});
jQuery('#adminForm').on('change', '#jform_add_php_before_publish',function (e)
{
e.preventDefault();
var add_php_before_publish_vvvvvya = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
vvvvvya(add_php_before_publish_vvvvvya);
});
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvyb function
jQuery('#jform_add_php_after_publish').on('keyup',function()
{
var add_php_after_publish_vvvvvyb = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
vvvvvyb(add_php_after_publish_vvvvvyb);
});
jQuery('#adminForm').on('change', '#jform_add_php_after_publish',function (e)
{
e.preventDefault();
var add_php_after_publish_vvvvvyb = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
vvvvvyb(add_php_after_publish_vvvvvyb);
});
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvyc function
jQuery('#jform_add_php_before_delete').on('keyup',function()
{
var add_php_before_delete_vvvvvyc = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
vvvvvyc(add_php_before_delete_vvvvvyc);
});
jQuery('#adminForm').on('change', '#jform_add_php_before_delete',function (e)
{
e.preventDefault();
var add_php_before_delete_vvvvvyc = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
vvvvvyc(add_php_before_delete_vvvvvyc);
});
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvyd function
jQuery('#jform_add_php_after_delete').on('keyup',function()
{
var add_php_after_delete_vvvvvyd = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
vvvvvyd(add_php_after_delete_vvvvvyd);
});
jQuery('#adminForm').on('change', '#jform_add_php_after_delete',function (e)
{
e.preventDefault();
var add_php_after_delete_vvvvvyd = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
vvvvvyd(add_php_after_delete_vvvvvyd);
});
// #jform_add_php_document listeners for add_php_document_vvvvvye function
jQuery('#jform_add_php_document').on('keyup',function()
{
var add_php_document_vvvvvye = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvye(add_php_document_vvvvvye);
});
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
{
e.preventDefault();
var add_php_document_vvvvvye = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvye(add_php_document_vvvvvye);
});
// #jform_add_sql listeners for add_sql_vvvvvyf function
jQuery('#jform_add_sql').on('keyup',function()
{
var add_sql_vvvvvyf = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyf(add_sql_vvvvvyf);
});
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
{
e.preventDefault();
var add_sql_vvvvvyf = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyf(add_sql_vvvvvyf);
});
// #jform_source listeners for source_vvvvvyg function
jQuery('#jform_source').on('keyup',function()
{
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
});
// #jform_add_sql listeners for add_sql_vvvvvyg function
jQuery('#jform_add_sql').on('keyup',function()
{
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
});
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
{
e.preventDefault();
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
});
// #jform_source listeners for source_vvvvvyi function
jQuery('#jform_source').on('keyup',function()
{
var source_vvvvvyi = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyi = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyi(source_vvvvvyi,add_sql_vvvvvyi);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
var source_vvvvvyi = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyi = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyi(source_vvvvvyi,add_sql_vvvvvyi);
});
// #jform_add_sql listeners for add_sql_vvvvvyi function
jQuery('#jform_add_sql').on('keyup',function()
{
var source_vvvvvyi = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyi = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyi(source_vvvvvyi,add_sql_vvvvvyi);
});
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
{
e.preventDefault();
var source_vvvvvyi = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvyi = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvyi(source_vvvvvyi,add_sql_vvvvvyi);
});
// #jform_add_custom_button listeners for add_custom_button_vvvvvyk function
jQuery('#jform_add_custom_button').on('keyup',function()
{
var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyk(add_custom_button_vvvvvyk);
});
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
{
e.preventDefault();
var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyk(add_custom_button_vvvvvyk);
});
document.addEventListener('DOMContentLoaded', () => {
const adminForm = document.getElementById('adminForm');
if (!adminForm) {
return;
}
adminForm.addEventListener('change', (event) => {
const target = event.target;
if (!(target instanceof Element)) {
return;
}
const id = target.id || '';
// Existing preloaded fields:
// jform_addtables__addtables0__table
let match = id.match(/^jform_addtables__addtables(\d+)__table$/);
if (match) {
getTableColumns(match[1], '_', '_');
return;
}
// Dynamically added subform rows:
// jform_addtables_addtables3_table
match = id.match(/^jform_addtables_addtables(\d+)_table$/);
if (match) {
getTableColumns(match[1], '', '');
}
});
});
<?php
$app = Factory::getApplication();
?>
function JRouter(link) {
<?php
if ($app->isClient('site'))
{
echo 'var url = "'. Uri::root() . '";';
}
else
{
echo 'var url = "";';
}
?>
return url+link;
}
document.addEventListener("DOMContentLoaded", function() {
document.querySelectorAll(".loading-dots").forEach(function(loading_dots) {
let x = 0;
let intervalId = setInterval(function() {
if (!loading_dots.classList.contains("loading-dots")) {
clearInterval(intervalId);
return;
}
let dots = ".".repeat(x % 8);
loading_dots.textContent = dots;
x++;
}, 500);
});
});
jQuery(document).ready(function(){
jQuery(document).on('subform-row-add', function(event, row){
getIconImage(jQuery(row).find('.icomoon342'));
});
});
function getIconImage(field) {
// get the ID
var id = jQuery(field).attr('id');
// remove old one
jQuery('#image_'+id).remove();
// get value
var value = jQuery('#'+id).val();
// build new one
var span = '<span id="image_'+id+'" class="icon-'+value+'" style="position: absolute; top: 8px; right: -20px;"></span>';
// add the icon
jQuery('#'+id+'_chzn').append(span);
}
</script>