Release of v4.0.2-beta3
Add more pure JS to the dynamic get area.
This commit is contained in:
parent
ab59720c50
commit
ae1c89a15d
@ -1,10 +1,11 @@
|
|||||||
# v4.0.2-beta2
|
# v4.0.2-beta3
|
||||||
|
|
||||||
- Fix dynamicGet so that the table values will load again. #1155
|
- Add more pure JS to the dynamic get area.
|
||||||
|
|
||||||
# v4.0.2-beta
|
# v4.0.2-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
|
||||||
|
|
||||||
# v4.0.2-alpha
|
# v4.0.2-alpha
|
||||||
|
|
||||||
|
@ -3270,7 +3270,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
||||||
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
||||||
</a>
|
</a>
|
||||||
<h3>Upgrade to Version 4.0.2-beta2 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
<h3>Upgrade to Version 4.0.2-beta3 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
||||||
|
|
||||||
// Add/Update component in the action logs extensions table.
|
// Add/Update component in the action logs extensions table.
|
||||||
$this->setActionLogsExtensions();
|
$this->setActionLogsExtensions();
|
||||||
|
@ -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!
|
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 (4.0.2-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 (4.0.2-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)
|
> 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)
|
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 1st August, 2024
|
+ *Last Build*: 1st August, 2024
|
||||||
+ *Version*: 4.0.2-beta2
|
+ *Version*: 4.0.2-beta3
|
||||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **791516**
|
+ *Line count*: **791544**
|
||||||
+ *Field count*: **2093**
|
+ *Field count*: **2093**
|
||||||
+ *File count*: **5505**
|
+ *File count*: **5505**
|
||||||
+ *Folder count*: **544**
|
+ *Folder count*: **544**
|
||||||
|
@ -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!
|
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 (4.0.2-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 (4.0.2-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)
|
> 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)
|
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 1st August, 2024
|
+ *Last Build*: 1st August, 2024
|
||||||
+ *Version*: 4.0.2-beta2
|
+ *Version*: 4.0.2-beta3
|
||||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **791516**
|
+ *Line count*: **791544**
|
||||||
+ *Field count*: **2093**
|
+ *Field count*: **2093**
|
||||||
+ *File count*: **5505**
|
+ *File count*: **5505**
|
||||||
+ *Folder count*: **544**
|
+ *Folder count*: **544**
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -134,7 +135,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -112,7 +113,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -759,7 +760,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -117,7 +118,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -132,7 +133,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -127,7 +128,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -16,6 +16,7 @@ use Joomla\CMS\Layout\LayoutHelper;
|
|||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -247,7 +248,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -120,7 +121,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
@ -59,7 +60,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -405,7 +406,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -272,7 +273,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -651,10 +652,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
// for the values the will still be set
|
// for the values the will still be set
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
document.addEventListener('subform-row-add', function(event) {
|
document.addEventListener('subform-row-add', function(event) {
|
||||||
var row = event.detail.row;
|
let row = event.detail.row;
|
||||||
var groupName = row.getAttribute('data-group');
|
let groupName = row.getAttribute('data-group');
|
||||||
var fieldName = groupName.replace('join_', '').replace('_table', '').replace(/([0-9])/g, '');
|
let fieldName = groupName.replace('join_', '').replace('_table', '').replace(/([0-9])/g, '');
|
||||||
var fieldNr = groupName.replace(/([A-z_])/g, '');
|
let fieldNr = groupName.replace(/([A-z_])/g, '');
|
||||||
updateSubItems(fieldName, fieldNr, '_', '_');
|
updateSubItems(fieldName, fieldNr, '_', '_');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -669,14 +670,14 @@ document.getElementById('adminForm').addEventListener('change', function(e) {
|
|||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
document.getElementById('jform_add_php_router_parse').addEventListener('change', function() {
|
document.getElementById('jform_add_php_router_parse').addEventListener('change', function() {
|
||||||
var valueSwitch = document.querySelector("#jform_add_php_router_parse input[type='radio']:checked").value;
|
let valueSwitch = document.querySelector("#jform_add_php_router_parse input[type='radio']:checked").value;
|
||||||
getDynamicScripts(valueSwitch);
|
getDynamicScripts(valueSwitch);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('adminForm').addEventListener('change', function(e) {
|
document.getElementById('adminForm').addEventListener('change', function(e) {
|
||||||
if (e.target && e.target.matches('#jform_select_all input[type="radio"]')) {
|
if (e.target && e.target.matches('#jform_select_all input[type="radio"]')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var selectAll = e.target.value;
|
let selectAll = e.target.value;
|
||||||
setSelectAll(selectAll);
|
setSelectAll(selectAll);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -688,7 +689,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -49,32 +49,3 @@ if ($this->saveOrder)
|
|||||||
<input type="hidden" name="task" value="" />
|
<input type="hidden" name="task" value="" />
|
||||||
<?php echo Html::_('form.token'); ?>
|
<?php echo Html::_('form.token'); ?>
|
||||||
</form>
|
</form>
|
||||||
<script type="text/javascript">
|
|
||||||
// dynamic_gets footer script
|
|
||||||
|
|
||||||
// get page body
|
|
||||||
var outerBodyDiv = document.querySelector('body');
|
|
||||||
|
|
||||||
// start loading spinner
|
|
||||||
var loadingDiv = document.createElement('div');
|
|
||||||
loadingDiv.id = 'loading';
|
|
||||||
|
|
||||||
// Set CSS properties individually
|
|
||||||
loadingDiv.style.background = "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat";
|
|
||||||
loadingDiv.style.top = (outerBodyDiv.getBoundingClientRect().top + window.pageYOffset) + "px";
|
|
||||||
loadingDiv.style.left = (outerBodyDiv.getBoundingClientRect().left + window.pageXOffset) + "px";
|
|
||||||
loadingDiv.style.width = outerBodyDiv.offsetWidth + "px";
|
|
||||||
loadingDiv.style.height = outerBodyDiv.offsetHeight + "px";
|
|
||||||
loadingDiv.style.position = 'fixed';
|
|
||||||
loadingDiv.style.opacity = '0.80';
|
|
||||||
loadingDiv.style.msFilter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
|
|
||||||
loadingDiv.style.filter = "alpha(opacity=80)";
|
|
||||||
loadingDiv.style.display = 'none';
|
|
||||||
|
|
||||||
// add to page body
|
|
||||||
outerBodyDiv.appendChild(loadingDiv);
|
|
||||||
// when the expand button is clicked
|
|
||||||
jQuery('#toolbar').on('click',"button.button-expand-2", function(e){
|
|
||||||
loadingDiv.style.display = 'block';
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -327,7 +328,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -531,7 +532,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -246,7 +247,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -14,6 +14,7 @@ use Joomla\CMS\Language\Text;
|
|||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
@ -553,7 +554,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -456,7 +457,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -439,7 +440,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -399,7 +400,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -111,7 +112,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -215,7 +216,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -577,7 +578,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -140,7 +141,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -168,7 +169,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -423,7 +424,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -220,7 +221,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -15,6 +15,7 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use Joomla\CMS\Layout\LayoutHelper;
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
use Joomla\CMS\Router\Route;
|
use Joomla\CMS\Router\Route;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
use Joomla\CMS\Uri\Uri;
|
||||||
|
|
||||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||||
$wa = $this->getDocument()->getWebAssetManager();
|
$wa = $this->getDocument()->getWebAssetManager();
|
||||||
@ -145,7 +146,7 @@ function JRouter(link) {
|
|||||||
<?php
|
<?php
|
||||||
if ($app->isClient('site'))
|
if ($app->isClient('site'))
|
||||||
{
|
{
|
||||||
echo 'var url = "'. \Joomla\CMS\Uri\Uri::root() . '";';
|
echo 'var url = "'. Uri::root() . '";';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||||
<version>4.0.2-beta2</version>
|
<version>4.0.2-beta3</version>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<h1>Component Builder (v.4.0.2-beta2)</h1>
|
<h1>Component Builder (v.4.0.2-beta3)</h1>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
<p>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.
|
<p>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.
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
<version>4.0.2-beta</version>
|
<version>4.0.2-beta</version>
|
||||||
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||||
<downloads>
|
<downloads>
|
||||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.2-beta2.zip</downloadurl>
|
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.2-beta3.zip</downloadurl>
|
||||||
</downloads>
|
</downloads>
|
||||||
<tags>
|
<tags>
|
||||||
<tag>beta</tag>
|
<tag>beta</tag>
|
||||||
@ -95,10 +95,10 @@
|
|||||||
<element>pkg_component_builder</element>
|
<element>pkg_component_builder</element>
|
||||||
<type>package</type>
|
<type>package</type>
|
||||||
<client>site</client>
|
<client>site</client>
|
||||||
<version>4.0.2-beta2</version>
|
<version>4.0.2-beta3</version>
|
||||||
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||||
<downloads>
|
<downloads>
|
||||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.2-beta2.zip</downloadurl>
|
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.2-beta3.zip</downloadurl>
|
||||||
</downloads>
|
</downloads>
|
||||||
<tags>
|
<tags>
|
||||||
<tag>beta</tag>
|
<tag>beta</tag>
|
||||||
|
@ -1070,8 +1070,10 @@ function addButton(type, where, size){
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -232,8 +232,10 @@ function getCodeFrom_server(id, type, type_name, callingName) {
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1401,11 +1401,10 @@ function isSet(val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
jQuery(document).ready(function()
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
{
|
|
||||||
// get the linked details
|
// get the linked details
|
||||||
getLinked();
|
getLinked();
|
||||||
var valueSwitch = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
let valueSwitch = document.querySelector("#jform_add_php_router_parse input[type='radio']:checked").value;
|
||||||
getDynamicScripts(valueSwitch);
|
getDynamicScripts(valueSwitch);
|
||||||
// check and load all the custom code edit buttons
|
// check and load all the custom code edit buttons
|
||||||
getEditCustomCodeButtons();
|
getEditCustomCodeButtons();
|
||||||
@ -1413,25 +1412,26 @@ jQuery(document).ready(function()
|
|||||||
|
|
||||||
function setSelectAll(select_all) {
|
function setSelectAll(select_all) {
|
||||||
// get source type
|
// get source type
|
||||||
var main_source = jQuery("#jform_main_source").val();
|
let main_source = document.getElementById("jform_main_source").value;
|
||||||
if (1 == main_source) {
|
let key;
|
||||||
var key = 'view';
|
if (main_source == 1) {
|
||||||
} else if (2 == main_source) {
|
key = 'view';
|
||||||
var key = 'db';
|
} else if (main_source == 2) {
|
||||||
|
key = 'db';
|
||||||
} else {
|
} else {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// only continue if set
|
// only continue if set
|
||||||
if (select_all == 1) {
|
if (select_all == 1) {
|
||||||
// set default notice
|
// set default notice
|
||||||
jQuery("#jform_"+key+"_selection").val('a.*');
|
document.getElementById("jform_" + key + "_selection").value = 'a.*';
|
||||||
// set the selection text area to read only
|
// set the selection text area to read only
|
||||||
jQuery("#jform_"+key+"_selection").prop("readonly", true);
|
document.getElementById("jform_" + key + "_selection").readOnly = true;
|
||||||
} else {
|
} else {
|
||||||
// remove the read only from selection text area
|
// remove the read only from selection text area
|
||||||
jQuery("#jform_"+key+"_selection").prop("readonly", false);
|
document.getElementById("jform_" + key + "_selection").readOnly = false;
|
||||||
// get selected options
|
// get selected options
|
||||||
var value_main = jQuery("#jform_"+key+"_table_main option:selected").val();
|
let value_main = document.getElementById("jform_" + key + "_table_main").selectedOptions[0].value;
|
||||||
// make sure that all fields are set as selected
|
// make sure that all fields are set as selected
|
||||||
if (key === 'view') {
|
if (key === 'view') {
|
||||||
getViewTableColumns(value_main, 'a', key, 3, true, '', '');
|
getViewTableColumns(value_main, 'a', key, 3, true, '', '');
|
||||||
@ -1442,143 +1442,154 @@ function setSelectAll(select_all){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getViewTableColumns_server(viewId, asKey, rowType) {
|
function getViewTableColumns_server(viewId, asKey, rowType) {
|
||||||
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.viewTableColumns&format=json&raw=true");
|
let getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.viewTableColumns&format=json&raw=true");
|
||||||
if (token.length > 0 && viewId > 0 && asKey.length > 0)
|
let request = '';
|
||||||
{
|
if (token.length > 0 && viewId > 0 && asKey.length > 0) {
|
||||||
var request = token+'=1&as='+asKey+'&type='+rowType+'&id='+viewId;
|
request = token + '=1&as=' + asKey + '&type=' + rowType + '&id=' + viewId;
|
||||||
}
|
}
|
||||||
return jQuery.ajax({
|
return fetch(getUrl + '&' + request, { method: 'GET' }).then(function(response) {
|
||||||
type: 'GET',
|
return response.json();
|
||||||
url: getUrl,
|
|
||||||
dataType: 'json',
|
|
||||||
data: request,
|
|
||||||
jsonp: false
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getViewTableColumns(id, asKey, key, rowType, main, table_, nr_) {
|
function getViewTableColumns(id, asKey, key, rowType, main, table_, nr_) {
|
||||||
// check if this is the main view
|
// check if this is the main view
|
||||||
if (main) {
|
if (main) {
|
||||||
var select_all = jQuery("#jform_select_all input[type='radio']:checked").val();
|
let select_all = document.querySelector("#jform_select_all input[type='radio']:checked").value;
|
||||||
// do not continue if set
|
// do not continue if set
|
||||||
if (select_all == 1) {
|
if (select_all == 1) {
|
||||||
setSelectAll(select_all);
|
setSelectAll(select_all);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getViewTableColumns_server(id, asKey, rowType).done(function(result) {
|
getViewTableColumns_server(id, asKey, rowType).then(function(result) {
|
||||||
if (result) {
|
if (result.error) {
|
||||||
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
loadSelectionData(result, 'view', key, main, table_, nr_);
|
loadSelectionData(result, 'view', key, main, table_, nr_);
|
||||||
} else {
|
} else {
|
||||||
loadSelectionData(false, 'view', key, main, table_, nr_);
|
loadSelectionData(false, 'view', key, main, table_, nr_);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDbTableColumns_server(name,asKey,rowType)
|
function getDbTableColumns_server(name, asKey, rowType) {
|
||||||
{
|
let getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.dbTableColumns&format=json&raw=true");
|
||||||
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.dbTableColumns&format=json&raw=true");
|
let request = '';
|
||||||
if (token.length > 0 && name.length > 0 && asKey.length > 0) {
|
if (token.length > 0 && name.length > 0 && asKey.length > 0) {
|
||||||
var request = token+'=1&as='+asKey+'&type='+rowType+'&name='+name;
|
request = token + '=1&as=' + asKey + '&type=' + rowType + '&name=' + name;
|
||||||
}
|
}
|
||||||
return jQuery.ajax({
|
return fetch(getUrl + '&' + request, { method: 'GET' }).then(function(response) {
|
||||||
type: 'GET',
|
return response.json();
|
||||||
url: getUrl,
|
|
||||||
dataType: 'json',
|
|
||||||
data: request,
|
|
||||||
jsonp: false
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDbTableColumns(name, asKey, key, rowType, main, table_, nr_) {
|
function getDbTableColumns(name, asKey, key, rowType, main, table_, nr_) {
|
||||||
// check if this is the main view
|
// check if this is the main view
|
||||||
if (main) {
|
if (main) {
|
||||||
var select_all = jQuery("#jform_select_all input[type='radio']:checked").val();
|
let select_all = document.querySelector("#jform_select_all input[type='radio']:checked").value;
|
||||||
// do not continue if set
|
// do not continue if set
|
||||||
if (select_all == 1){
|
if (select_all === 1) {
|
||||||
setSelectAll(select_all);
|
setSelectAll(select_all);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
getDbTableColumns_server(name,asKey,rowType).done(function(result) {
|
getDbTableColumns_server(name, asKey, rowType).then(function(result) {
|
||||||
if (result) {
|
if (result.error) {
|
||||||
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
loadSelectionData(result, 'db', key, main, table_, nr_);
|
loadSelectionData(result, 'db', key, main, table_, nr_);
|
||||||
} else {
|
} else {
|
||||||
loadSelectionData(false, 'db', key, main, table_, nr_);
|
loadSelectionData(false, 'db', key, main, table_, nr_);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadSelectionData(result, type, key, main, table_, nr_)
|
function loadSelectionData(result, type, key, main, table_, nr_) {
|
||||||
{
|
var textArea;
|
||||||
if (main)
|
if (main) {
|
||||||
{
|
textArea = document.querySelector('textarea#jform_' + key + '_selection');
|
||||||
var textArea = 'textarea#jform_'+key+'_selection';
|
} else {
|
||||||
|
textArea = document.querySelector('textarea#jform_join_' + type + '_table' + table_ + '_join_' + type + '_table' + key + nr_ + '_selection');
|
||||||
}
|
}
|
||||||
else
|
// update the text area
|
||||||
{
|
if (result) {
|
||||||
var textArea = 'textarea#jform_join_'+type+'_table'+table_+'_join_'+type+'_table'+key+nr_+'_selection';
|
textArea.value = result;
|
||||||
}
|
} else {
|
||||||
// no update the text area
|
textArea.value = '';
|
||||||
if (result)
|
|
||||||
{
|
|
||||||
jQuery(textArea).val(result);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
jQuery(textArea).val('');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateSubItems(fieldName, fieldNr, table_, nr_) {
|
function updateSubItems(fieldName, fieldNr, table_, nr_) {
|
||||||
if(jQuery('#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_'+fieldName+'_table').length) {
|
let selector = '#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_' + fieldName + '_table';
|
||||||
jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_'+fieldName+'_table',function (e) {
|
if (document.querySelector(selector)) {
|
||||||
|
document.getElementById('adminForm').addEventListener('change', function(e) {
|
||||||
|
if (e.target.matches(selector)) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
// get options
|
// get options
|
||||||
var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
|
let selectElement = document.querySelector(selector);
|
||||||
var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
|
let value1 = selectElement.options[selectElement.selectedIndex].value;
|
||||||
var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
|
let asSelectElement = document.querySelector('#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_as');
|
||||||
|
let as_value2 = asSelectElement.options[asSelectElement.selectedIndex].value;
|
||||||
|
let rowTypeElement = document.querySelector('#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_row_type');
|
||||||
|
let row_value1 = rowTypeElement.options[rowTypeElement.selectedIndex].value;
|
||||||
if (fieldName === 'view') {
|
if (fieldName === 'view') {
|
||||||
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
||||||
} else {
|
} else {
|
||||||
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_as',function (e) {
|
|
||||||
|
document.getElementById('adminForm').addEventListener('change', function(e) {
|
||||||
|
if (e.target.matches('#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_as')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
// get options
|
// get options
|
||||||
var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
|
let selectElement = document.querySelector(selector);
|
||||||
var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
|
let value1 = selectElement.options[selectElement.selectedIndex].value;
|
||||||
var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
|
let asSelectElement = document.querySelector('#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_as');
|
||||||
|
let as_value2 = asSelectElement.options[asSelectElement.selectedIndex].value;
|
||||||
|
let rowTypeElement = document.querySelector('#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_row_type');
|
||||||
|
let row_value1 = rowTypeElement.options[rowTypeElement.selectedIndex].value;
|
||||||
if (fieldName === 'view') {
|
if (fieldName === 'view') {
|
||||||
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
||||||
} else {
|
} else {
|
||||||
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_row_type',function (e) {
|
|
||||||
|
document.getElementById('adminForm').addEventListener('change', function(e) {
|
||||||
|
if (e.target.matches('#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_row_type')) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
// get options
|
// get options
|
||||||
var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
|
let selectElement = document.querySelector(selector);
|
||||||
var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
|
let value1 = selectElement.options[selectElement.selectedIndex].value;
|
||||||
var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
|
let asSelectElement = document.querySelector('#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_as');
|
||||||
|
let as_value2 = asSelectElement.options[asSelectElement.selectedIndex].value;
|
||||||
|
let rowTypeElement = document.querySelector('#jform_join_' + fieldName + '_table' + table_ + '_join_' + fieldName + '_table' + fieldNr + nr_ + '_row_type');
|
||||||
|
let row_value1 = rowTypeElement.options[rowTypeElement.selectedIndex].value;
|
||||||
if (fieldName === 'view') {
|
if (fieldName === 'view') {
|
||||||
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
||||||
} else {
|
} else {
|
||||||
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDynamicScripts(id) {
|
function getDynamicScripts(id) {
|
||||||
if (1 == id) {
|
if (id == 1) {
|
||||||
// get the current values
|
// get the current values
|
||||||
var current_router_parse = jQuery('textarea#jform_php_router_parse').val();
|
let current_router_parse = document.querySelector('textarea#jform_php_router_parse').value;
|
||||||
// set the router parse method script
|
// set the router parse method script
|
||||||
if (current_router_parse.length == 0) {
|
if (current_router_parse.length == 0) {
|
||||||
getCodeFrom_server(1, 'routerparse', 'type', 'getDynamicScripts').then(function(result) {
|
getCodeFrom_server(1, 'routerparse', 'type', 'getDynamicScripts').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('textarea#jform_php_router_parse').val(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.querySelector('textarea#jform_php_router_parse').value = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1661,8 +1672,10 @@ function getEditCustomCodeButtons() {
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -784,8 +784,10 @@ function getCodeFrom_server(id, type, type_name, callingName) {
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -240,8 +240,10 @@ function setModuleCode() {
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -702,8 +702,10 @@ function removeCodeFromEditor(code_string, editor_id){
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1015,8 +1015,10 @@ function addButton(type, where, size){
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -466,8 +466,10 @@ function removeCodeFromEditor(code_string, editor_id){
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -273,8 +273,10 @@ function getCodeFrom_server(id, type, type_name, callingName) {
|
|||||||
|
|
||||||
function getLinked() {
|
function getLinked() {
|
||||||
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
getCodeFrom_server(1, 'type', 'type', 'getLinked').then(function(result) {
|
||||||
if(result){
|
if (result.error) {
|
||||||
jQuery('#display_linked_to').html(result);
|
console.error(result.error);
|
||||||
|
} else if (result) {
|
||||||
|
document.getElementById('display_linked_to').innerHTML = result;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user