Resolved gh-463 to insure data types that require length is enforced by default in the GUI.

This commit is contained in:
Llewellyn van der Merwe 2019-09-12 22:06:52 +02:00
parent bb798abe8c
commit 773a753323
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
25 changed files with 1392 additions and 1205 deletions

View File

@ -146,11 +146,11 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 10th September, 2019 + *Last Build*: 12th September, 2019
+ *Version*: 2.10.1 + *Version*: 2.10.1
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2019 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*: **251895** + *Line count*: **252364**
+ *Field count*: **1345** + *Field count*: **1345**
+ *File count*: **1608** + *File count*: **1608**
+ *Folder count*: **253** + *Folder count*: **253**

View File

@ -146,11 +146,11 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
+ *First Build*: 30th April, 2015 + *First Build*: 30th April, 2015
+ *Last Build*: 10th September, 2019 + *Last Build*: 12th September, 2019
+ *Version*: 2.10.1 + *Version*: 2.10.1
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2019 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*: **251895** + *Line count*: **252364**
+ *Field count*: **1345** + *Field count*: **1345**
+ *File count*: **1608** + *File count*: **1608**
+ *Folder count*: **253** + *Folder count*: **253**

View File

@ -7317,8 +7317,8 @@ class Get
$code = $this->reversePlaceholders($code, $placeholders, $target, $query[2], $query[1], $query[0]); $code = $this->reversePlaceholders($code, $placeholders, $target, $query[2], $query[1], $query[0]);
// update the GUI/Tables/Database // update the GUI/Tables/Database
$object = new stdClass(); $object = new stdClass();
$object->id = (int) $target[2]; $object->id = (int) $query[2];
$object->{$target[1]} = base64_encode($code); // (TODO) this may not always work... $object->{$query[1]} = base64_encode($code); // (TODO) this may not always work...
// update the value in GUI // update the value in GUI
$this->db->updateObject('#__componentbuilder_' . (string) $query[0], $object, 'id'); $this->db->updateObject('#__componentbuilder_' . (string) $query[0], $object, 'id');
} }

View File

