From 3aaa91daf7513fb7ca76740f5d2f69907d73e132 Mon Sep 17 00:00:00 2001 From: aB0t Date: Thu, 1 Aug 2024 19:40:49 +0200 Subject: [PATCH] Release of v3.2.3-beta3 Keep jQuery in dynamicGet area for Joomla 3. --- CHANGELOG.md | 7 +-- README.md | 6 +-- admin/README.txt | 6 +-- admin/views/dynamic_get/tmpl/edit.php | 63 +++++++++++++-------------- componentbuilder.xml | 4 +- componentbuilder_update_server.xml | 4 +- script.php | 2 +- 7 files changed, 45 insertions(+), 47 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b52369f89..d87bcad9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,11 @@ -# v3.2.3-beta2 +# v3.2.3-beta3 -- Fix dynamicGet so that the table values will load again. #1155 +- Keep jQuery in dynamicGet area for Joomla 3 # v3.2.3-beta -- Fix abstract schema class function check default index warring +- Fix abstract schema class function check default index warring +- Fix dynamicGet so that the table values will load again. #1155 # v3.2.3-alpha diff --git a/README.md b/README.md index bd6699a10..33f6ca79e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.3-beta2) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.3-beta3) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -145,10 +145,10 @@ TODO + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 + *Last Build*: 1st August, 2024 -+ *Version*: 3.2.3-beta2 ++ *Version*: 3.2.3-beta3 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **799949** ++ *Line count*: **799947** + *Field count*: **2093** + *File count*: **5508** + *Folder count*: **482** diff --git a/admin/README.txt b/admin/README.txt index bd6699a10..33f6ca79e 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.3-beta2) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.3-beta3) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -145,10 +145,10 @@ TODO + *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder) + *First Build*: 30th April, 2015 + *Last Build*: 1st August, 2024 -+ *Version*: 3.2.3-beta2 ++ *Version*: 3.2.3-beta3 + *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **799949** ++ *Line count*: **799947** + *Field count*: **2093** + *File count*: **5508** + *Folder count*: **482** diff --git a/admin/views/dynamic_get/tmpl/edit.php b/admin/views/dynamic_get/tmpl/edit.php index 13273d9ed..b6cfb03d7 100644 --- a/admin/views/dynamic_get/tmpl/edit.php +++ b/admin/views/dynamic_get/tmpl/edit.php @@ -641,47 +641,44 @@ jQuery('#adminForm').on('change', '#jform_gettype',function (e) - - 'Db', 'view' => 'View'); ?> + + 'Db','view' => 'View'); ?> // for the vlaues already set -document.addEventListener('DOMContentLoaded', function() { - $funcName): ?> - - updateSubItems('', , '_', '_'); - - +jQuery(document).ready(function(){ + $funcName): ?> + + updateSubItems('', , '_', '_'); + + }); // for the values the will still be set -document.addEventListener('DOMContentLoaded', function() { - document.addEventListener('subform-row-add', function(event) { - var row = event.detail.row; - var groupName = row.getAttribute('data-group'); - var fieldName = groupName.replace('join_', '').replace('_table', '').replace(/([0-9])/g, ''); - var fieldNr = groupName.replace(/([A-z_])/g, ''); - updateSubItems(fieldName, fieldNr, '_', '_'); - }); -}); +jQuery(document).ready(function(){ + jQuery(document).on('subform-row-add', function(event, row){ + var groupName = jQuery(row).data('group'); + var fieldName = groupName.replace('join_', '').replace('_table', '').replace(/([0-9])/g, ''); + var fieldNr = groupName.replace(/([A-z_])/g, ''); + updateSubItems(fieldName, fieldNr, '_', '_'); + }); - $funcName): ?> -document.getElementById('adminForm').addEventListener('change', function(e) { - if (e.target && e.target.id === 'jform__table_main') { - let value_ = e.target.options[e.target.selectedIndex].value; - getTableColumns(value_, 'a', '', 3, true, '', ''); - } +}); + $funcName): ?>jQuery('#adminForm').on('change', '#jform__table_main',function (e) { + // get options + var value_ = jQuery("#jform__table_main option:selected").val(); + getTableColumns(value_, 'a', '', 3, true, '', ''); }); - -document.getElementById('jform_add_php_router_parse').addEventListener('change', function() { - var valueSwitch = document.querySelector("#jform_add_php_router_parse input[type='radio']:checked").value; - getDynamicScripts(valueSwitch); +// #jform_add_php_router_parse listeners +jQuery('#jform_add_php_router_parse').on('change',function() { + var valueSwitch = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); + getDynamicScripts(valueSwitch); }); +jQuery('#adminForm').on('change', '#jform_select_all',function (e) +{ + e.preventDefault(); + // get the selected value + var select_all = jQuery("#jform_select_all input[type='radio']:checked").val(); + setSelectAll(select_all); -document.getElementById('adminForm').addEventListener('change', function(e) { - if (e.target && e.target.matches('#jform_select_all input[type="radio"]')) { - e.preventDefault(); - var selectAll = e.target.value; - setSelectAll(selectAll); - } }); https://dev.vdm.io Copyright (C) 2015 Vast Development Method. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt - 3.2.3-beta2 + 3.2.3-beta3 Component Builder (v.3.2.3-beta2) +

Component Builder (v.3.2.3-beta3)

The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time. diff --git a/componentbuilder_update_server.xml b/componentbuilder_update_server.xml index 6fb119015..38fdc8ed3 100644 --- a/componentbuilder_update_server.xml +++ b/componentbuilder_update_server.xml @@ -202,10 +202,10 @@ pkg_component_builder package site - 3.2.3-beta2 + 3.2.3-beta3 https://dev.vdm.io - https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.3-beta2.zip + https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.3-beta3.zip beta diff --git a/script.php b/script.php index b7fb4173a..54451b787 100644 --- a/script.php +++ b/script.php @@ -10001,7 +10001,7 @@ class Com_ComponentbuilderInstallerScript echo '

-

Upgrade to Version 3.2.3-beta2 Was Successful! Let us know if anything is not working as expected.

'; +

Upgrade to Version 3.2.3-beta3 Was Successful! Let us know if anything is not working as expected.

'; // Set db if not set already. if (!isset($db))