@ -2459,8 +2459,9 @@ abstract class ComponentbuilderHelper
if (($repoData = self::getFileContents($_url)) !== false && self::checkJson($repoData)) if (($repoData = self::getFileContents($_url)) !== false && self::checkJson($repoData))
{ {
$github_returned = json_decode($repoData); $github_returned = json_decode($repoData);
if (self::checkString($target) && self::checkObject($github_returned) && if (self::checkString($target) &&
isset($github_returned->{$target}) && self::checkArray($github_returned->{$target}) ) ( (self::checkObject($github_returned) && isset($github_returned->{$target}) && self::checkArray($github_returned->{$target})) ||
(self::checkArray($github_returned) && isset($github_returned[$target]) && self::checkArray($github_returned[$target])) ))
{ {
if ('nomemory' !== $type) if ('nomemory' !== $type)
{ {
@ -2468,7 +2469,7 @@ abstract class ComponentbuilderHelper
self::set($type, $repoData); self::set($type, $repoData);
} }
} }
elseif (!self::checkString($target) && self::checkObject($github_returned) && !isset($github_returned->message)) elseif (!self::checkString($target) && (self::checkArray($github_returned) || (self::checkObject($github_returned) && !isset($github_returned->message))))
{ {
if ('nomemory' !== $type) if ('nomemory' !== $type)
{ {

View File

@ -4772,18 +4772,18 @@ COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT="Datadefault"
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_DESCRIPTION="The data default value for mysql" COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_DESCRIPTION="The data default value for mysql"
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_LABEL="Data Default" COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_LABEL="Data Default"
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER="Datadefault Other" COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER="Datadefault Other"
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_DESCRIPTION="The other default data for mysql" COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_DESCRIPTION="The other default data for selected data type"
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_HINT="Other Default Here" COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_HINT="Other Default Here"
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_LABEL="Other Default" COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_LABEL="Other Default"
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_MESSAGE="Error! Please add other default here." COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_MESSAGE="Error! Please add other default here."
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT="Datalenght" COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT="Datalenght"
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_DESCRIPTION="The data length or value for mysql (size)" COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_DESCRIPTION="The data length for selected data type (size)"
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_LABEL="Data Length/Values" COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_LABEL="Data Length"
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER="Datalenght Other" COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER="Datalenght Other"
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_DESCRIPTION="The other data length/values for mysql" COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_DESCRIPTION="The other data length for selected data type"
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_HINT="Other Here" COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_HINT="Other Here"
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_LABEL="Other" COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_LABEL="Other Length"
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_MESSAGE="Error! Please add other data length/values here." COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_MESSAGE="Error! Please add other data length here."
COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE="Datatype" COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE="Datatype"
COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE_DESCRIPTION="The data type for mysql" COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE_DESCRIPTION="The data type for mysql"
COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE_LABEL="Data Type" COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE_LABEL="Data Type"
@ -4919,18 +4919,18 @@ COM_COMPONENTBUILDER_FIELD_DATADEFAULT="Datadefault"
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_DESCRIPTION="The data default value for mysql" COM_COMPONENTBUILDER_FIELD_DATADEFAULT_DESCRIPTION="The data default value for mysql"
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_LABEL="Data Default" COM_COMPONENTBUILDER_FIELD_DATADEFAULT_LABEL="Data Default"
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER="Datadefault Other" COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER="Datadefault Other"
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_DESCRIPTION="The other default data for mysql" COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_DESCRIPTION="The other default data for selected data type"
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_HINT="Other Default Here" COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_HINT="Other Default Here"
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_LABEL="Other Default" COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_LABEL="Other Default"
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_MESSAGE="Error! Please add other default here." COM_COMPONENTBUILDER_FIELD_DATADEFAULT_OTHER_MESSAGE="Error! Please add other default here."
COM_COMPONENTBUILDER_FIELD_DATALENGHT="Datalenght" COM_COMPONENTBUILDER_FIELD_DATALENGHT="Datalenght"
COM_COMPONENTBUILDER_FIELD_DATALENGHT_DESCRIPTION="The data length or value for mysql (size)" COM_COMPONENTBUILDER_FIELD_DATALENGHT_DESCRIPTION="The data length for selected data type (size)"
COM_COMPONENTBUILDER_FIELD_DATALENGHT_LABEL="Data Length/Values" COM_COMPONENTBUILDER_FIELD_DATALENGHT_LABEL="Data Length"
COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER="Datalenght Other" COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER="Datalenght Other"
COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_DESCRIPTION="The other data length/values for mysql" COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_DESCRIPTION="The other data length for selected data type"
COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT="Other Here" COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT="Other Here"
COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_LABEL="Other" COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_LABEL="Other Length"
COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE="Error! Please add other data length/values here." COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE="Error! Please add other data length here."
COM_COMPONENTBUILDER_FIELD_DATATYPE="Datatype" COM_COMPONENTBUILDER_FIELD_DATATYPE="Datatype"
COM_COMPONENTBUILDER_FIELD_DATATYPE_DESCRIPTION="The data type for mysql" COM_COMPONENTBUILDER_FIELD_DATATYPE_DESCRIPTION="The data type for mysql"
COM_COMPONENTBUILDER_FIELD_DATATYPE_LABEL="Data Type" COM_COMPONENTBUILDER_FIELD_DATATYPE_LABEL="Data Type"

View File

@ -13,7 +13,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vxwfields; $items = $displayData->vxyfields;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL

View File

@ -13,7 +13,7 @@
defined('_JEXEC') or die('Restricted access'); defined('_JEXEC') or die('Restricted access');
// set the defaults // set the defaults
$items = $displayData->vyglinked_components; $items = $displayData->vyilinked_components;
$user = JFactory::getUser(); $user = JFactory::getUser();
$id = $displayData->item->id; $id = $displayData->item->id;
// set the edit URL // set the edit URL

View File

@ -203,7 +203,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getVxwfields() public function getVxyfields()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();
@ -291,13 +291,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item) foreach ($items as $nr => &$item)
{ {
// convert datatype // convert datatype
$item->datatype = $this->selectionTranslationVxwfields($item->datatype, 'datatype'); $item->datatype = $this->selectionTranslationVxyfields($item->datatype, 'datatype');
// convert indexes // convert indexes
$item->indexes = $this->selectionTranslationVxwfields($item->indexes, 'indexes'); $item->indexes = $this->selectionTranslationVxyfields($item->indexes, 'indexes');
// convert null_switch // convert null_switch
$item->null_switch = $this->selectionTranslationVxwfields($item->null_switch, 'null_switch'); $item->null_switch = $this->selectionTranslationVxyfields($item->null_switch, 'null_switch');
// convert store // convert store
$item->store = $this->selectionTranslationVxwfields($item->store, 'store'); $item->store = $this->selectionTranslationVxyfields($item->store, 'store');
} }
} }
@ -311,7 +311,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
* *
* @return translatable string * @return translatable string
*/ */
public function selectionTranslationVxwfields($value,$name) public function selectionTranslationVxyfields($value,$name)
{ {
// Array of datatype language strings // Array of datatype language strings
if ($name === 'datatype') if ($name === 'datatype')

View File

@ -13,6 +13,7 @@ jform_vvvvwbtvxl_required = false;
jform_vvvvwbuvxm_required = false; jform_vvvvwbuvxm_required = false;
jform_vvvvwbvvxn_required = false; jform_vvvvwbvvxn_required = false;
jform_vvvvwbwvxo_required = false; jform_vvvvwbwvxo_required = false;
jform_vvvvwbxvxp_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
@ -29,21 +30,24 @@ jQuery(document).ready(function()
var datatype_vvvvwbw = jQuery("#jform_datatype").val(); var datatype_vvvvwbw = jQuery("#jform_datatype").val();
vvvvwbw(datatype_vvvvwbw); vvvvwbw(datatype_vvvvwbw);
var store_vvvvwbx = jQuery("#jform_store").val();
var datatype_vvvvwbx = jQuery("#jform_datatype").val(); var datatype_vvvvwbx = jQuery("#jform_datatype").val();
vvvvwbx(store_vvvvwbx,datatype_vvvvwbx); vvvvwbx(datatype_vvvvwbx);
var add_css_view_vvvvwbz = jQuery("#jform_add_css_view input[type='radio']:checked").val(); var store_vvvvwby = jQuery("#jform_store").val();
vvvvwbz(add_css_view_vvvvwbz); var datatype_vvvvwby = jQuery("#jform_datatype").val();
vvvvwby(store_vvvvwby,datatype_vvvvwby);
var add_css_views_vvvvwca = jQuery("#jform_add_css_views input[type='radio']:checked").val(); var add_css_view_vvvvwca = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwca(add_css_views_vvvvwca); vvvvwca(add_css_view_vvvvwca);
var add_javascript_view_footer_vvvvwcb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); var add_css_views_vvvvwcb = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwcb(add_javascript_view_footer_vvvvwcb); vvvvwcb(add_css_views_vvvvwcb);
var add_javascript_views_footer_vvvvwcc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); var add_javascript_view_footer_vvvvwcc = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwcc(add_javascript_views_footer_vvvvwcc); vvvvwcc(add_javascript_view_footer_vvvvwcc);
var add_javascript_views_footer_vvvvwcd = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwcd(add_javascript_views_footer_vvvvwcd);
}); });
// the vvvvwbt function // the vvvvwbt function
@ -178,7 +182,6 @@ function vvvvwbv(datatype_vvvvwbv)
if (datatype) if (datatype)
{ {
jQuery('#jform_datadefault').closest('.control-group').show(); jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show();
// add required attribute to indexes field // add required attribute to indexes field
if (jform_vvvvwbvvxn_required) if (jform_vvvvwbvvxn_required)
@ -193,7 +196,6 @@ function vvvvwbv(datatype_vvvvwbv)
else else
{ {
jQuery('#jform_datadefault').closest('.control-group').hide(); jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide();
// remove required attribute from indexes field // remove required attribute from indexes field
if (!jform_vvvvwbvvxn_required) if (!jform_vvvvwbvvxn_required)
@ -237,27 +239,27 @@ function vvvvwbw(datatype_vvvvwbw)
// set this function logic // set this function logic
if (datatype) if (datatype)
{ {
jQuery('#jform_store').closest('.control-group').show(); jQuery('#jform_datalenght').closest('.control-group').show();
// add required attribute to store field // add required attribute to datalenght field
if (jform_vvvvwbwvxo_required) if (jform_vvvvwbwvxo_required)
{ {
updateFieldRequired('store',0); updateFieldRequired('datalenght',0);
jQuery('#jform_store').prop('required','required'); jQuery('#jform_datalenght').prop('required','required');
jQuery('#jform_store').attr('aria-required',true); jQuery('#jform_datalenght').attr('aria-required',true);
jQuery('#jform_store').addClass('required'); jQuery('#jform_datalenght').addClass('required');
jform_vvvvwbwvxo_required = false; jform_vvvvwbwvxo_required = false;
} }
} }
else else
{ {
jQuery('#jform_store').closest('.control-group').hide(); jQuery('#jform_datalenght').closest('.control-group').hide();
// remove required attribute from store field // remove required attribute from datalenght field
if (!jform_vvvvwbwvxo_required) if (!jform_vvvvwbwvxo_required)
{ {
updateFieldRequired('store',1); updateFieldRequired('datalenght',1);
jQuery('#jform_store').removeAttr('required'); jQuery('#jform_datalenght').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required'); jQuery('#jform_datalenght').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required'); jQuery('#jform_datalenght').removeClass('required');
jform_vvvvwbwvxo_required = true; jform_vvvvwbwvxo_required = true;
} }
} }
@ -267,7 +269,7 @@ function vvvvwbw(datatype_vvvvwbw)
function datatype_vvvvwbw_SomeFunc(datatype_vvvvwbw) function datatype_vvvvwbw_SomeFunc(datatype_vvvvwbw)
{ {
// set the function logic // set the function logic
if (datatype_vvvvwbw == 'CHAR' || datatype_vvvvwbw == 'VARCHAR' || datatype_vvvvwbw == 'TEXT' || datatype_vvvvwbw == 'MEDIUMTEXT' || datatype_vvvvwbw == 'LONGTEXT' || datatype_vvvvwbw == 'BLOB' || datatype_vvvvwbw == 'TINYBLOB' || datatype_vvvvwbw == 'MEDIUMBLOB' || datatype_vvvvwbw == 'LONGBLOB') if (datatype_vvvvwbw == 'CHAR' || datatype_vvvvwbw == 'VARCHAR' || datatype_vvvvwbw == 'INT' || datatype_vvvvwbw == 'TINYINT' || datatype_vvvvwbw == 'BIGINT' || datatype_vvvvwbw == 'FLOAT' || datatype_vvvvwbw == 'DECIMAL' || datatype_vvvvwbw == 'DOUBLE')
{ {
return true; return true;
} }
@ -275,20 +277,8 @@ function datatype_vvvvwbw_SomeFunc(datatype_vvvvwbw)
} }
// the vvvvwbx function // the vvvvwbx function
function vvvvwbx(store_vvvvwbx,datatype_vvvvwbx) function vvvvwbx(datatype_vvvvwbx)
{ {
if (isSet(store_vvvvwbx) && store_vvvvwbx.constructor !== Array)
{
var temp_vvvvwbx = store_vvvvwbx;
var store_vvvvwbx = [];
store_vvvvwbx.push(temp_vvvvwbx);
}
else if (!isSet(store_vvvvwbx))
{
var store_vvvvwbx = [];
}
var store = store_vvvvwbx.some(store_vvvvwbx_SomeFunc);
if (isSet(datatype_vvvvwbx) && datatype_vvvvwbx.constructor !== Array) if (isSet(datatype_vvvvwbx) && datatype_vvvvwbx.constructor !== Array)
{ {
var temp_vvvvwbx = datatype_vvvvwbx; var temp_vvvvwbx = datatype_vvvvwbx;
@ -303,27 +293,34 @@ function vvvvwbx(store_vvvvwbx,datatype_vvvvwbx)
// set this function logic // set this function logic
if (store && datatype) if (datatype)
{ {
jQuery('.note_whmcs_encryption').closest('.control-group').show(); jQuery('#jform_store').closest('.control-group').show();
// add required attribute to store field
if (jform_vvvvwbxvxp_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwbxvxp_required = false;
}
} }
else else
{ {
jQuery('.note_whmcs_encryption').closest('.control-group').hide(); jQuery('#jform_store').closest('.control-group').hide();
// remove required attribute from store field
if (!jform_vvvvwbxvxp_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwbxvxp_required = true;
}
} }
} }
// the vvvvwbx Some function
function store_vvvvwbx_SomeFunc(store_vvvvwbx)
{
// set the function logic
if (store_vvvvwbx == 4)
{
return true;
}
return false;
}
// the vvvvwbx Some function // the vvvvwbx Some function
function datatype_vvvvwbx_SomeFunc(datatype_vvvvwbx) function datatype_vvvvwbx_SomeFunc(datatype_vvvvwbx)
{ {
@ -335,11 +332,72 @@ function datatype_vvvvwbx_SomeFunc(datatype_vvvvwbx)
return false; return false;
} }
// the vvvvwbz function // the vvvvwby function
function vvvvwbz(add_css_view_vvvvwbz) function vvvvwby(store_vvvvwby,datatype_vvvvwby)
{
if (isSet(store_vvvvwby) && store_vvvvwby.constructor !== Array)
{
var temp_vvvvwby = store_vvvvwby;
var store_vvvvwby = [];
store_vvvvwby.push(temp_vvvvwby);
}
else if (!isSet(store_vvvvwby))
{
var store_vvvvwby = [];
}
var store = store_vvvvwby.some(store_vvvvwby_SomeFunc);
if (isSet(datatype_vvvvwby) && datatype_vvvvwby.constructor !== Array)
{
var temp_vvvvwby = datatype_vvvvwby;
var datatype_vvvvwby = [];
datatype_vvvvwby.push(temp_vvvvwby);
}
else if (!isSet(datatype_vvvvwby))
{
var datatype_vvvvwby = [];
}
var datatype = datatype_vvvvwby.some(datatype_vvvvwby_SomeFunc);
// set this function logic
if (store && datatype)
{
jQuery('.note_whmcs_encryption').closest('.control-group').show();
}
else
{
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
}
}
// the vvvvwby Some function
function store_vvvvwby_SomeFunc(store_vvvvwby)
{ {
// set the function logic // set the function logic
if (add_css_view_vvvvwbz == 1) if (store_vvvvwby == 4)
{
return true;
}
return false;
}
// the vvvvwby Some function
function datatype_vvvvwby_SomeFunc(datatype_vvvvwby)
{
// set the function logic
if (datatype_vvvvwby == 'CHAR' || datatype_vvvvwby == 'VARCHAR' || datatype_vvvvwby == 'TEXT' || datatype_vvvvwby == 'MEDIUMTEXT' || datatype_vvvvwby == 'LONGTEXT' || datatype_vvvvwby == 'BLOB' || datatype_vvvvwby == 'TINYBLOB' || datatype_vvvvwby == 'MEDIUMBLOB' || datatype_vvvvwby == 'LONGBLOB')
{
return true;
}
return false;
}
// the vvvvwca function
function vvvvwca(add_css_view_vvvvwca)
{
// set the function logic
if (add_css_view_vvvvwca == 1)
{ {
jQuery('#jform_css_view-lbl').closest('.control-group').show(); jQuery('#jform_css_view-lbl').closest('.control-group').show();
} }
@ -349,11 +407,11 @@ function vvvvwbz(add_css_view_vvvvwbz)
} }
} }
// the vvvvwca function // the vvvvwcb function
function vvvvwca(add_css_views_vvvvwca) function vvvvwcb(add_css_views_vvvvwcb)
{ {
// set the function logic // set the function logic
if (add_css_views_vvvvwca == 1) if (add_css_views_vvvvwcb == 1)
{ {
jQuery('#jform_css_views-lbl').closest('.control-group').show(); jQuery('#jform_css_views-lbl').closest('.control-group').show();
} }
@ -363,11 +421,11 @@ function vvvvwca(add_css_views_vvvvwca)
} }
} }
// the vvvvwcb function // the vvvvwcc function
function vvvvwcb(add_javascript_view_footer_vvvvwcb) function vvvvwcc(add_javascript_view_footer_vvvvwcc)
{ {
// set the function logic // set the function logic
if (add_javascript_view_footer_vvvvwcb == 1) if (add_javascript_view_footer_vvvvwcc == 1)
{ {
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
} }
@ -377,11 +435,11 @@ function vvvvwcb(add_javascript_view_footer_vvvvwcb)
} }
} }
// the vvvvwcc function // the vvvvwcd function
function vvvvwcc(add_javascript_views_footer_vvvvwcc) function vvvvwcd(add_javascript_views_footer_vvvvwcd)
{ {
// set the function logic // set the function logic
if (add_javascript_views_footer_vvvvwcc == 1) if (add_javascript_views_footer_vvvvwcd == 1)
{ {
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
} }

View File

@ -300,6 +300,7 @@
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_DESCRIPTION"
class="btn-group" class="btn-group"
multiple="false" multiple="false"
required="true"
default=""> default="">
<!-- Option Set. --> <!-- Option Set. -->
<option value=""> <option value="">
@ -393,10 +394,8 @@
maxlength="50" maxlength="50"
description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_DESCRIPTION"
class="text_area" class="text_area"
readonly="false"
disabled="false"
required="true" required="true"
filter="STRING" filter="INT"
message="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE" message="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT" hint="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT"
/> />

File diff suppressed because it is too large Load Diff

View File

@ -181,10 +181,8 @@
maxlength="50" maxlength="50"
description="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_DESCRIPTION"
class="text_area" class="text_area"
readonly="false"
disabled="false"
required="true" required="true"
filter="STRING" filter="INT"
message="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_MESSAGE" message="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_MESSAGE"
hint="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_HINT" hint="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_HINT"
/> />
@ -196,6 +194,7 @@
description="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_DESCRIPTION"
class="btn-group" class="btn-group"
multiple="false" multiple="false"
required="true"
default=""> default="">
<!-- Option Set. --> <!-- Option Set. -->
<option value=""> <option value="">

View File

@ -9,112 +9,112 @@
*/ */
// Some Global Values // Some Global Values
jform_vvvvwczvyh_required = false; jform_vvvvwdcvyj_required = false;
jform_vvvvwdavyi_required = false; jform_vvvvwddvyk_required = false;
jform_vvvvwdbvyj_required = false;
jform_vvvvwdcvyk_required = false;
jform_vvvvwdevyl_required = false; jform_vvvvwdevyl_required = false;
jform_vvvvwdfvym_required = false;
jform_vvvvwdhvyn_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var location_vvvvwcz = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvwdc = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwcz(location_vvvvwcz); vvvvwdc(location_vvvvwdc);
var location_vvvvwda = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvwdd = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwda(location_vvvvwda); vvvvwdd(location_vvvvwdd);
var type_vvvvwdb = jQuery("#jform_type").val(); var type_vvvvwde = jQuery("#jform_type").val();
vvvvwdb(type_vvvvwdb); vvvvwde(type_vvvvwde);
var type_vvvvwdc = jQuery("#jform_type").val(); var type_vvvvwdf = jQuery("#jform_type").val();
vvvvwdc(type_vvvvwdc); vvvvwdf(type_vvvvwdf);
var type_vvvvwdd = jQuery("#jform_type").val(); var type_vvvvwdg = jQuery("#jform_type").val();
vvvvwdd(type_vvvvwdd); vvvvwdg(type_vvvvwdg);
var target_vvvvwde = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwdh = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwde(target_vvvvwde); vvvvwdh(target_vvvvwdh);
}); });
// the vvvvwcz function // the vvvvwdc function
function vvvvwcz(location_vvvvwcz) function vvvvwdc(location_vvvvwdc)
{ {
// set the function logic // set the function logic
if (location_vvvvwcz == 1) if (location_vvvvwdc == 1)
{ {
jQuery('#jform_admin_view').closest('.control-group').show(); jQuery('#jform_admin_view').closest('.control-group').show();
// add required attribute to admin_view field // add required attribute to admin_view field
if (jform_vvvvwczvyh_required) if (jform_vvvvwdcvyj_required)
{ {
updateFieldRequired('admin_view',0); updateFieldRequired('admin_view',0);
jQuery('#jform_admin_view').prop('required','required'); jQuery('#jform_admin_view').prop('required','required');
jQuery('#jform_admin_view').attr('aria-required',true); jQuery('#jform_admin_view').attr('aria-required',true);
jQuery('#jform_admin_view').addClass('required'); jQuery('#jform_admin_view').addClass('required');
jform_vvvvwczvyh_required = false; jform_vvvvwdcvyj_required = false;
} }
} }
else else
{ {
jQuery('#jform_admin_view').closest('.control-group').hide(); jQuery('#jform_admin_view').closest('.control-group').hide();
// remove required attribute from admin_view field // remove required attribute from admin_view field
if (!jform_vvvvwczvyh_required) if (!jform_vvvvwdcvyj_required)
{ {
updateFieldRequired('admin_view',1); updateFieldRequired('admin_view',1);
jQuery('#jform_admin_view').removeAttr('required'); jQuery('#jform_admin_view').removeAttr('required');
jQuery('#jform_admin_view').removeAttr('aria-required'); jQuery('#jform_admin_view').removeAttr('aria-required');
jQuery('#jform_admin_view').removeClass('required'); jQuery('#jform_admin_view').removeClass('required');
jform_vvvvwczvyh_required = true; jform_vvvvwdcvyj_required = true;
} }
} }
} }
// the vvvvwda function // the vvvvwdd function
function vvvvwda(location_vvvvwda) function vvvvwdd(location_vvvvwdd)
{ {
// set the function logic // set the function logic
if (location_vvvvwda == 2) if (location_vvvvwdd == 2)
{ {
jQuery('#jform_site_view').closest('.control-group').show(); jQuery('#jform_site_view').closest('.control-group').show();
// add required attribute to site_view field // add required attribute to site_view field
if (jform_vvvvwdavyi_required) if (jform_vvvvwddvyk_required)
{ {
updateFieldRequired('site_view',0); updateFieldRequired('site_view',0);
jQuery('#jform_site_view').prop('required','required'); jQuery('#jform_site_view').prop('required','required');
jQuery('#jform_site_view').attr('aria-required',true); jQuery('#jform_site_view').attr('aria-required',true);
jQuery('#jform_site_view').addClass('required'); jQuery('#jform_site_view').addClass('required');
jform_vvvvwdavyi_required = false; jform_vvvvwddvyk_required = false;
} }
} }
else else
{ {
jQuery('#jform_site_view').closest('.control-group').hide(); jQuery('#jform_site_view').closest('.control-group').hide();
// remove required attribute from site_view field // remove required attribute from site_view field
if (!jform_vvvvwdavyi_required) if (!jform_vvvvwddvyk_required)
{ {
updateFieldRequired('site_view',1); updateFieldRequired('site_view',1);
jQuery('#jform_site_view').removeAttr('required'); jQuery('#jform_site_view').removeAttr('required');
jQuery('#jform_site_view').removeAttr('aria-required'); jQuery('#jform_site_view').removeAttr('aria-required');
jQuery('#jform_site_view').removeClass('required'); jQuery('#jform_site_view').removeClass('required');
jform_vvvvwdavyi_required = true; jform_vvvvwddvyk_required = true;
} }
} }
} }
// the vvvvwdb function // the vvvvwde function
function vvvvwdb(type_vvvvwdb) function vvvvwde(type_vvvvwde)
{ {
if (isSet(type_vvvvwdb) && type_vvvvwdb.constructor !== Array) if (isSet(type_vvvvwde) && type_vvvvwde.constructor !== Array)
{ {
var temp_vvvvwdb = type_vvvvwdb; var temp_vvvvwde = type_vvvvwde;
var type_vvvvwdb = []; var type_vvvvwde = [];
type_vvvvwdb.push(temp_vvvvwdb); type_vvvvwde.push(temp_vvvvwde);
} }
else if (!isSet(type_vvvvwdb)) else if (!isSet(type_vvvvwde))
{ {
var type_vvvvwdb = []; var type_vvvvwde = [];
} }
var type = type_vvvvwdb.some(type_vvvvwdb_SomeFunc); var type = type_vvvvwde.some(type_vvvvwde_SomeFunc);
// set this function logic // set this function logic
@ -122,55 +122,55 @@ function vvvvwdb(type_vvvvwdb)
{ {
jQuery('#jform_url').closest('.control-group').show(); jQuery('#jform_url').closest('.control-group').show();
// add required attribute to url field // add required attribute to url field
if (jform_vvvvwdbvyj_required) if (jform_vvvvwdevyl_required)
{ {
updateFieldRequired('url',0); updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required'); jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true); jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required'); jQuery('#jform_url').addClass('required');
jform_vvvvwdbvyj_required = false; jform_vvvvwdevyl_required = false;
} }
} }
else else
{ {
jQuery('#jform_url').closest('.control-group').hide(); jQuery('#jform_url').closest('.control-group').hide();
// remove required attribute from url field // remove required attribute from url field
if (!jform_vvvvwdbvyj_required) if (!jform_vvvvwdevyl_required)
{ {
updateFieldRequired('url',1); updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required'); jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required'); jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required'); jQuery('#jform_url').removeClass('required');
jform_vvvvwdbvyj_required = true; jform_vvvvwdevyl_required = true;
} }
} }
} }
// the vvvvwdb Some function // the vvvvwde Some function
function type_vvvvwdb_SomeFunc(type_vvvvwdb) function type_vvvvwde_SomeFunc(type_vvvvwde)
{ {
// set the function logic // set the function logic
if (type_vvvvwdb == 3) if (type_vvvvwde == 3)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwdc function // the vvvvwdf function
function vvvvwdc(type_vvvvwdc) function vvvvwdf(type_vvvvwdf)
{ {
if (isSet(type_vvvvwdc) && type_vvvvwdc.constructor !== Array) if (isSet(type_vvvvwdf) && type_vvvvwdf.constructor !== Array)
{ {
var temp_vvvvwdc = type_vvvvwdc; var temp_vvvvwdf = type_vvvvwdf;
var type_vvvvwdc = []; var type_vvvvwdf = [];
type_vvvvwdc.push(temp_vvvvwdc); type_vvvvwdf.push(temp_vvvvwdf);
} }
else if (!isSet(type_vvvvwdc)) else if (!isSet(type_vvvvwdf))
{ {
var type_vvvvwdc = []; var type_vvvvwdf = [];
} }
var type = type_vvvvwdc.some(type_vvvvwdc_SomeFunc); var type = type_vvvvwdf.some(type_vvvvwdf_SomeFunc);
// set this function logic // set this function logic
@ -178,55 +178,55 @@ function vvvvwdc(type_vvvvwdc)
{ {
jQuery('#jform_article').closest('.control-group').show(); jQuery('#jform_article').closest('.control-group').show();
// add required attribute to article field // add required attribute to article field
if (jform_vvvvwdcvyk_required) if (jform_vvvvwdfvym_required)
{ {
updateFieldRequired('article',0); updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required'); jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true); jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required'); jQuery('#jform_article').addClass('required');
jform_vvvvwdcvyk_required = false; jform_vvvvwdfvym_required = false;
} }
} }
else else
{ {
jQuery('#jform_article').closest('.control-group').hide(); jQuery('#jform_article').closest('.control-group').hide();
// remove required attribute from article field // remove required attribute from article field
if (!jform_vvvvwdcvyk_required) if (!jform_vvvvwdfvym_required)
{ {
updateFieldRequired('article',1); updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required'); jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required'); jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required'); jQuery('#jform_article').removeClass('required');
jform_vvvvwdcvyk_required = true; jform_vvvvwdfvym_required = true;
} }
} }
} }
// the vvvvwdc Some function // the vvvvwdf Some function
function type_vvvvwdc_SomeFunc(type_vvvvwdc) function type_vvvvwdf_SomeFunc(type_vvvvwdf)
{ {
// set the function logic // set the function logic
if (type_vvvvwdc == 1) if (type_vvvvwdf == 1)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwdd function // the vvvvwdg function
function vvvvwdd(type_vvvvwdd) function vvvvwdg(type_vvvvwdg)
{ {
if (isSet(type_vvvvwdd) && type_vvvvwdd.constructor !== Array) if (isSet(type_vvvvwdg) && type_vvvvwdg.constructor !== Array)
{ {
var temp_vvvvwdd = type_vvvvwdd; var temp_vvvvwdg = type_vvvvwdg;
var type_vvvvwdd = []; var type_vvvvwdg = [];
type_vvvvwdd.push(temp_vvvvwdd); type_vvvvwdg.push(temp_vvvvwdg);
} }
else if (!isSet(type_vvvvwdd)) else if (!isSet(type_vvvvwdg))
{ {
var type_vvvvwdd = []; var type_vvvvwdg = [];
} }
var type = type_vvvvwdd.some(type_vvvvwdd_SomeFunc); var type = type_vvvvwdg.some(type_vvvvwdg_SomeFunc);
// set this function logic // set this function logic
@ -240,45 +240,45 @@ function vvvvwdd(type_vvvvwdd)
} }
} }
// the vvvvwdd Some function // the vvvvwdg Some function
function type_vvvvwdd_SomeFunc(type_vvvvwdd) function type_vvvvwdg_SomeFunc(type_vvvvwdg)
{ {
// set the function logic // set the function logic
if (type_vvvvwdd == 2) if (type_vvvvwdg == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwde function // the vvvvwdh function
function vvvvwde(target_vvvvwde) function vvvvwdh(target_vvvvwdh)
{ {
// set the function logic // set the function logic
if (target_vvvvwde == 1) if (target_vvvvwdh == 1)
{ {
jQuery('#jform_groups').closest('.control-group').show(); jQuery('#jform_groups').closest('.control-group').show();
// add required attribute to groups field // add required attribute to groups field
if (jform_vvvvwdevyl_required) if (jform_vvvvwdhvyn_required)
{ {
updateFieldRequired('groups',0); updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required'); jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true); jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required'); jQuery('#jform_groups').addClass('required');
jform_vvvvwdevyl_required = false; jform_vvvvwdhvyn_required = false;
} }
} }
else else
{ {
jQuery('#jform_groups').closest('.control-group').hide(); jQuery('#jform_groups').closest('.control-group').hide();
// remove required attribute from groups field // remove required attribute from groups field
if (!jform_vvvvwdevyl_required) if (!jform_vvvvwdhvyn_required)
{ {
updateFieldRequired('groups',1); updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required'); jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required'); jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required'); jQuery('#jform_groups').removeClass('required');
jform_vvvvwdevyl_required = true; jform_vvvvwdhvyn_required = true;
} }
} }
} }

View File

@ -9,56 +9,56 @@
*/ */
// Some Global Values // Some Global Values
jform_vvvvwcpvxx_required = false; jform_vvvvwcsvxz_required = false;
jform_vvvvwcpvxy_required = false; jform_vvvvwcsvya_required = false;
jform_vvvvwcpvxz_required = false; jform_vvvvwcsvyb_required = false;
jform_vvvvwcpvya_required = false; jform_vvvvwcsvyc_required = false;
jform_vvvvwcpvyb_required = false; jform_vvvvwcsvyd_required = false;
jform_vvvvwcqvyc_required = false;
jform_vvvvwcrvyd_required = false;
jform_vvvvwctvye_required = false; jform_vvvvwctvye_required = false;
jform_vvvvwcvvyf_required = false; jform_vvvvwcuvyf_required = false;
jform_vvvvwcwvyg_required = false;
jform_vvvvwcyvyh_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var protocol_vvvvwcp = jQuery("#jform_protocol").val(); var protocol_vvvvwcs = jQuery("#jform_protocol").val();
vvvvwcp(protocol_vvvvwcp); vvvvwcs(protocol_vvvvwcs);
var protocol_vvvvwcq = jQuery("#jform_protocol").val();
vvvvwcq(protocol_vvvvwcq);
var protocol_vvvvwcr = jQuery("#jform_protocol").val();
var authentication_vvvvwcr = jQuery("#jform_authentication").val();
vvvvwcr(protocol_vvvvwcr,authentication_vvvvwcr);
var protocol_vvvvwct = jQuery("#jform_protocol").val(); var protocol_vvvvwct = jQuery("#jform_protocol").val();
var authentication_vvvvwct = jQuery("#jform_authentication").val(); vvvvwct(protocol_vvvvwct);
vvvvwct(protocol_vvvvwct,authentication_vvvvwct);
var protocol_vvvvwcv = jQuery("#jform_protocol").val(); var protocol_vvvvwcu = jQuery("#jform_protocol").val();
var authentication_vvvvwcv = jQuery("#jform_authentication").val(); var authentication_vvvvwcu = jQuery("#jform_authentication").val();
vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv); vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu);
var protocol_vvvvwcx = jQuery("#jform_protocol").val(); var protocol_vvvvwcw = jQuery("#jform_protocol").val();
var authentication_vvvvwcx = jQuery("#jform_authentication").val(); var authentication_vvvvwcw = jQuery("#jform_authentication").val();
vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx); vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw);
var protocol_vvvvwcy = jQuery("#jform_protocol").val();
var authentication_vvvvwcy = jQuery("#jform_authentication").val();
vvvvwcy(protocol_vvvvwcy,authentication_vvvvwcy);
var protocol_vvvvwda = jQuery("#jform_protocol").val();
var authentication_vvvvwda = jQuery("#jform_authentication").val();
vvvvwda(protocol_vvvvwda,authentication_vvvvwda);
}); });
// the vvvvwcp function // the vvvvwcs function
function vvvvwcp(protocol_vvvvwcp) function vvvvwcs(protocol_vvvvwcs)
{ {
if (isSet(protocol_vvvvwcp) && protocol_vvvvwcp.constructor !== Array) if (isSet(protocol_vvvvwcs) && protocol_vvvvwcs.constructor !== Array)
{ {
var temp_vvvvwcp = protocol_vvvvwcp; var temp_vvvvwcs = protocol_vvvvwcs;
var protocol_vvvvwcp = []; var protocol_vvvvwcs = [];
protocol_vvvvwcp.push(temp_vvvvwcp); protocol_vvvvwcs.push(temp_vvvvwcs);
} }
else if (!isSet(protocol_vvvvwcp)) else if (!isSet(protocol_vvvvwcs))
{ {
var protocol_vvvvwcp = []; var protocol_vvvvwcs = [];
} }
var protocol = protocol_vvvvwcp.some(protocol_vvvvwcp_SomeFunc); var protocol = protocol_vvvvwcs.some(protocol_vvvvwcs_SomeFunc);
// set this function logic // set this function logic
@ -66,254 +66,117 @@ function vvvvwcp(protocol_vvvvwcp)
{ {
jQuery('#jform_authentication').closest('.control-group').show(); jQuery('#jform_authentication').closest('.control-group').show();
// add required attribute to authentication field // add required attribute to authentication field
if (jform_vvvvwcpvxx_required) if (jform_vvvvwcsvxz_required)
{ {
updateFieldRequired('authentication',0); updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required'); jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true); jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required'); jQuery('#jform_authentication').addClass('required');
jform_vvvvwcpvxx_required = false; jform_vvvvwcsvxz_required = false;
} }
jQuery('#jform_host').closest('.control-group').show(); jQuery('#jform_host').closest('.control-group').show();
// add required attribute to host field // add required attribute to host field
if (jform_vvvvwcpvxy_required) if (jform_vvvvwcsvya_required)
{ {
updateFieldRequired('host',0); updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required'); jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true); jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required'); jQuery('#jform_host').addClass('required');
jform_vvvvwcpvxy_required = false; jform_vvvvwcsvya_required = false;
} }
jQuery('#jform_port').closest('.control-group').show(); jQuery('#jform_port').closest('.control-group').show();
// add required attribute to port field // add required attribute to port field
if (jform_vvvvwcpvxz_required) if (jform_vvvvwcsvyb_required)
{ {
updateFieldRequired('port',0); updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required'); jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true); jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required'); jQuery('#jform_port').addClass('required');
jform_vvvvwcpvxz_required = false; jform_vvvvwcsvyb_required = false;
} }
jQuery('#jform_path').closest('.control-group').show(); jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field // add required attribute to path field
if (jform_vvvvwcpvya_required) if (jform_vvvvwcsvyc_required)
{ {
updateFieldRequired('path',0); updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required'); jQuery('#jform_path').addClass('required');
jform_vvvvwcpvya_required = false; jform_vvvvwcsvyc_required = false;
} }
jQuery('.note_ssh_security').closest('.control-group').show(); jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show(); jQuery('#jform_username').closest('.control-group').show();
// add required attribute to username field // add required attribute to username field
if (jform_vvvvwcpvyb_required) if (jform_vvvvwcsvyd_required)
{ {
updateFieldRequired('username',0); updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required'); jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true); jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required'); jQuery('#jform_username').addClass('required');
jform_vvvvwcpvyb_required = false; jform_vvvvwcsvyd_required = false;
} }
} }
else else
{ {
jQuery('#jform_authentication').closest('.control-group').hide(); jQuery('#jform_authentication').closest('.control-group').hide();
// remove required attribute from authentication field // remove required attribute from authentication field
if (!jform_vvvvwcpvxx_required) if (!jform_vvvvwcsvxz_required)
{ {
updateFieldRequired('authentication',1); updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required'); jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required'); jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required'); jQuery('#jform_authentication').removeClass('required');
jform_vvvvwcpvxx_required = true; jform_vvvvwcsvxz_required = true;
} }
jQuery('#jform_host').closest('.control-group').hide(); jQuery('#jform_host').closest('.control-group').hide();
// remove required attribute from host field // remove required attribute from host field
if (!jform_vvvvwcpvxy_required) if (!jform_vvvvwcsvya_required)
{ {
updateFieldRequired('host',1); updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required'); jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required'); jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required'); jQuery('#jform_host').removeClass('required');
jform_vvvvwcpvxy_required = true; jform_vvvvwcsvya_required = true;
} }
jQuery('#jform_port').closest('.control-group').hide(); jQuery('#jform_port').closest('.control-group').hide();
// remove required attribute from port field // remove required attribute from port field
if (!jform_vvvvwcpvxz_required) if (!jform_vvvvwcsvyb_required)
{ {
updateFieldRequired('port',1); updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required'); jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required'); jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required'); jQuery('#jform_port').removeClass('required');
jform_vvvvwcpvxz_required = true; jform_vvvvwcsvyb_required = true;
} }
jQuery('#jform_path').closest('.control-group').hide(); jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field // remove required attribute from path field
if (!jform_vvvvwcpvya_required) if (!jform_vvvvwcsvyc_required)
{ {
updateFieldRequired('path',1); updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required'); jQuery('#jform_path').removeClass('required');
jform_vvvvwcpvya_required = true; jform_vvvvwcsvyc_required = true;
} }
jQuery('.note_ssh_security').closest('.control-group').hide(); jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide(); jQuery('#jform_username').closest('.control-group').hide();
// remove required attribute from username field // remove required attribute from username field
if (!jform_vvvvwcpvyb_required) if (!jform_vvvvwcsvyd_required)
{ {
updateFieldRequired('username',1); updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required'); jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required'); jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required'); jQuery('#jform_username').removeClass('required');
jform_vvvvwcpvyb_required = true; jform_vvvvwcsvyd_required = true;
} }
} }
} }
// the vvvvwcp Some function // the vvvvwcs Some function
function protocol_vvvvwcp_SomeFunc(protocol_vvvvwcp) function protocol_vvvvwcs_SomeFunc(protocol_vvvvwcs)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwcp == 2) if (protocol_vvvvwcs == 2)
{
return true;
}
return false;
}
// the vvvvwcq function
function vvvvwcq(protocol_vvvvwcq)
{
if (isSet(protocol_vvvvwcq) && protocol_vvvvwcq.constructor !== Array)
{
var temp_vvvvwcq = protocol_vvvvwcq;
var protocol_vvvvwcq = [];
protocol_vvvvwcq.push(temp_vvvvwcq);
}
else if (!isSet(protocol_vvvvwcq))
{
var protocol_vvvvwcq = [];
}
var protocol = protocol_vvvvwcq.some(protocol_vvvvwcq_SomeFunc);
// set this function logic
if (protocol)
{
jQuery('.note_ftp_signature').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show();
// add required attribute to signature field
if (jform_vvvvwcqvyc_required)
{
updateFieldRequired('signature',0);
jQuery('#jform_signature').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_signature').addClass('required');
jform_vvvvwcqvyc_required = false;
}
}
else
{
jQuery('.note_ftp_signature').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide();
// remove required attribute from signature field
if (!jform_vvvvwcqvyc_required)
{
updateFieldRequired('signature',1);
jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required');
jform_vvvvwcqvyc_required = true;
}
}
}
// the vvvvwcq Some function
function protocol_vvvvwcq_SomeFunc(protocol_vvvvwcq)
{
// set the function logic
if (protocol_vvvvwcq == 1)
{
return true;
}
return false;
}
// the vvvvwcr function
function vvvvwcr(protocol_vvvvwcr,authentication_vvvvwcr)
{
if (isSet(protocol_vvvvwcr) && protocol_vvvvwcr.constructor !== Array)
{
var temp_vvvvwcr = protocol_vvvvwcr;
var protocol_vvvvwcr = [];
protocol_vvvvwcr.push(temp_vvvvwcr);
}
else if (!isSet(protocol_vvvvwcr))
{
var protocol_vvvvwcr = [];
}
var protocol = protocol_vvvvwcr.some(protocol_vvvvwcr_SomeFunc);
if (isSet(authentication_vvvvwcr) && authentication_vvvvwcr.constructor !== Array)
{
var temp_vvvvwcr = authentication_vvvvwcr;
var authentication_vvvvwcr = [];
authentication_vvvvwcr.push(temp_vvvvwcr);
}
else if (!isSet(authentication_vvvvwcr))
{
var authentication_vvvvwcr = [];
}
var authentication = authentication_vvvvwcr.some(authentication_vvvvwcr_SomeFunc);
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_password').closest('.control-group').show();
// add required attribute to password field
if (jform_vvvvwcrvyd_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwcrvyd_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
// remove required attribute from password field
if (!jform_vvvvwcrvyd_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwcrvyd_required = true;
}
}
}
// the vvvvwcr Some function
function protocol_vvvvwcr_SomeFunc(protocol_vvvvwcr)
{
// set the function logic
if (protocol_vvvvwcr == 2)
{
return true;
}
return false;
}
// the vvvvwcr Some function
function authentication_vvvvwcr_SomeFunc(authentication_vvvvwcr)
{
// set the function logic
if (authentication_vvvvwcr == 1 || authentication_vvvvwcr == 3 || authentication_vvvvwcr == 5)
{ {
return true; return true;
} }
@ -321,7 +184,7 @@ function authentication_vvvvwcr_SomeFunc(authentication_vvvvwcr)
} }
// the vvvvwct function // the vvvvwct function
function vvvvwct(protocol_vvvvwct,authentication_vvvvwct) function vvvvwct(protocol_vvvvwct)
{ {
if (isSet(protocol_vvvvwct) && protocol_vvvvwct.constructor !== Array) if (isSet(protocol_vvvvwct) && protocol_vvvvwct.constructor !== Array)
{ {
@ -335,43 +198,33 @@ function vvvvwct(protocol_vvvvwct,authentication_vvvvwct)
} }
var protocol = protocol_vvvvwct.some(protocol_vvvvwct_SomeFunc); var protocol = protocol_vvvvwct.some(protocol_vvvvwct_SomeFunc);
if (isSet(authentication_vvvvwct) && authentication_vvvvwct.constructor !== Array)
{
var temp_vvvvwct = authentication_vvvvwct;
var authentication_vvvvwct = [];
authentication_vvvvwct.push(temp_vvvvwct);
}
else if (!isSet(authentication_vvvvwct))
{
var authentication_vvvvwct = [];
}
var authentication = authentication_vvvvwct.some(authentication_vvvvwct_SomeFunc);
// set this function logic // set this function logic
if (protocol && authentication) if (protocol)
{ {
jQuery('#jform_private').closest('.control-group').show(); jQuery('.note_ftp_signature').closest('.control-group').show();
// add required attribute to private field jQuery('#jform_signature').closest('.control-group').show();
// add required attribute to signature field
if (jform_vvvvwctvye_required) if (jform_vvvvwctvye_required)
{ {
updateFieldRequired('private',0); updateFieldRequired('signature',0);
jQuery('#jform_private').prop('required','required'); jQuery('#jform_signature').prop('required','required');
jQuery('#jform_private').attr('aria-required',true); jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_private').addClass('required'); jQuery('#jform_signature').addClass('required');
jform_vvvvwctvye_required = false; jform_vvvvwctvye_required = false;
} }
} }
else else
{ {
jQuery('#jform_private').closest('.control-group').hide(); jQuery('.note_ftp_signature').closest('.control-group').hide();
// remove required attribute from private field jQuery('#jform_signature').closest('.control-group').hide();
// remove required attribute from signature field
if (!jform_vvvvwctvye_required) if (!jform_vvvvwctvye_required)
{ {
updateFieldRequired('private',1); updateFieldRequired('signature',1);
jQuery('#jform_private').removeAttr('required'); jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_private').removeAttr('aria-required'); jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_private').removeClass('required'); jQuery('#jform_signature').removeClass('required');
jform_vvvvwctvye_required = true; jform_vvvvwctvye_required = true;
} }
} }
@ -381,50 +234,197 @@ function vvvvwct(protocol_vvvvwct,authentication_vvvvwct)
function protocol_vvvvwct_SomeFunc(protocol_vvvvwct) function protocol_vvvvwct_SomeFunc(protocol_vvvvwct)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwct == 2) if (protocol_vvvvwct == 1)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwct Some function // the vvvvwcu function
function authentication_vvvvwct_SomeFunc(authentication_vvvvwct) function vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu)
{
if (isSet(protocol_vvvvwcu) && protocol_vvvvwcu.constructor !== Array)
{
var temp_vvvvwcu = protocol_vvvvwcu;
var protocol_vvvvwcu = [];
protocol_vvvvwcu.push(temp_vvvvwcu);
}
else if (!isSet(protocol_vvvvwcu))
{
var protocol_vvvvwcu = [];
}
var protocol = protocol_vvvvwcu.some(protocol_vvvvwcu_SomeFunc);
if (isSet(authentication_vvvvwcu) && authentication_vvvvwcu.constructor !== Array)
{
var temp_vvvvwcu = authentication_vvvvwcu;
var authentication_vvvvwcu = [];
authentication_vvvvwcu.push(temp_vvvvwcu);
}
else if (!isSet(authentication_vvvvwcu))
{
var authentication_vvvvwcu = [];
}
var authentication = authentication_vvvvwcu.some(authentication_vvvvwcu_SomeFunc);
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_password').closest('.control-group').show();
// add required attribute to password field
if (jform_vvvvwcuvyf_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwcuvyf_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
// remove required attribute from password field
if (!jform_vvvvwcuvyf_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwcuvyf_required = true;
}
}
}
// the vvvvwcu Some function
function protocol_vvvvwcu_SomeFunc(protocol_vvvvwcu)
{ {
// set the function logic // set the function logic
if (authentication_vvvvwct == 2 || authentication_vvvvwct == 3) if (protocol_vvvvwcu == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwcv function // the vvvvwcu Some function
function vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv) function authentication_vvvvwcu_SomeFunc(authentication_vvvvwcu)
{ {
if (isSet(protocol_vvvvwcv) && protocol_vvvvwcv.constructor !== Array) // set the function logic
if (authentication_vvvvwcu == 1 || authentication_vvvvwcu == 3 || authentication_vvvvwcu == 5)
{ {
var temp_vvvvwcv = protocol_vvvvwcv; return true;
var protocol_vvvvwcv = [];
protocol_vvvvwcv.push(temp_vvvvwcv);
} }
else if (!isSet(protocol_vvvvwcv)) return false;
{ }
var protocol_vvvvwcv = [];
}
var protocol = protocol_vvvvwcv.some(protocol_vvvvwcv_SomeFunc);
if (isSet(authentication_vvvvwcv) && authentication_vvvvwcv.constructor !== Array) // the vvvvwcw function
function vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw)
{
if (isSet(protocol_vvvvwcw) && protocol_vvvvwcw.constructor !== Array)
{ {
var temp_vvvvwcv = authentication_vvvvwcv; var temp_vvvvwcw = protocol_vvvvwcw;
var authentication_vvvvwcv = []; var protocol_vvvvwcw = [];
authentication_vvvvwcv.push(temp_vvvvwcv); protocol_vvvvwcw.push(temp_vvvvwcw);
} }
else if (!isSet(authentication_vvvvwcv)) else if (!isSet(protocol_vvvvwcw))
{ {
var authentication_vvvvwcv = []; var protocol_vvvvwcw = [];
} }
var authentication = authentication_vvvvwcv.some(authentication_vvvvwcv_SomeFunc); var protocol = protocol_vvvvwcw.some(protocol_vvvvwcw_SomeFunc);
if (isSet(authentication_vvvvwcw) && authentication_vvvvwcw.constructor !== Array)
{
var temp_vvvvwcw = authentication_vvvvwcw;
var authentication_vvvvwcw = [];
authentication_vvvvwcw.push(temp_vvvvwcw);
}
else if (!isSet(authentication_vvvvwcw))
{
var authentication_vvvvwcw = [];
}
var authentication = authentication_vvvvwcw.some(authentication_vvvvwcw_SomeFunc);
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_private').closest('.control-group').show();
// add required attribute to private field
if (jform_vvvvwcwvyg_required)
{
updateFieldRequired('private',0);
jQuery('#jform_private').prop('required','required');
jQuery('#jform_private').attr('aria-required',true);
jQuery('#jform_private').addClass('required');
jform_vvvvwcwvyg_required = false;
}
}
else
{
jQuery('#jform_private').closest('.control-group').hide();
// remove required attribute from private field
if (!jform_vvvvwcwvyg_required)
{
updateFieldRequired('private',1);
jQuery('#jform_private').removeAttr('required');
jQuery('#jform_private').removeAttr('aria-required');
jQuery('#jform_private').removeClass('required');
jform_vvvvwcwvyg_required = true;
}
}
}
// the vvvvwcw Some function
function protocol_vvvvwcw_SomeFunc(protocol_vvvvwcw)
{
// set the function logic
if (protocol_vvvvwcw == 2)
{
return true;
}
return false;
}
// the vvvvwcw Some function
function authentication_vvvvwcw_SomeFunc(authentication_vvvvwcw)
{
// set the function logic
if (authentication_vvvvwcw == 2 || authentication_vvvvwcw == 3)
{
return true;
}
return false;
}
// the vvvvwcy function
function vvvvwcy(protocol_vvvvwcy,authentication_vvvvwcy)
{
if (isSet(protocol_vvvvwcy) && protocol_vvvvwcy.constructor !== Array)
{
var temp_vvvvwcy = protocol_vvvvwcy;
var protocol_vvvvwcy = [];
protocol_vvvvwcy.push(temp_vvvvwcy);
}
else if (!isSet(protocol_vvvvwcy))
{
var protocol_vvvvwcy = [];
}
var protocol = protocol_vvvvwcy.some(protocol_vvvvwcy_SomeFunc);
if (isSet(authentication_vvvvwcy) && authentication_vvvvwcy.constructor !== Array)
{
var temp_vvvvwcy = authentication_vvvvwcy;
var authentication_vvvvwcy = [];
authentication_vvvvwcy.push(temp_vvvvwcy);
}
else if (!isSet(authentication_vvvvwcy))
{
var authentication_vvvvwcy = [];
}
var authentication = authentication_vvvvwcy.some(authentication_vvvvwcy_SomeFunc);
// set this function logic // set this function logic
@ -432,78 +432,78 @@ function vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv)
{ {
jQuery('#jform_private_key').closest('.control-group').show(); jQuery('#jform_private_key').closest('.control-group').show();
// add required attribute to private_key field // add required attribute to private_key field
if (jform_vvvvwcvvyf_required) if (jform_vvvvwcyvyh_required)
{ {
updateFieldRequired('private_key',0); updateFieldRequired('private_key',0);
jQuery('#jform_private_key').prop('required','required'); jQuery('#jform_private_key').prop('required','required');
jQuery('#jform_private_key').attr('aria-required',true); jQuery('#jform_private_key').attr('aria-required',true);
jQuery('#jform_private_key').addClass('required'); jQuery('#jform_private_key').addClass('required');
jform_vvvvwcvvyf_required = false; jform_vvvvwcyvyh_required = false;
} }
} }
else else
{ {
jQuery('#jform_private_key').closest('.control-group').hide(); jQuery('#jform_private_key').closest('.control-group').hide();
// remove required attribute from private_key field // remove required attribute from private_key field
if (!jform_vvvvwcvvyf_required) if (!jform_vvvvwcyvyh_required)
{ {
updateFieldRequired('private_key',1); updateFieldRequired('private_key',1);
jQuery('#jform_private_key').removeAttr('required'); jQuery('#jform_private_key').removeAttr('required');
jQuery('#jform_private_key').removeAttr('aria-required'); jQuery('#jform_private_key').removeAttr('aria-required');
jQuery('#jform_private_key').removeClass('required'); jQuery('#jform_private_key').removeClass('required');
jform_vvvvwcvvyf_required = true; jform_vvvvwcyvyh_required = true;
} }
} }
} }
// the vvvvwcv Some function // the vvvvwcy Some function
function protocol_vvvvwcv_SomeFunc(protocol_vvvvwcv) function protocol_vvvvwcy_SomeFunc(protocol_vvvvwcy)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwcv == 2) if (protocol_vvvvwcy == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwcv Some function // the vvvvwcy Some function
function authentication_vvvvwcv_SomeFunc(authentication_vvvvwcv) function authentication_vvvvwcy_SomeFunc(authentication_vvvvwcy)
{ {
// set the function logic // set the function logic
if (authentication_vvvvwcv == 4 || authentication_vvvvwcv == 5) if (authentication_vvvvwcy == 4 || authentication_vvvvwcy == 5)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwcx function // the vvvvwda function
function vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx) function vvvvwda(protocol_vvvvwda,authentication_vvvvwda)
{ {
if (isSet(protocol_vvvvwcx) && protocol_vvvvwcx.constructor !== Array) if (isSet(protocol_vvvvwda) && protocol_vvvvwda.constructor !== Array)
{ {
var temp_vvvvwcx = protocol_vvvvwcx; var temp_vvvvwda = protocol_vvvvwda;
var protocol_vvvvwcx = []; var protocol_vvvvwda = [];
protocol_vvvvwcx.push(temp_vvvvwcx); protocol_vvvvwda.push(temp_vvvvwda);
} }
else if (!isSet(protocol_vvvvwcx)) else if (!isSet(protocol_vvvvwda))
{ {
var protocol_vvvvwcx = []; var protocol_vvvvwda = [];
} }
var protocol = protocol_vvvvwcx.some(protocol_vvvvwcx_SomeFunc); var protocol = protocol_vvvvwda.some(protocol_vvvvwda_SomeFunc);
if (isSet(authentication_vvvvwcx) && authentication_vvvvwcx.constructor !== Array) if (isSet(authentication_vvvvwda) && authentication_vvvvwda.constructor !== Array)
{ {
var temp_vvvvwcx = authentication_vvvvwcx; var temp_vvvvwda = authentication_vvvvwda;
var authentication_vvvvwcx = []; var authentication_vvvvwda = [];
authentication_vvvvwcx.push(temp_vvvvwcx); authentication_vvvvwda.push(temp_vvvvwda);
} }
else if (!isSet(authentication_vvvvwcx)) else if (!isSet(authentication_vvvvwda))
{ {
var authentication_vvvvwcx = []; var authentication_vvvvwda = [];
} }
var authentication = authentication_vvvvwcx.some(authentication_vvvvwcx_SomeFunc); var authentication = authentication_vvvvwda.some(authentication_vvvvwda_SomeFunc);
// set this function logic // set this function logic
@ -517,22 +517,22 @@ function vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx)
} }
} }
// the vvvvwcx Some function // the vvvvwda Some function
function protocol_vvvvwcx_SomeFunc(protocol_vvvvwcx) function protocol_vvvvwda_SomeFunc(protocol_vvvvwda)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwcx == 2) if (protocol_vvvvwda == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwcx Some function // the vvvvwda Some function
function authentication_vvvvwcx_SomeFunc(authentication_vvvvwcx) function authentication_vvvvwda_SomeFunc(authentication_vvvvwda)
{ {
// set the function logic // set the function logic
if (authentication_vvvvwcx == 2 || authentication_vvvvwcx == 3 || authentication_vvvvwcx == 4 || authentication_vvvvwcx == 5) if (authentication_vvvvwda == 2 || authentication_vvvvwda == 3 || authentication_vvvvwda == 4 || authentication_vvvvwda == 5)
{ {
return true; return true;
} }

View File

@ -861,7 +861,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
{ {
// load the model // load the model
$_Model = ComponentbuilderHelper::getModel($_updateTable); $_Model = ComponentbuilderHelper::getModel($_updateTable);
// change publish state // delete items
$_Model->delete($_pks); $_Model->delete($_pks);
} }
} }

View File

@ -189,7 +189,7 @@ class ComponentbuilderModelServer extends JModelAdmin
* *
* @return mixed An array of data items on success, false on failure. * @return mixed An array of data items on success, false on failure.
*/ */
public function getVyglinked_components() public function getVyilinked_components()
{ {
// Get the user object. // Get the user object.
$user = JFactory::getUser(); $user = JFactory::getUser();

File diff suppressed because one or more lines are too long

View File

@ -207,97 +207,112 @@ jQuery('#adminForm').on('change', '#jform_datatype',function (e)
}); });
// #jform_store listeners for store_vvvvwbx function
jQuery('#jform_store').on('keyup',function()
{
var store_vvvvwbx = jQuery("#jform_store").val();
var datatype_vvvvwbx = jQuery("#jform_datatype").val();
vvvvwbx(store_vvvvwbx,datatype_vvvvwbx);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var store_vvvvwbx = jQuery("#jform_store").val();
var datatype_vvvvwbx = jQuery("#jform_datatype").val();
vvvvwbx(store_vvvvwbx,datatype_vvvvwbx);
});
// #jform_datatype listeners for datatype_vvvvwbx function // #jform_datatype listeners for datatype_vvvvwbx function
jQuery('#jform_datatype').on('keyup',function() jQuery('#jform_datatype').on('keyup',function()
{ {
var store_vvvvwbx = jQuery("#jform_store").val();
var datatype_vvvvwbx = jQuery("#jform_datatype").val(); var datatype_vvvvwbx = jQuery("#jform_datatype").val();
vvvvwbx(store_vvvvwbx,datatype_vvvvwbx); vvvvwbx(datatype_vvvvwbx);
}); });
jQuery('#adminForm').on('change', '#jform_datatype',function (e) jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var store_vvvvwbx = jQuery("#jform_store").val();
var datatype_vvvvwbx = jQuery("#jform_datatype").val(); var datatype_vvvvwbx = jQuery("#jform_datatype").val();
vvvvwbx(store_vvvvwbx,datatype_vvvvwbx); vvvvwbx(datatype_vvvvwbx);
}); });
// #jform_add_css_view listeners for add_css_view_vvvvwbz function // #jform_store listeners for store_vvvvwby function
jQuery('#jform_store').on('keyup',function()
{
var store_vvvvwby = jQuery("#jform_store").val();
var datatype_vvvvwby = jQuery("#jform_datatype").val();
vvvvwby(store_vvvvwby,datatype_vvvvwby);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var store_vvvvwby = jQuery("#jform_store").val();
var datatype_vvvvwby = jQuery("#jform_datatype").val();
vvvvwby(store_vvvvwby,datatype_vvvvwby);
});
// #jform_datatype listeners for datatype_vvvvwby function
jQuery('#jform_datatype').on('keyup',function()
{
var store_vvvvwby = jQuery("#jform_store").val();
var datatype_vvvvwby = jQuery("#jform_datatype").val();
vvvvwby(store_vvvvwby,datatype_vvvvwby);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var store_vvvvwby = jQuery("#jform_store").val();
var datatype_vvvvwby = jQuery("#jform_datatype").val();
vvvvwby(store_vvvvwby,datatype_vvvvwby);
});
// #jform_add_css_view listeners for add_css_view_vvvvwca function
jQuery('#jform_add_css_view').on('keyup',function() jQuery('#jform_add_css_view').on('keyup',function()
{ {
var add_css_view_vvvvwbz = jQuery("#jform_add_css_view input[type='radio']:checked").val(); var add_css_view_vvvvwca = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwbz(add_css_view_vvvvwbz); vvvvwca(add_css_view_vvvvwca);
}); });
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e) jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_css_view_vvvvwbz = jQuery("#jform_add_css_view input[type='radio']:checked").val(); var add_css_view_vvvvwca = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwbz(add_css_view_vvvvwbz); vvvvwca(add_css_view_vvvvwca);
}); });
// #jform_add_css_views listeners for add_css_views_vvvvwca function // #jform_add_css_views listeners for add_css_views_vvvvwcb function
jQuery('#jform_add_css_views').on('keyup',function() jQuery('#jform_add_css_views').on('keyup',function()
{ {
var add_css_views_vvvvwca = jQuery("#jform_add_css_views input[type='radio']:checked").val(); var add_css_views_vvvvwcb = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwca(add_css_views_vvvvwca); vvvvwcb(add_css_views_vvvvwcb);
}); });
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e) jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_css_views_vvvvwca = jQuery("#jform_add_css_views input[type='radio']:checked").val(); var add_css_views_vvvvwcb = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwca(add_css_views_vvvvwca); vvvvwcb(add_css_views_vvvvwcb);
}); });
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwcb function // #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwcc function
jQuery('#jform_add_javascript_view_footer').on('keyup',function() jQuery('#jform_add_javascript_view_footer').on('keyup',function()
{ {
var add_javascript_view_footer_vvvvwcb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); var add_javascript_view_footer_vvvvwcc = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwcb(add_javascript_view_footer_vvvvwcb); vvvvwcc(add_javascript_view_footer_vvvvwcc);
}); });
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e) jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_javascript_view_footer_vvvvwcb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); var add_javascript_view_footer_vvvvwcc = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwcb(add_javascript_view_footer_vvvvwcb); vvvvwcc(add_javascript_view_footer_vvvvwcc);
}); });
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvwcc function // #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvwcd function
jQuery('#jform_add_javascript_views_footer').on('keyup',function() jQuery('#jform_add_javascript_views_footer').on('keyup',function()
{ {
var add_javascript_views_footer_vvvvwcc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); var add_javascript_views_footer_vvvvwcd = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwcc(add_javascript_views_footer_vvvvwcc); vvvvwcd(add_javascript_views_footer_vvvvwcd);
}); });
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e) jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_javascript_views_footer_vvvvwcc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); var add_javascript_views_footer_vvvvwcd = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwcc(add_javascript_views_footer_vvvvwcc); vvvvwcd(add_javascript_views_footer_vvvvwcd);
}); });

View File

@ -136,230 +136,173 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<script type="text/javascript"> <script type="text/javascript">
// #jform_datalenght listeners for datalenght_vvvvwcd function // #jform_datalenght listeners for datalenght_vvvvwce function
jQuery('#jform_datalenght').on('keyup',function() jQuery('#jform_datalenght').on('keyup',function()
{ {
var datalenght_vvvvwcd = jQuery("#jform_datalenght").val(); var datalenght_vvvvwce = jQuery("#jform_datalenght").val();
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcd(datalenght_vvvvwcd,has_defaults_vvvvwcd); vvvvwce(datalenght_vvvvwce,has_defaults_vvvvwce);
}); });
jQuery('#adminForm').on('change', '#jform_datalenght',function (e) jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datalenght_vvvvwcd = jQuery("#jform_datalenght").val(); var datalenght_vvvvwce = jQuery("#jform_datalenght").val();
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcd(datalenght_vvvvwcd,has_defaults_vvvvwcd); vvvvwce(datalenght_vvvvwce,has_defaults_vvvvwce);
}); });
// #jform_has_defaults listeners for has_defaults_vvvvwcd function // #jform_has_defaults listeners for has_defaults_vvvvwce function
jQuery('#jform_has_defaults').on('keyup',function() jQuery('#jform_has_defaults').on('keyup',function()
{ {
var datalenght_vvvvwcd = jQuery("#jform_datalenght").val(); var datalenght_vvvvwce = jQuery("#jform_datalenght").val();
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcd(datalenght_vvvvwcd,has_defaults_vvvvwcd); vvvvwce(datalenght_vvvvwce,has_defaults_vvvvwce);
}); });
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e) jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datalenght_vvvvwcd = jQuery("#jform_datalenght").val(); var datalenght_vvvvwce = jQuery("#jform_datalenght").val();
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcd(datalenght_vvvvwcd,has_defaults_vvvvwcd); vvvvwce(datalenght_vvvvwce,has_defaults_vvvvwce);
}); });
// #jform_datadefault listeners for datadefault_vvvvwcf function // #jform_datadefault listeners for datadefault_vvvvwcg function
jQuery('#jform_datadefault').on('keyup',function() jQuery('#jform_datadefault').on('keyup',function()
{ {
var datadefault_vvvvwcf = jQuery("#jform_datadefault").val(); var datadefault_vvvvwcg = jQuery("#jform_datadefault").val();
var has_defaults_vvvvwcf = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcf(datadefault_vvvvwcf,has_defaults_vvvvwcf); vvvvwcg(datadefault_vvvvwcg,has_defaults_vvvvwcg);
}); });
jQuery('#adminForm').on('change', '#jform_datadefault',function (e) jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datadefault_vvvvwcf = jQuery("#jform_datadefault").val(); var datadefault_vvvvwcg = jQuery("#jform_datadefault").val();
var has_defaults_vvvvwcf = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcf(datadefault_vvvvwcf,has_defaults_vvvvwcf); vvvvwcg(datadefault_vvvvwcg,has_defaults_vvvvwcg);
}); });
// #jform_has_defaults listeners for has_defaults_vvvvwcf function // #jform_has_defaults listeners for has_defaults_vvvvwcg function
jQuery('#jform_has_defaults').on('keyup',function() jQuery('#jform_has_defaults').on('keyup',function()
{ {
var datadefault_vvvvwcf = jQuery("#jform_datadefault").val(); var datadefault_vvvvwcg = jQuery("#jform_datadefault").val();
var has_defaults_vvvvwcf = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcf(datadefault_vvvvwcf,has_defaults_vvvvwcf); vvvvwcg(datadefault_vvvvwcg,has_defaults_vvvvwcg);
}); });
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e) jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datadefault_vvvvwcf = jQuery("#jform_datadefault").val(); var datadefault_vvvvwcg = jQuery("#jform_datadefault").val();
var has_defaults_vvvvwcf = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcf(datadefault_vvvvwcf,has_defaults_vvvvwcf); vvvvwcg(datadefault_vvvvwcg,has_defaults_vvvvwcg);
});
// #jform_datatype listeners for datatype_vvvvwch function
jQuery('#jform_datatype').on('keyup',function()
{
var datatype_vvvvwch = jQuery("#jform_datatype").val();
var has_defaults_vvvvwch = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwch(datatype_vvvvwch,has_defaults_vvvvwch);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var datatype_vvvvwch = jQuery("#jform_datatype").val();
var has_defaults_vvvvwch = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwch(datatype_vvvvwch,has_defaults_vvvvwch);
});
// #jform_has_defaults listeners for has_defaults_vvvvwch function
jQuery('#jform_has_defaults').on('keyup',function()
{
var datatype_vvvvwch = jQuery("#jform_datatype").val();
var has_defaults_vvvvwch = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwch(datatype_vvvvwch,has_defaults_vvvvwch);
});
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{
e.preventDefault();
var datatype_vvvvwch = jQuery("#jform_datatype").val();
var has_defaults_vvvvwch = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwch(datatype_vvvvwch,has_defaults_vvvvwch);
});
// #jform_has_defaults listeners for has_defaults_vvvvwci function
jQuery('#jform_has_defaults').on('keyup',function()
{
var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var datatype_vvvvwci = jQuery("#jform_datatype").val();
vvvvwci(has_defaults_vvvvwci,datatype_vvvvwci);
});
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{
e.preventDefault();
var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var datatype_vvvvwci = jQuery("#jform_datatype").val();
vvvvwci(has_defaults_vvvvwci,datatype_vvvvwci);
}); });
// #jform_datatype listeners for datatype_vvvvwci function // #jform_datatype listeners for datatype_vvvvwci function
jQuery('#jform_datatype').on('keyup',function() jQuery('#jform_datatype').on('keyup',function()
{ {
var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var datatype_vvvvwci = jQuery("#jform_datatype").val(); var datatype_vvvvwci = jQuery("#jform_datatype").val();
vvvvwci(has_defaults_vvvvwci,datatype_vvvvwci); var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwci(datatype_vvvvwci,has_defaults_vvvvwci);
}); });
jQuery('#adminForm').on('change', '#jform_datatype',function (e) jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var datatype_vvvvwci = jQuery("#jform_datatype").val(); var datatype_vvvvwci = jQuery("#jform_datatype").val();
vvvvwci(has_defaults_vvvvwci,datatype_vvvvwci); var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwci(datatype_vvvvwci,has_defaults_vvvvwci);
}); });
// #jform_datatype listeners for datatype_vvvvwcj function // #jform_has_defaults listeners for has_defaults_vvvvwci function
jQuery('#jform_datatype').on('keyup',function()
{
var datatype_vvvvwcj = jQuery("#jform_datatype").val();
var has_defaults_vvvvwcj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcj(datatype_vvvvwcj,has_defaults_vvvvwcj);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var datatype_vvvvwcj = jQuery("#jform_datatype").val();
var has_defaults_vvvvwcj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcj(datatype_vvvvwcj,has_defaults_vvvvwcj);
});
// #jform_has_defaults listeners for has_defaults_vvvvwcj function
jQuery('#jform_has_defaults').on('keyup',function() jQuery('#jform_has_defaults').on('keyup',function()
{ {
var datatype_vvvvwcj = jQuery("#jform_datatype").val(); var datatype_vvvvwci = jQuery("#jform_datatype").val();
var has_defaults_vvvvwcj = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcj(datatype_vvvvwcj,has_defaults_vvvvwcj); vvvvwci(datatype_vvvvwci,has_defaults_vvvvwci);
}); });
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e) jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datatype_vvvvwcj = jQuery("#jform_datatype").val(); var datatype_vvvvwci = jQuery("#jform_datatype").val();
var has_defaults_vvvvwcj = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcj(datatype_vvvvwcj,has_defaults_vvvvwcj); vvvvwci(datatype_vvvvwci,has_defaults_vvvvwci);
}); });
// #jform_store listeners for store_vvvvwcl function // #jform_datatype listeners for datatype_vvvvwck function
jQuery('#jform_store').on('keyup',function()
{
var store_vvvvwcl = jQuery("#jform_store").val();
var datatype_vvvvwcl = jQuery("#jform_datatype").val();
var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcl(store_vvvvwcl,datatype_vvvvwcl,has_defaults_vvvvwcl);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var store_vvvvwcl = jQuery("#jform_store").val();
var datatype_vvvvwcl = jQuery("#jform_datatype").val();
var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcl(store_vvvvwcl,datatype_vvvvwcl,has_defaults_vvvvwcl);
});
// #jform_datatype listeners for datatype_vvvvwcl function
jQuery('#jform_datatype').on('keyup',function() jQuery('#jform_datatype').on('keyup',function()
{ {
var store_vvvvwcl = jQuery("#jform_store").val(); var datatype_vvvvwck = jQuery("#jform_datatype").val();
var datatype_vvvvwcl = jQuery("#jform_datatype").val(); var has_defaults_vvvvwck = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val(); vvvvwck(datatype_vvvvwck,has_defaults_vvvvwck);
vvvvwcl(store_vvvvwcl,datatype_vvvvwcl,has_defaults_vvvvwcl);
}); });
jQuery('#adminForm').on('change', '#jform_datatype',function (e) jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var store_vvvvwcl = jQuery("#jform_store").val(); var datatype_vvvvwck = jQuery("#jform_datatype").val();
var datatype_vvvvwcl = jQuery("#jform_datatype").val(); var has_defaults_vvvvwck = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val(); vvvvwck(datatype_vvvvwck,has_defaults_vvvvwck);
vvvvwcl(store_vvvvwcl,datatype_vvvvwcl,has_defaults_vvvvwcl);
});
// #jform_has_defaults listeners for has_defaults_vvvvwck function
jQuery('#jform_has_defaults').on('keyup',function()
{
var datatype_vvvvwck = jQuery("#jform_datatype").val();
var has_defaults_vvvvwck = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwck(datatype_vvvvwck,has_defaults_vvvvwck);
});
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{
e.preventDefault();
var datatype_vvvvwck = jQuery("#jform_datatype").val();
var has_defaults_vvvvwck = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwck(datatype_vvvvwck,has_defaults_vvvvwck);
}); });
// #jform_has_defaults listeners for has_defaults_vvvvwcl function // #jform_has_defaults listeners for has_defaults_vvvvwcl function
jQuery('#jform_has_defaults').on('keyup',function() jQuery('#jform_has_defaults').on('keyup',function()
{ {
var store_vvvvwcl = jQuery("#jform_store").val();
var datatype_vvvvwcl = jQuery("#jform_datatype").val();
var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcl(store_vvvvwcl,datatype_vvvvwcl,has_defaults_vvvvwcl); var datatype_vvvvwcl = jQuery("#jform_datatype").val();
vvvvwcl(has_defaults_vvvvwcl,datatype_vvvvwcl);
}); });
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e) jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{ {
e.preventDefault(); e.preventDefault();
var store_vvvvwcl = jQuery("#jform_store").val();
var datatype_vvvvwcl = jQuery("#jform_datatype").val();
var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcl(store_vvvvwcl,datatype_vvvvwcl,has_defaults_vvvvwcl); var datatype_vvvvwcl = jQuery("#jform_datatype").val();
vvvvwcl(has_defaults_vvvvwcl,datatype_vvvvwcl);
});
// #jform_datatype listeners for datatype_vvvvwcl function
jQuery('#jform_datatype').on('keyup',function()
{
var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var datatype_vvvvwcl = jQuery("#jform_datatype").val();
vvvvwcl(has_defaults_vvvvwcl,datatype_vvvvwcl);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var datatype_vvvvwcl = jQuery("#jform_datatype").val();
vvvvwcl(has_defaults_vvvvwcl,datatype_vvvvwcl);
}); });
@ -367,37 +310,16 @@ jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
jQuery('#jform_datatype').on('keyup',function() jQuery('#jform_datatype').on('keyup',function()
{ {
var datatype_vvvvwcm = jQuery("#jform_datatype").val(); var datatype_vvvvwcm = jQuery("#jform_datatype").val();
var store_vvvvwcm = jQuery("#jform_store").val();
var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcm(datatype_vvvvwcm,store_vvvvwcm,has_defaults_vvvvwcm); vvvvwcm(datatype_vvvvwcm,has_defaults_vvvvwcm);
}); });
jQuery('#adminForm').on('change', '#jform_datatype',function (e) jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datatype_vvvvwcm = jQuery("#jform_datatype").val(); var datatype_vvvvwcm = jQuery("#jform_datatype").val();
var store_vvvvwcm = jQuery("#jform_store").val();
var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcm(datatype_vvvvwcm,store_vvvvwcm,has_defaults_vvvvwcm); vvvvwcm(datatype_vvvvwcm,has_defaults_vvvvwcm);
});
// #jform_store listeners for store_vvvvwcm function
jQuery('#jform_store').on('keyup',function()
{
var datatype_vvvvwcm = jQuery("#jform_datatype").val();
var store_vvvvwcm = jQuery("#jform_store").val();
var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcm(datatype_vvvvwcm,store_vvvvwcm,has_defaults_vvvvwcm);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var datatype_vvvvwcm = jQuery("#jform_datatype").val();
var store_vvvvwcm = jQuery("#jform_store").val();
var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcm(datatype_vvvvwcm,store_vvvvwcm,has_defaults_vvvvwcm);
}); });
@ -405,90 +327,202 @@ jQuery('#adminForm').on('change', '#jform_store',function (e)
jQuery('#jform_has_defaults').on('keyup',function() jQuery('#jform_has_defaults').on('keyup',function()
{ {
var datatype_vvvvwcm = jQuery("#jform_datatype").val(); var datatype_vvvvwcm = jQuery("#jform_datatype").val();
var store_vvvvwcm = jQuery("#jform_store").val();
var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcm(datatype_vvvvwcm,store_vvvvwcm,has_defaults_vvvvwcm); vvvvwcm(datatype_vvvvwcm,has_defaults_vvvvwcm);
}); });
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e) jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datatype_vvvvwcm = jQuery("#jform_datatype").val(); var datatype_vvvvwcm = jQuery("#jform_datatype").val();
var store_vvvvwcm = jQuery("#jform_store").val();
var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcm(datatype_vvvvwcm,store_vvvvwcm,has_defaults_vvvvwcm); vvvvwcm(datatype_vvvvwcm,has_defaults_vvvvwcm);
}); });
// #jform_has_defaults listeners for has_defaults_vvvvwcn function // #jform_store listeners for store_vvvvwco function
jQuery('#jform_has_defaults').on('keyup',function()
{
var has_defaults_vvvvwcn = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwcn = jQuery("#jform_store").val();
var datatype_vvvvwcn = jQuery("#jform_datatype").val();
vvvvwcn(has_defaults_vvvvwcn,store_vvvvwcn,datatype_vvvvwcn);
});
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{
e.preventDefault();
var has_defaults_vvvvwcn = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwcn = jQuery("#jform_store").val();
var datatype_vvvvwcn = jQuery("#jform_datatype").val();
vvvvwcn(has_defaults_vvvvwcn,store_vvvvwcn,datatype_vvvvwcn);
});
// #jform_store listeners for store_vvvvwcn function
jQuery('#jform_store').on('keyup',function() jQuery('#jform_store').on('keyup',function()
{ {
var has_defaults_vvvvwcn = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var store_vvvvwco = jQuery("#jform_store").val();
var store_vvvvwcn = jQuery("#jform_store").val(); var datatype_vvvvwco = jQuery("#jform_datatype").val();
var datatype_vvvvwcn = jQuery("#jform_datatype").val(); var has_defaults_vvvvwco = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcn(has_defaults_vvvvwcn,store_vvvvwcn,datatype_vvvvwcn); vvvvwco(store_vvvvwco,datatype_vvvvwco,has_defaults_vvvvwco);
}); });
jQuery('#adminForm').on('change', '#jform_store',function (e) jQuery('#adminForm').on('change', '#jform_store',function (e)
{ {
e.preventDefault(); e.preventDefault();
var has_defaults_vvvvwcn = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var store_vvvvwco = jQuery("#jform_store").val();
var store_vvvvwcn = jQuery("#jform_store").val(); var datatype_vvvvwco = jQuery("#jform_datatype").val();
var datatype_vvvvwcn = jQuery("#jform_datatype").val(); var has_defaults_vvvvwco = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcn(has_defaults_vvvvwcn,store_vvvvwcn,datatype_vvvvwcn); vvvvwco(store_vvvvwco,datatype_vvvvwco,has_defaults_vvvvwco);
}); });
// #jform_datatype listeners for datatype_vvvvwcn function // #jform_datatype listeners for datatype_vvvvwco function
jQuery('#jform_datatype').on('keyup',function() jQuery('#jform_datatype').on('keyup',function()
{ {
var has_defaults_vvvvwcn = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var store_vvvvwco = jQuery("#jform_store").val();
var store_vvvvwcn = jQuery("#jform_store").val(); var datatype_vvvvwco = jQuery("#jform_datatype").val();
var datatype_vvvvwcn = jQuery("#jform_datatype").val(); var has_defaults_vvvvwco = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcn(has_defaults_vvvvwcn,store_vvvvwcn,datatype_vvvvwcn); vvvvwco(store_vvvvwco,datatype_vvvvwco,has_defaults_vvvvwco);
}); });
jQuery('#adminForm').on('change', '#jform_datatype',function (e) jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var has_defaults_vvvvwcn = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var store_vvvvwco = jQuery("#jform_store").val();
var store_vvvvwcn = jQuery("#jform_store").val(); var datatype_vvvvwco = jQuery("#jform_datatype").val();
var datatype_vvvvwcn = jQuery("#jform_datatype").val(); var has_defaults_vvvvwco = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcn(has_defaults_vvvvwcn,store_vvvvwcn,datatype_vvvvwcn); vvvvwco(store_vvvvwco,datatype_vvvvwco,has_defaults_vvvvwco);
}); });
// #jform_has_defaults listeners for has_defaults_vvvvwco function // #jform_has_defaults listeners for has_defaults_vvvvwco function
jQuery('#jform_has_defaults').on('keyup',function() jQuery('#jform_has_defaults').on('keyup',function()
{ {
var store_vvvvwco = jQuery("#jform_store").val();
var datatype_vvvvwco = jQuery("#jform_datatype").val();
var has_defaults_vvvvwco = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwco = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwco(has_defaults_vvvvwco); vvvvwco(store_vvvvwco,datatype_vvvvwco,has_defaults_vvvvwco);
}); });
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e) jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{ {
e.preventDefault(); e.preventDefault();
var store_vvvvwco = jQuery("#jform_store").val();
var datatype_vvvvwco = jQuery("#jform_datatype").val();
var has_defaults_vvvvwco = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var has_defaults_vvvvwco = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwco(has_defaults_vvvvwco); vvvvwco(store_vvvvwco,datatype_vvvvwco,has_defaults_vvvvwco);
});
// #jform_datatype listeners for datatype_vvvvwcp function
jQuery('#jform_datatype').on('keyup',function()
{
var datatype_vvvvwcp = jQuery("#jform_datatype").val();
var store_vvvvwcp = jQuery("#jform_store").val();
var has_defaults_vvvvwcp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcp(datatype_vvvvwcp,store_vvvvwcp,has_defaults_vvvvwcp);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var datatype_vvvvwcp = jQuery("#jform_datatype").val();
var store_vvvvwcp = jQuery("#jform_store").val();
var has_defaults_vvvvwcp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcp(datatype_vvvvwcp,store_vvvvwcp,has_defaults_vvvvwcp);
});
// #jform_store listeners for store_vvvvwcp function
jQuery('#jform_store').on('keyup',function()
{
var datatype_vvvvwcp = jQuery("#jform_datatype").val();
var store_vvvvwcp = jQuery("#jform_store").val();
var has_defaults_vvvvwcp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcp(datatype_vvvvwcp,store_vvvvwcp,has_defaults_vvvvwcp);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var datatype_vvvvwcp = jQuery("#jform_datatype").val();
var store_vvvvwcp = jQuery("#jform_store").val();
var has_defaults_vvvvwcp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcp(datatype_vvvvwcp,store_vvvvwcp,has_defaults_vvvvwcp);
});
// #jform_has_defaults listeners for has_defaults_vvvvwcp function
jQuery('#jform_has_defaults').on('keyup',function()
{
var datatype_vvvvwcp = jQuery("#jform_datatype").val();
var store_vvvvwcp = jQuery("#jform_store").val();
var has_defaults_vvvvwcp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcp(datatype_vvvvwcp,store_vvvvwcp,has_defaults_vvvvwcp);
});
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{
e.preventDefault();
var datatype_vvvvwcp = jQuery("#jform_datatype").val();
var store_vvvvwcp = jQuery("#jform_store").val();
var has_defaults_vvvvwcp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcp(datatype_vvvvwcp,store_vvvvwcp,has_defaults_vvvvwcp);
});
// #jform_has_defaults listeners for has_defaults_vvvvwcq function
jQuery('#jform_has_defaults').on('keyup',function()
{
var has_defaults_vvvvwcq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwcq = jQuery("#jform_store").val();
var datatype_vvvvwcq = jQuery("#jform_datatype").val();
vvvvwcq(has_defaults_vvvvwcq,store_vvvvwcq,datatype_vvvvwcq);
});
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{
e.preventDefault();
var has_defaults_vvvvwcq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwcq = jQuery("#jform_store").val();
var datatype_vvvvwcq = jQuery("#jform_datatype").val();
vvvvwcq(has_defaults_vvvvwcq,store_vvvvwcq,datatype_vvvvwcq);
});
// #jform_store listeners for store_vvvvwcq function
jQuery('#jform_store').on('keyup',function()
{
var has_defaults_vvvvwcq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwcq = jQuery("#jform_store").val();
var datatype_vvvvwcq = jQuery("#jform_datatype").val();
vvvvwcq(has_defaults_vvvvwcq,store_vvvvwcq,datatype_vvvvwcq);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var has_defaults_vvvvwcq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwcq = jQuery("#jform_store").val();
var datatype_vvvvwcq = jQuery("#jform_datatype").val();
vvvvwcq(has_defaults_vvvvwcq,store_vvvvwcq,datatype_vvvvwcq);
});
// #jform_datatype listeners for datatype_vvvvwcq function
jQuery('#jform_datatype').on('keyup',function()
{
var has_defaults_vvvvwcq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwcq = jQuery("#jform_store").val();
var datatype_vvvvwcq = jQuery("#jform_datatype").val();
vvvvwcq(has_defaults_vvvvwcq,store_vvvvwcq,datatype_vvvvwcq);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var has_defaults_vvvvwcq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
var store_vvvvwcq = jQuery("#jform_store").val();
var datatype_vvvvwcq = jQuery("#jform_datatype").val();
vvvvwcq(has_defaults_vvvvwcq,store_vvvvwcq,datatype_vvvvwcq);
});
// #jform_has_defaults listeners for has_defaults_vvvvwcr function
jQuery('#jform_has_defaults').on('keyup',function()
{
var has_defaults_vvvvwcr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcr(has_defaults_vvvvwcr);
});
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
{
e.preventDefault();
var has_defaults_vvvvwcr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
vvvvwcr(has_defaults_vvvvwcr);
}); });

View File

@ -57,7 +57,7 @@ class ComponentbuilderViewFieldtype extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->vxwfields = $this->get('Vxwfields'); $this->vxyfields = $this->get('Vxyfields');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -116,93 +116,93 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<script type="text/javascript"> <script type="text/javascript">
// #jform_location listeners for location_vvvvwcz function // #jform_location listeners for location_vvvvwdc function
jQuery('#jform_location').on('keyup',function() jQuery('#jform_location').on('keyup',function()
{ {
var location_vvvvwcz = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvwdc = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwcz(location_vvvvwcz); vvvvwdc(location_vvvvwdc);
}); });
jQuery('#adminForm').on('change', '#jform_location',function (e) jQuery('#adminForm').on('change', '#jform_location',function (e)
{ {
e.preventDefault(); e.preventDefault();
var location_vvvvwcz = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvwdc = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwcz(location_vvvvwcz); vvvvwdc(location_vvvvwdc);
}); });
// #jform_location listeners for location_vvvvwda function // #jform_location listeners for location_vvvvwdd function
jQuery('#jform_location').on('keyup',function() jQuery('#jform_location').on('keyup',function()
{ {
var location_vvvvwda = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvwdd = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwda(location_vvvvwda); vvvvwdd(location_vvvvwdd);
}); });
jQuery('#adminForm').on('change', '#jform_location',function (e) jQuery('#adminForm').on('change', '#jform_location',function (e)
{ {
e.preventDefault(); e.preventDefault();
var location_vvvvwda = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvwdd = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwda(location_vvvvwda); vvvvwdd(location_vvvvwdd);
}); });
// #jform_type listeners for type_vvvvwdb function // #jform_type listeners for type_vvvvwde function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_vvvvwdb = jQuery("#jform_type").val(); var type_vvvvwde = jQuery("#jform_type").val();
vvvvwdb(type_vvvvwdb); vvvvwde(type_vvvvwde);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_vvvvwdb = jQuery("#jform_type").val(); var type_vvvvwde = jQuery("#jform_type").val();
vvvvwdb(type_vvvvwdb); vvvvwde(type_vvvvwde);
}); });
// #jform_type listeners for type_vvvvwdc function // #jform_type listeners for type_vvvvwdf function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_vvvvwdc = jQuery("#jform_type").val(); var type_vvvvwdf = jQuery("#jform_type").val();
vvvvwdc(type_vvvvwdc); vvvvwdf(type_vvvvwdf);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_vvvvwdc = jQuery("#jform_type").val(); var type_vvvvwdf = jQuery("#jform_type").val();
vvvvwdc(type_vvvvwdc); vvvvwdf(type_vvvvwdf);
}); });
// #jform_type listeners for type_vvvvwdd function // #jform_type listeners for type_vvvvwdg function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_vvvvwdd = jQuery("#jform_type").val(); var type_vvvvwdg = jQuery("#jform_type").val();
vvvvwdd(type_vvvvwdd); vvvvwdg(type_vvvvwdg);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_vvvvwdd = jQuery("#jform_type").val(); var type_vvvvwdg = jQuery("#jform_type").val();
vvvvwdd(type_vvvvwdd); vvvvwdg(type_vvvvwdg);
}); });
// #jform_target listeners for target_vvvvwde function // #jform_target listeners for target_vvvvwdh function
jQuery('#jform_target').on('keyup',function() jQuery('#jform_target').on('keyup',function()
{ {
var target_vvvvwde = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwdh = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwde(target_vvvvwde); vvvvwdh(target_vvvvwdh);
}); });
jQuery('#adminForm').on('change', '#jform_target',function (e) jQuery('#adminForm').on('change', '#jform_target',function (e)
{ {
e.preventDefault(); e.preventDefault();
var target_vvvvwde = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwdh = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwde(target_vvvvwde); vvvvwdh(target_vvvvwdh);
}); });

View File

@ -125,67 +125,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<script type="text/javascript"> <script type="text/javascript">
// #jform_protocol listeners for protocol_vvvvwcp function // #jform_protocol listeners for protocol_vvvvwcs function
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
var protocol_vvvvwcp = jQuery("#jform_protocol").val(); var protocol_vvvvwcs = jQuery("#jform_protocol").val();
vvvvwcp(protocol_vvvvwcp); vvvvwcs(protocol_vvvvwcs);
}); });
jQuery('#adminForm').on('change', '#jform_protocol',function (e) jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwcp = jQuery("#jform_protocol").val(); var protocol_vvvvwcs = jQuery("#jform_protocol").val();
vvvvwcp(protocol_vvvvwcp); vvvvwcs(protocol_vvvvwcs);
});
// #jform_protocol listeners for protocol_vvvvwcq function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwcq = jQuery("#jform_protocol").val();
vvvvwcq(protocol_vvvvwcq);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwcq = jQuery("#jform_protocol").val();
vvvvwcq(protocol_vvvvwcq);
});
// #jform_protocol listeners for protocol_vvvvwcr function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwcr = jQuery("#jform_protocol").val();
var authentication_vvvvwcr = jQuery("#jform_authentication").val();
vvvvwcr(protocol_vvvvwcr,authentication_vvvvwcr);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwcr = jQuery("#jform_protocol").val();
var authentication_vvvvwcr = jQuery("#jform_authentication").val();
vvvvwcr(protocol_vvvvwcr,authentication_vvvvwcr);
});
// #jform_authentication listeners for authentication_vvvvwcr function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwcr = jQuery("#jform_protocol").val();
var authentication_vvvvwcr = jQuery("#jform_authentication").val();
vvvvwcr(protocol_vvvvwcr,authentication_vvvvwcr);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwcr = jQuery("#jform_protocol").val();
var authentication_vvvvwcr = jQuery("#jform_authentication").val();
vvvvwcr(protocol_vvvvwcr,authentication_vvvvwcr);
}); });
@ -193,101 +144,150 @@ jQuery('#adminForm').on('change', '#jform_authentication',function (e)
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
var protocol_vvvvwct = jQuery("#jform_protocol").val(); var protocol_vvvvwct = jQuery("#jform_protocol").val();
var authentication_vvvvwct = jQuery("#jform_authentication").val(); vvvvwct(protocol_vvvvwct);
vvvvwct(protocol_vvvvwct,authentication_vvvvwct);
}); });
jQuery('#adminForm').on('change', '#jform_protocol',function (e) jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwct = jQuery("#jform_protocol").val(); var protocol_vvvvwct = jQuery("#jform_protocol").val();
var authentication_vvvvwct = jQuery("#jform_authentication").val(); vvvvwct(protocol_vvvvwct);
vvvvwct(protocol_vvvvwct,authentication_vvvvwct);
}); });
// #jform_authentication listeners for authentication_vvvvwct function // #jform_protocol listeners for protocol_vvvvwcu function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwct = jQuery("#jform_protocol").val();
var authentication_vvvvwct = jQuery("#jform_authentication").val();
vvvvwct(protocol_vvvvwct,authentication_vvvvwct);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwct = jQuery("#jform_protocol").val();
var authentication_vvvvwct = jQuery("#jform_authentication").val();
vvvvwct(protocol_vvvvwct,authentication_vvvvwct);
});
// #jform_protocol listeners for protocol_vvvvwcv function
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
var protocol_vvvvwcv = jQuery("#jform_protocol").val(); var protocol_vvvvwcu = jQuery("#jform_protocol").val();
var authentication_vvvvwcv = jQuery("#jform_authentication").val(); var authentication_vvvvwcu = jQuery("#jform_authentication").val();
vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv); vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu);
}); });
jQuery('#adminForm').on('change', '#jform_protocol',function (e) jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwcv = jQuery("#jform_protocol").val(); var protocol_vvvvwcu = jQuery("#jform_protocol").val();
var authentication_vvvvwcv = jQuery("#jform_authentication").val(); var authentication_vvvvwcu = jQuery("#jform_authentication").val();
vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv); vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu);
}); });
// #jform_authentication listeners for authentication_vvvvwcv function // #jform_authentication listeners for authentication_vvvvwcu function
jQuery('#jform_authentication').on('keyup',function() jQuery('#jform_authentication').on('keyup',function()
{ {
var protocol_vvvvwcv = jQuery("#jform_protocol").val(); var protocol_vvvvwcu = jQuery("#jform_protocol").val();
var authentication_vvvvwcv = jQuery("#jform_authentication").val(); var authentication_vvvvwcu = jQuery("#jform_authentication").val();
vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv); vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu);
}); });
jQuery('#adminForm').on('change', '#jform_authentication',function (e) jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwcv = jQuery("#jform_protocol").val(); var protocol_vvvvwcu = jQuery("#jform_protocol").val();
var authentication_vvvvwcv = jQuery("#jform_authentication").val(); var authentication_vvvvwcu = jQuery("#jform_authentication").val();
vvvvwcv(protocol_vvvvwcv,authentication_vvvvwcv); vvvvwcu(protocol_vvvvwcu,authentication_vvvvwcu);
}); });
// #jform_protocol listeners for protocol_vvvvwcx function // #jform_protocol listeners for protocol_vvvvwcw function
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
var protocol_vvvvwcx = jQuery("#jform_protocol").val(); var protocol_vvvvwcw = jQuery("#jform_protocol").val();
var authentication_vvvvwcx = jQuery("#jform_authentication").val(); var authentication_vvvvwcw = jQuery("#jform_authentication").val();
vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx); vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw);
}); });
jQuery('#adminForm').on('change', '#jform_protocol',function (e) jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwcx = jQuery("#jform_protocol").val(); var protocol_vvvvwcw = jQuery("#jform_protocol").val();
var authentication_vvvvwcx = jQuery("#jform_authentication").val(); var authentication_vvvvwcw = jQuery("#jform_authentication").val();
vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx); vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw);
}); });
// #jform_authentication listeners for authentication_vvvvwcx function // #jform_authentication listeners for authentication_vvvvwcw function
jQuery('#jform_authentication').on('keyup',function() jQuery('#jform_authentication').on('keyup',function()
{ {
var protocol_vvvvwcx = jQuery("#jform_protocol").val(); var protocol_vvvvwcw = jQuery("#jform_protocol").val();
var authentication_vvvvwcx = jQuery("#jform_authentication").val(); var authentication_vvvvwcw = jQuery("#jform_authentication").val();
vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx); vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw);
}); });
jQuery('#adminForm').on('change', '#jform_authentication',function (e) jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwcx = jQuery("#jform_protocol").val(); var protocol_vvvvwcw = jQuery("#jform_protocol").val();
var authentication_vvvvwcx = jQuery("#jform_authentication").val(); var authentication_vvvvwcw = jQuery("#jform_authentication").val();
vvvvwcx(protocol_vvvvwcx,authentication_vvvvwcx); vvvvwcw(protocol_vvvvwcw,authentication_vvvvwcw);
});
// #jform_protocol listeners for protocol_vvvvwcy function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwcy = jQuery("#jform_protocol").val();
var authentication_vvvvwcy = jQuery("#jform_authentication").val();
vvvvwcy(protocol_vvvvwcy,authentication_vvvvwcy);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwcy = jQuery("#jform_protocol").val();
var authentication_vvvvwcy = jQuery("#jform_authentication").val();
vvvvwcy(protocol_vvvvwcy,authentication_vvvvwcy);
});
// #jform_authentication listeners for authentication_vvvvwcy function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwcy = jQuery("#jform_protocol").val();
var authentication_vvvvwcy = jQuery("#jform_authentication").val();
vvvvwcy(protocol_vvvvwcy,authentication_vvvvwcy);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwcy = jQuery("#jform_protocol").val();
var authentication_vvvvwcy = jQuery("#jform_authentication").val();
vvvvwcy(protocol_vvvvwcy,authentication_vvvvwcy);
});
// #jform_protocol listeners for protocol_vvvvwda function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwda = jQuery("#jform_protocol").val();
var authentication_vvvvwda = jQuery("#jform_authentication").val();
vvvvwda(protocol_vvvvwda,authentication_vvvvwda);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwda = jQuery("#jform_protocol").val();
var authentication_vvvvwda = jQuery("#jform_authentication").val();
vvvvwda(protocol_vvvvwda,authentication_vvvvwda);
});
// #jform_authentication listeners for authentication_vvvvwda function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwda = jQuery("#jform_protocol").val();
var authentication_vvvvwda = jQuery("#jform_authentication").val();
vvvvwda(protocol_vvvvwda,authentication_vvvvwda);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwda = jQuery("#jform_protocol").val();
var authentication_vvvvwda = jQuery("#jform_authentication").val();
vvvvwda(protocol_vvvvwda,authentication_vvvvwda);
}); });

View File

@ -57,7 +57,7 @@ class ComponentbuilderViewServer extends JViewLegacy
} }
// Get Linked view data // Get Linked view data
$this->vyglinked_components = $this->get('Vyglinked_components'); $this->vyilinked_components = $this->get('Vyilinked_components');
// Set the toolbar // Set the toolbar
$this->addToolBar(); $this->addToolBar();

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2" method="upgrade"> <extension type="component" version="3.2" method="upgrade">
<name>COM_COMPONENTBUILDER</name> <name>COM_COMPONENTBUILDER</name>
<creationDate>10th September, 2019</creationDate> <creationDate>12th September, 2019</creationDate>
<author>Llewellyn van der Merwe</author> <author>Llewellyn van der Merwe</author>
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail> <authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl> <authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>

View File

@ -2459,8 +2459,9 @@ abstract class ComponentbuilderHelper
if (($repoData = self::getFileContents($_url)) !== false && self::checkJson($repoData)) if (($repoData = self::getFileContents($_url)) !== false && self::checkJson($repoData))
{ {
$github_returned = json_decode($repoData); $github_returned = json_decode($repoData);
if (self::checkString($target) && self::checkObject($github_returned) && if (self::checkString($target) &&
isset($github_returned->{$target}) && self::checkArray($github_returned->{$target}) ) ( (self::checkObject($github_returned) && isset($github_returned->{$target}) && self::checkArray($github_returned->{$target})) ||
(self::checkArray($github_returned) && isset($github_returned[$target]) && self::checkArray($github_returned[$target])) ))
{ {
if ('nomemory' !== $type) if ('nomemory' !== $type)
{ {
@ -2468,7 +2469,7 @@ abstract class ComponentbuilderHelper
self::set($type, $repoData); self::set($type, $repoData);
} }
} }
elseif (!self::checkString($target) && self::checkObject($github_returned) && !isset($github_returned->message)) elseif (!self::checkString($target) && (self::checkArray($github_returned) || (self::checkObject($github_returned) && !isset($github_returned->message))))
{ {
if ('nomemory' !== $type) if ('nomemory' !== $type)
{ {