Resolved gh-370 so that all fields get loaded in a dynamicGet, even new once created at a later stage.

This commit is contained in:
Llewellyn van der Merwe 2019-01-29 16:43:27 +02:00
parent 3abae0494e
commit 018eed3054
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
26 changed files with 2547 additions and 2146 deletions

View File

@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.9) with **ALL** its features and **ALL** concepts totally open-source and free! You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.10) with **ALL** its features and **ALL** concepts totally open-source and free!
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
@ -144,13 +144,13 @@ 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*: 26th January, 2019 + *Last Build*: 29th January, 2019
+ *Version*: 2.9.9 + *Version*: 2.9.10
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2018 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*: **194678** + *Line count*: **195039**
+ *Field count*: **1088** + *Field count*: **1089**
+ *File count*: **1276** + *File count*: **1277**
+ *Folder count*: **201** + *Folder count*: **201**
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).

View File

@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.9) with **ALL** its features and **ALL** concepts totally open-source and free! You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.10) with **ALL** its features and **ALL** concepts totally open-source and free!
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
@ -144,13 +144,13 @@ 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*: 26th January, 2019 + *Last Build*: 29th January, 2019
+ *Version*: 2.9.9 + *Version*: 2.9.10
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *Copyright*: Copyright (C) 2015 - 2018 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*: **194678** + *Line count*: **195039**
+ *Field count*: **1088** + *Field count*: **1089**
+ *File count*: **1276** + *File count*: **1277**
+ *Folder count*: **201** + *Folder count*: **201**
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).

View File

@ -3008,16 +3008,26 @@ class Get
switch ($result->main_source) switch ($result->main_source)
{ {
case 1: case 1:
// check if auto sync is set
if ($result->select_all == 1)
{
$result->view_selection = '*';
}
// set the view data // set the view data
$result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->view_selection, $result->view_table_main, 'a', '', 'view'); $result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->view_selection, $result->view_table_main, 'a', null, 'view');
$result->main_get[0]['as'] = 'a'; $result->main_get[0]['as'] = 'a';
$result->main_get[0]['key'] = $result->key; $result->main_get[0]['key'] = $result->key;
$result->main_get[0]['context'] = $context; $result->main_get[0]['context'] = $context;
unset($result->view_selection); unset($result->view_selection);
break; break;
case 2: case 2:
// check if auto sync is set
if ($result->select_all == 1)
{
$result->db_selection = '*';
}
// set the database data // set the database data
$result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->db_selection, $result->db_table_main, 'a', '', 'db'); $result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->db_selection, $result->db_table_main, 'a', null, 'db');
$result->main_get[0]['as'] = 'a'; $result->main_get[0]['as'] = 'a';
$result->main_get[0]['key'] = $result->key; $result->main_get[0]['key'] = $result->key;
$result->main_get[0]['context'] = $context; $result->main_get[0]['context'] = $context;
@ -4199,21 +4209,42 @@ class Get
{ {
if (ComponentbuilderHelper::checkString($string)) if (ComponentbuilderHelper::checkString($string))
{ {
$lines = explode(PHP_EOL, $string); if ('db' === $type)
{
$table = '#__' . $asset;
$queryName = $asset;
$view = '';
}
elseif ('view' === $type)
{
$view = $this->getViewTableName($asset);
$table = '#__' . $this->componentCodeName . '_' . $view;
$queryName = $view;
}
// just get all values from table if * is found
if ($string === '*' || strpos($string, '*') !== false)
{
if ($type == 'view')
{
$_string = ComponentbuilderHelper::getViewTableColumns($asset, $as, $row_type);
}
else
{
$_string = ComponentbuilderHelper::getDbTableColumns($asset, $as, $row_type);
}
// get only selected values
$lines = explode(PHP_EOL, $_string);
// make sure to set the string to *
$string = '*';
}
else
{
// get only selected values
$lines = explode(PHP_EOL, $string);
}
// only continue if lines are available
if (ComponentbuilderHelper::checkArray($lines)) if (ComponentbuilderHelper::checkArray($lines))
{ {
if ('db' === $type)
{
$table = '#__' . $asset;
$queryName = $asset;
$view = '';
}
elseif ('view' === $type)
{
$view = $this->getViewTableName($asset);
$table = '#__' . $this->componentCodeName . '_' . $view;
$queryName = $view;
}
$gets = array(); $gets = array();
$keys = array(); $keys = array();
// first load all options // first load all options
@ -4272,7 +4303,16 @@ class Get
} }
if (ComponentbuilderHelper::checkArray($gets) && ComponentbuilderHelper::checkArray($keys)) if (ComponentbuilderHelper::checkArray($gets) && ComponentbuilderHelper::checkArray($keys))
{ {
$querySelect = '$query->select($db->quoteName(' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $gets) . '),' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $keys) . ')));'; // single joined selection needs the prefix to the values to avoid conflict in the names
// so we most still add then AS
if ($string == '*' && 1 != $row_type)
{
$querySelect = "\$query->select('" . $as . ".*');";
}
else
{
$querySelect = '$query->select($db->quoteName(' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $gets) . '),' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $keys) . ')));';
}
$queryFrom = '$db->quoteName(' . $this->db->quote($table) . ', ' . $this->db->quote($as) . ')'; $queryFrom = '$db->quoteName(' . $this->db->quote($table) . ', ' . $this->db->quote($as) . ')';
// return the select query // return the select query
return array('select' => $querySelect, 'from' => $queryFrom, 'name' => $queryName, 'table' => $table, 'type' => $type, 'select_gets' => $gets, 'select_keys' => $keys); return array('select' => $querySelect, 'from' => $queryFrom, 'name' => $queryName, 'table' => $table, 'type' => $type, 'select_gets' => $gets, 'select_keys' => $keys);

View File

@ -1011,6 +1011,174 @@ abstract class ComponentbuilderHelper
return '<div>'.JText::_('COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE').'</div>'; return '<div>'.JText::_('COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE').'</div>';
} }
/**
* get the database table columns
**/
public static function getDbTableColumns($tableName, $as, $type)
{
// Get a db connection.
$db = JFactory::getDbo();
// get the columns
$columns = $db->getTableColumns("#__" . $tableName);
// set the type (multi or single)
$unique = '';
if (1 == $type)
{
$unique = self::safeString($tableName) . '_';
}
if (self::checkArray($columns))
{
// build the return string
$tableColumns = array();
foreach ($columns as $column => $typeCast)
{
$tableColumns[] = $as . "." . $column . ' AS ' . $unique . $column;
}
return implode("\n", $tableColumns);
}
return false;
}
/**
* get the view table columns
**/
public static function getViewTableColumns($admin_view, $as, $type)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.addfields', 'b.name_single')));
$query->from($db->quoteName('#__componentbuilder_admin_fields', 'a'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'b') . ' ON (' . $db->quoteName('a.admin_view') . ' = ' . $db->quoteName('b.id') . ')');
$query->where($db->quoteName('b.published') . ' = 1');
$query->where($db->quoteName('a.admin_view') . ' = ' . (int) $admin_view);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$result = $db->loadObject();
$tableName = '';
if (1 == $type)
{
$tableName = self::safeString($result->name_single) . '_';
}
$addfields = json_decode($result->addfields, true);
if (self::checkArray($addfields))
{
// reset all buckets
$field = array();
$fields = array();
// get data
foreach ($addfields as $nr => $value)
{
$tmp = self::getFieldNameAndType((int) $value['field']);
if (self::checkArray($tmp))
{
$field[$nr] = $tmp;
}
// insure it is set to alias if needed
if (isset($value['alias']) && $value['alias'] == 1)
{
$field[$nr]['name'] = 'alias';
}
// remove a field that is not being stored in the database
if (!isset($value['list']) || $value['list'] == 2)
{
unset($field[$nr]);
}
}
// add the basic defaults
$fields[] = $as . ".id AS " . $tableName . "id";
$fields[] = $as . ".asset_id AS " . $tableName . "asset_id";
// load data
foreach ($field as $n => $f)
{
if (self::checkArray($f))
{
$fields[] = $as . "." . $f['name'] . " AS " . $tableName . $f['name'];
}
}
// add the basic defaults
$fields[] = $as . ".published AS " . $tableName . "published";
$fields[] = $as . ".created_by AS " . $tableName . "created_by";
$fields[] = $as . ".modified_by AS " . $tableName . "modified_by";
$fields[] = $as . ".created AS " . $tableName . "created";
$fields[] = $as . ".modified AS " . $tableName . "modified";
$fields[] = $as . ".version AS " . $tableName . "version";
$fields[] = $as . ".hits AS " . $tableName . "hits";
if (0) // TODO access is not set here but per/view in the form linking this admin view to which these field belong to the components (boooo I know but that is the case and so we can't ever really know at this point if this view has access set)
{
$fields[] = $as . ".access AS " . $tableName . "access";
}
$fields[] = $as . ".ordering AS " . $tableName . "ordering";
// return the field of this view
return implode("\n", $fields);
}
}
return false;
}
protected static function getFieldNameAndType($id)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Order it by the ordering field.
$query->select($db->quoteName(array('a.name', 'a.xml')));
$query->select($db->quoteName(array('c.name'), array('type_name')));
$query->from('#__componentbuilder_field AS a');
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'c') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('c.id') . ')');
$query->where($db->quoteName('a.id') . ' = '. $db->quote($id));
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
// Load the results as a list of stdClass objects (see later for more options on retrieving data).
$field = $db->loadObject();
// load the values form params
$field->xml = json_decode($field->xml);
$field->type_name = self::safeString($field->type_name);
$load = true;
// if category then name must be catid (only one per view)
if ($field->type_name == 'category')
{
$name = 'catid';
}
// if tag is set then enable all tag options for this view (only one per view)
elseif ($field->type_name == 'tag')
{
$name = 'tags';
}
// don't add spacers or notes
elseif ($field->type_name == 'spacer' || $field->type_name == 'note')
{
// make sure the name is unique
return false;
}
else
{
$name = self::safeString(self::getBetween($field->xml,'name="','"'));
}
// use field core name only if not found in xml
if (!self::checkString($name))
{
$name = self::safeString($field->name);;
}
return array('name' => $name, 'type' => $field->type_name);
}
return false;
}
/** /**
* The array of dynamic content * The array of dynamic content
* *

View File

@ -4073,6 +4073,9 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_SAVE_WARNING="Alias already existed so a number
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_DESCRIPTION="Fields to be selected from table." COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_DESCRIPTION="Fields to be selected from table."
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_HINT="b.field AS field" COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_HINT="b.field AS field"
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_LABEL="Selection" COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_LABEL="Selection"
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECT_ALL="Select All"
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECT_ALL_DESCRIPTION="Should all the fields be selected, even those newly added at a later stage."
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECT_ALL_LABEL="Select All"
COM_COMPONENTBUILDER_DYNAMIC_GET_SINGLE="Single" COM_COMPONENTBUILDER_DYNAMIC_GET_SINGLE="Single"
COM_COMPONENTBUILDER_DYNAMIC_GET_SS="ss" COM_COMPONENTBUILDER_DYNAMIC_GET_SS="ss"
COM_COMPONENTBUILDER_DYNAMIC_GET_STATE="State" COM_COMPONENTBUILDER_DYNAMIC_GET_STATE="State"

View File

@ -17,8 +17,9 @@ $form = $displayData->getForm();
$fields = $displayData->get('fields') ?: array( $fields = $displayData->get('fields') ?: array(
'main_source', 'main_source',
'view_table_main', 'view_table_main',
'view_selection',
'db_table_main', 'db_table_main',
'select_all',
'view_selection',
'db_selection' 'db_selection'
); );

View File

@ -1593,159 +1593,12 @@ class ComponentbuilderModelAjax extends JModelList
// Used in dynamic_get // Used in dynamic_get
public function getViewTableColumns($admin_view, $as, $type) public function getViewTableColumns($admin_view, $as, $type)
{ {
// Get a db connection. return ComponentbuilderHelper::getViewTableColumns($admin_view, $as, $type);
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.addfields', 'b.name_single')));
$query->from($db->quoteName('#__componentbuilder_admin_fields', 'a'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'b') . ' ON (' . $db->quoteName('a.admin_view') . ' = ' . $db->quoteName('b.id') . ')');
$query->where($db->quoteName('b.published') . ' = 1');
$query->where($db->quoteName('a.admin_view') . ' = '. (int) $admin_view);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$result = $db->loadObject();
$description = '';
$tableName = '';
if (1 == $type)
{
$tableName = ComponentbuilderHelper::safeString($result->name_single).'_';
}
$addfields = json_decode($result->addfields,true);
if (ComponentbuilderHelper::checkArray($addfields))
{
$fields = array();
// get data
foreach ($addfields as $nr => $value)
{
$tmp = $this->getFieldData((int) $value['field']);
if (ComponentbuilderHelper::checkArray($tmp))
{
$field[$nr] = $tmp;
}
// insure it is set to alias if needed
if (isset($value['alias']) && $value['alias'] == 1)
{
$field[$nr]['name'] = 'alias';
}
}
// add the basic defaults
$fields[] = $as.".id AS ".$tableName."id";
$fields[] = $as.".asset_id AS ".$tableName."asset_id";
// load data
foreach ($field as $n => $f)
{
if (ComponentbuilderHelper::checkArray($f))
{
$fields[] = $as.".".$f['name']." AS ".$tableName.$f['name'];
}
}
// add the basic defaults
$fields[] = $as.".published AS ".$tableName."published";
$fields[] = $as.".created_by AS ".$tableName."created_by";
$fields[] = $as.".modified_by AS ".$tableName."modified_by";
$fields[] = $as.".created AS ".$tableName."created";
$fields[] = $as.".modified AS ".$tableName."modified";
$fields[] = $as.".version AS ".$tableName."version";
$fields[] = $as.".hits AS ".$tableName."hits";
if (0)
{
$fields[] = $as.".access AS ".$tableName."access";
}
$fields[] = $as.".ordering AS ".$tableName."ordering";
$viewFields = $description.implode("\n",$fields);
}
return $viewFields;
}
return false;
}
protected function getFieldData($id)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Order it by the ordering field.
$query->select($db->quoteName(array('a.name','a.xml')));
$query->select($db->quoteName(array('c.name'),array('type_name')));
$query->from('#__componentbuilder_field AS a');
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'c') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('c.id') . ')');
$query->where($db->quoteName('a.id') . ' = '. $db->quote($id));
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
// Load the results as a list of stdClass objects (see later for more options on retrieving data).
$field = $db->loadObject();
// load the values form params
$field->xml = json_decode($field->xml);
$field->type_name = ComponentbuilderHelper::safeString($field->type_name);
$load = true;
// if category then name must be catid (only one per view)
if ($field->type_name == 'category')
{
$name = 'catid';
}
// if tag is set then enable all tag options for this view (only one per view)
elseif ($field->type_name == 'tag')
{
$name = 'tags';
}
// don't add spacers or notes
elseif ($field->type_name == 'spacer' || $field->type_name == 'note')
{
// make sure the name is unique
return false;
}
else
{
$name = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field->xml,'name="','"'));
}
// use field core name only if not found in xml
if (!ComponentbuilderHelper::checkString($name))
{
$name = ComponentbuilderHelper::safeString($field->name);;
}
return array('name' => $name, 'type' => $field->type_name);
}
return false;
} }
public function getDbTableColumns($tableName, $as, $type) public function getDbTableColumns($tableName, $as, $type)
{ {
// Get a db connection. return ComponentbuilderHelper::getDbTableColumns($tableName, $as, $type);
$db = JFactory::getDbo();
// get the columns
$columns = $db->getTableColumns("#__".$tableName);
// set the type (multi or single)
$unique = '';
if (1 == $type)
{
$unique = ComponentbuilderHelper::safeString($tableName).'_';
}
if (ComponentbuilderHelper::checkArray($columns))
{
// build the return string
$tableColumns = array();
foreach ($columns as $column => $typeCast)
{
$tableColumns[] = $as.".".$column . ' AS ' . $unique . $column;
}
return implode("\n",$tableColumns);
}
return false;
} }
public function getDynamicValues($id, $view) public function getDynamicValues($id, $view)
@ -1755,10 +1608,10 @@ class ComponentbuilderModelAjax extends JModelList
// Create a new query object. // Create a new query object.
$query = $db->getQuery(true); $query = $db->getQuery(true);
$query->select($db->quoteName(array('getcustom', 'gettype', 'main_source', 'view_selection', 'db_selection', 'join_view_table', 'join_db_table', 'addcalculation', 'php_calculation'))); $query->select($db->quoteName(array('getcustom', 'gettype', 'select_all', 'db_table_main', 'view_table_main', 'main_source', 'view_selection', 'db_selection', 'join_view_table', 'join_db_table', 'addcalculation', 'php_calculation')));
$query->from($db->quoteName('#__componentbuilder_dynamic_get')); $query->from($db->quoteName('#__componentbuilder_dynamic_get'));
$query->where($db->quoteName('published') . ' = 1'); $query->where($db->quoteName('published') . ' = 1');
$query->where($db->quoteName('id') . ' = '. (int) $id); $query->where($db->quoteName('id') . ' = ' . (int) $id);
// Reset the query using our newly populated query object. // Reset the query using our newly populated query object.
$db->setQuery($query); $db->setQuery($query);
@ -1772,11 +1625,19 @@ class ComponentbuilderModelAjax extends JModelList
// get the main values (name) // get the main values (name)
if ($result->main_source == 1) if ($result->main_source == 1)
{ {
$selections[] = explode("\n",$result->view_selection); if ($result->select_all == 1)
{
$result->view_selection = ComponentbuilderHelper::getViewTableColumns($result->view_table_main, 'a', $result->gettype);
}
$selections[] = explode("\n", $result->view_selection);
} }
elseif ($result->main_source == 2) elseif ($result->main_source == 2)
{ {
$selections[] = explode("\n",$result->db_selection); if ($result->select_all == 1)
{
$result->db_selection = ComponentbuilderHelper::getDbTableColumns($result->db_table_main, 'a', $result->gettype);
}
$selections[] = explode("\n", $result->db_selection);
} }
elseif ($result->main_source == 3) elseif ($result->main_source == 3)
{ {
@ -1798,14 +1659,20 @@ class ComponentbuilderModelAjax extends JModelList
{ {
foreach ($result->join_view_table as $join_view_table) foreach ($result->join_view_table as $join_view_table)
{ {
// check if all is selected
if (strpos($join_view_table['selection'], '*') !== false)
{
$join_view_table['selection'] = ComponentbuilderHelper::getViewTableColumns($join_view_table['view_table'], $join_view_table['as'], $join_view_table['row_type']);
}
// build selection
if ($join_view_table['row_type'] == '1') if ($join_view_table['row_type'] == '1')
{ {
$selections[] = explode("\n",$join_view_table['selection']); $selections[] = explode("\n", $join_view_table['selection']);
} }
elseif ($join_view_table['row_type'] == '2') elseif ($join_view_table['row_type'] == '2')
{ {
$names = $this->setListMethodName(array($join_view_table['on_field'],$join_view_table['join_field']),$join_view_table['view_table'],$join_view_table['as'],1); $names = $this->setListMethodName(array($join_view_table['on_field'],$join_view_table['join_field']),$join_view_table['view_table'],$join_view_table['as'],1);
$selectionsList[implode('',$names)] = explode("\n",$join_view_table['selection']); $selectionsList[implode('',$names)] = explode("\n", $join_view_table['selection']);
} }
} }
unset($result->join_view_table); unset($result->join_view_table);
@ -1814,14 +1681,20 @@ class ComponentbuilderModelAjax extends JModelList
{ {
foreach ($result->join_db_table as $join_db_table) foreach ($result->join_db_table as $join_db_table)
{ {
// check if all is selected
if (strpos($join_db_table['selection'], '*') !== false)
{
$join_db_table['selection'] = ComponentbuilderHelper::getViewTableColumns($join_db_table['view_table'], $join_db_table['as'], $join_db_table['row_type']);
}
// build selections
if ($join_db_table['row_type'] == '1') if ($join_db_table['row_type'] == '1')
{ {
$selections[] = explode("\n",$join_db_table['selection']); $selections[] = explode("\n", $join_db_table['selection']);
} }
elseif ($join_db_table['row_type'] == '2') elseif ($join_db_table['row_type'] == '2')
{ {
$names = $this->setListMethodName(array($join_db_table['on_field'],$join_db_table['join_field']),$join_db_table['db_table'],$join_db_table['as'],2); $names = $this->setListMethodName(array($join_db_table['on_field'],$join_db_table['join_field']),$join_db_table['db_table'],$join_db_table['as'],2);
$selectionsList[implode('',$names)] = explode("\n",$join_db_table['selection']); $selectionsList[implode('',$names)] = explode("\n", $join_db_table['selection']);
} }
} }
unset($result->join_db_table); unset($result->join_db_table);

View File

@ -9,44 +9,44 @@
*/ */
// Some Global Values // Some Global Values
jform_vvvvwadvzr_required = false; jform_vvvvwaevzr_required = false;
jform_vvvvwaevzs_required = false; jform_vvvvwafvzs_required = false;
jform_vvvvwaevzt_required = false; jform_vvvvwafvzt_required = false;
jform_vvvvwaevzu_required = false; jform_vvvvwafvzu_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var target_vvvvwad = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwad(target_vvvvwad);
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwae(target_vvvvwae); vvvvwae(target_vvvvwae);
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val(); vvvvwaf(target_vvvvwaf);
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag); var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwag(target_vvvvwag,type_vvvvwag);
var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwah(type_vvvvwah,target_vvvvwah);
}); });
// the vvvvwad function // the vvvvwae function
function vvvvwad(target_vvvvwad) function vvvvwae(target_vvvvwae)
{ {
// set the function logic // set the function logic
if (target_vvvvwad == 2) if (target_vvvvwae == 2)
{ {
jQuery('#jform_function_name').closest('.control-group').show(); jQuery('#jform_function_name').closest('.control-group').show();
// add required attribute to function_name field // add required attribute to function_name field
if (jform_vvvvwadvzr_required) if (jform_vvvvwaevzr_required)
{ {
updateFieldRequired('function_name',0); updateFieldRequired('function_name',0);
jQuery('#jform_function_name').prop('required','required'); jQuery('#jform_function_name').prop('required','required');
jQuery('#jform_function_name').attr('aria-required',true); jQuery('#jform_function_name').attr('aria-required',true);
jQuery('#jform_function_name').addClass('required'); jQuery('#jform_function_name').addClass('required');
jform_vvvvwadvzr_required = false; jform_vvvvwaevzr_required = false;
} }
jQuery('.note_jcb_placeholder').closest('.control-group').show(); jQuery('.note_jcb_placeholder').closest('.control-group').show();
jQuery('#jform_system_name').closest('.control-group').show(); jQuery('#jform_system_name').closest('.control-group').show();
@ -55,102 +55,102 @@ function vvvvwad(target_vvvvwad)
{ {
jQuery('#jform_function_name').closest('.control-group').hide(); jQuery('#jform_function_name').closest('.control-group').hide();
// remove required attribute from function_name field // remove required attribute from function_name field
if (!jform_vvvvwadvzr_required) if (!jform_vvvvwaevzr_required)
{ {
updateFieldRequired('function_name',1); updateFieldRequired('function_name',1);
jQuery('#jform_function_name').removeAttr('required'); jQuery('#jform_function_name').removeAttr('required');
jQuery('#jform_function_name').removeAttr('aria-required'); jQuery('#jform_function_name').removeAttr('aria-required');
jQuery('#jform_function_name').removeClass('required'); jQuery('#jform_function_name').removeClass('required');
jform_vvvvwadvzr_required = true; jform_vvvvwaevzr_required = true;
} }
jQuery('.note_jcb_placeholder').closest('.control-group').hide(); jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide(); jQuery('#jform_system_name').closest('.control-group').hide();
} }
} }
// the vvvvwae function // the vvvvwaf function
function vvvvwae(target_vvvvwae) function vvvvwaf(target_vvvvwaf)
{ {
// set the function logic // set the function logic
if (target_vvvvwae == 1) if (target_vvvvwaf == 1)
{ {
jQuery('#jform_component').closest('.control-group').show(); jQuery('#jform_component').closest('.control-group').show();
// add required attribute to component field // add required attribute to component field
if (jform_vvvvwaevzs_required) if (jform_vvvvwafvzs_required)
{ {
updateFieldRequired('component',0); updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required'); jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true); jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required'); jQuery('#jform_component').addClass('required');
jform_vvvvwaevzs_required = false; jform_vvvvwafvzs_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_vvvvwaevzt_required) if (jform_vvvvwafvzt_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_vvvvwaevzt_required = false; jform_vvvvwafvzt_required = false;
} }
jQuery('#jform_from_line').closest('.control-group').show(); jQuery('#jform_from_line').closest('.control-group').show();
jQuery('#jform_hashtarget').closest('.control-group').show(); jQuery('#jform_hashtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show();
jQuery('#jform_type').closest('.control-group').show(); jQuery('#jform_type').closest('.control-group').show();
// add required attribute to type field // add required attribute to type field
if (jform_vvvvwaevzu_required) if (jform_vvvvwafvzu_required)
{ {
updateFieldRequired('type',0); updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required'); jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true); jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required'); jQuery('#jform_type').addClass('required');
jform_vvvvwaevzu_required = false; jform_vvvvwafvzu_required = false;
} }
} }
else else
{ {
jQuery('#jform_component').closest('.control-group').hide(); jQuery('#jform_component').closest('.control-group').hide();
// remove required attribute from component field // remove required attribute from component field
if (!jform_vvvvwaevzs_required) if (!jform_vvvvwafvzs_required)
{ {
updateFieldRequired('component',1); updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required'); jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required'); jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required'); jQuery('#jform_component').removeClass('required');
jform_vvvvwaevzs_required = true; jform_vvvvwafvzs_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_vvvvwaevzt_required) if (!jform_vvvvwafvzt_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_vvvvwaevzt_required = true; jform_vvvvwafvzt_required = true;
} }
jQuery('#jform_from_line').closest('.control-group').hide(); jQuery('#jform_from_line').closest('.control-group').hide();
jQuery('#jform_hashtarget').closest('.control-group').hide(); jQuery('#jform_hashtarget').closest('.control-group').hide();
jQuery('#jform_to_line').closest('.control-group').hide(); jQuery('#jform_to_line').closest('.control-group').hide();
jQuery('#jform_type').closest('.control-group').hide(); jQuery('#jform_type').closest('.control-group').hide();
// remove required attribute from type field // remove required attribute from type field
if (!jform_vvvvwaevzu_required) if (!jform_vvvvwafvzu_required)
{ {
updateFieldRequired('type',1); updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required'); jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required'); jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required'); jQuery('#jform_type').removeClass('required');
jform_vvvvwaevzu_required = true; jform_vvvvwafvzu_required = true;
} }
} }
} }
// the vvvvwaf function // the vvvvwag function
function vvvvwaf(target_vvvvwaf,type_vvvvwaf) function vvvvwag(target_vvvvwag,type_vvvvwag)
{ {
// set the function logic // set the function logic
if (target_vvvvwaf == 1 && type_vvvvwaf == 1) if (target_vvvvwag == 1 && type_vvvvwag == 1)
{ {
jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show();
@ -162,11 +162,11 @@ function vvvvwaf(target_vvvvwaf,type_vvvvwaf)
} }
} }
// the vvvvwag function // the vvvvwah function
function vvvvwag(type_vvvvwag,target_vvvvwag) function vvvvwah(type_vvvvwah,target_vvvvwah)
{ {
// set the function logic // set the function logic
if (type_vvvvwag == 1 && target_vvvvwag == 1) if (type_vvvvwah == 1 && target_vvvvwah == 1)
{ {
jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show();

File diff suppressed because it is too large Load Diff

View File

@ -143,6 +143,190 @@
<option value="4"> <option value="4">
COM_COMPONENTBUILDER_DYNAMIC_GET_GETCUSTOMS</option> COM_COMPONENTBUILDER_DYNAMIC_GET_GETCUSTOMS</option>
</field> </field>
<!-- Addcalculation Field. Type: Radio. (joomla) -->
<field
type="radio"
name="addcalculation"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADDCALCULATION_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_ADDCALCULATION_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Note_calculation_items Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_calculation_items" description="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_CALCULATION_ITEMS_DESCRIPTION" class="note_calculation_items" />
<!-- Add_php_after_getitems Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_after_getitems"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_AFTER_GETITEMS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Add_php_router_parse Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_router_parse"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_ROUTER_PARSE_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_ROUTER_PARSE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Add_php_getlistquery Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_getlistquery"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_GETLISTQUERY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Add_php_before_getitems Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_before_getitems"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_BEFORE_GETITEMS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Add_php_before_getitem Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_before_getitem"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_BEFORE_GETITEM_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- View_selection Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="view_selection"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_SELECTION_LABEL"
rows="22"
cols="30"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_SELECTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_SELECTION_HINT"
required="true"
/>
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
<!-- Db_table_main Field. Type: Dbtables. (custom) -->
<field
type="dbtables"
name="db_table_main"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_TABLE_MAIN_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_TABLE_MAIN_DESCRIPTION"
class="list_class"
multiple="false"
required="true"
button="false"
/>
<!-- Php_custom_get Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_custom_get"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Plugin_events Field. Type: List. (joomla) -->
<field
type="list"
name="plugin_events"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PLUGIN_EVENTS_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PLUGIN_EVENTS_DESCRIPTION"
class="list_class"
multiple="true">
<!-- Option Set. -->
<option value="onContentAfterTitle">
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTAFTERTITLE</option>
<option value="onContentBeforeDisplay">
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTBEFOREDISPLAY</option>
<option value="onContentAfterDisplay">
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTAFTERDISPLAY</option>
</field>
<!-- Db_selection Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="db_selection"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_SELECTION_LABEL"
rows="22"
cols="30"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_SELECTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_SELECTION_HINT"
required="true"
/>
<!-- View_table_main Field. Type: Adminviews. (custom) -->
<field
type="adminviews"
name="view_table_main"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_MAIN_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_MAIN_DESCRIPTION"
multiple="false"
default=""
required="true"
/>
<!-- Add_php_after_getitem Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_after_getitem"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_AFTER_GETITEM_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Join_db_table Field. Type: Subform. (joomla) --> <!-- Join_db_table Field. Type: Subform. (joomla) -->
<field <field
type="subform" type="subform"
@ -399,190 +583,20 @@
/> />
</form> </form>
</field> </field>
<!-- Note_calculation_items Field. Type: Note. A None Database Field. (joomla) --> <!-- Select_all Field. Type: Radio. (joomla) -->
<field type="note" name="note_calculation_items" description="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_CALCULATION_ITEMS_DESCRIPTION" class="note_calculation_items" />
<!-- View_table_main Field. Type: Adminviews. (custom) -->
<field
type="adminviews"
name="view_table_main"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_MAIN_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_MAIN_DESCRIPTION"
multiple="false"
default=""
required="true"
/>
<!-- Add_php_router_parse Field. Type: Radio. (joomla) -->
<field <field
type="radio" type="radio"
name="add_php_router_parse" name="select_all"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_ROUTER_PARSE_LABEL" label="COM_COMPONENTBUILDER_DYNAMIC_GET_SELECT_ALL_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_ROUTER_PARSE_DESCRIPTION" description="COM_COMPONENTBUILDER_DYNAMIC_GET_SELECT_ALL_DESCRIPTION"
class="btn-group btn-group-yesno" class="btn-group btn-group-yesno"
default="0" default="0">
required="true">
<!-- Option Set. --> <!-- Option Set. -->
<option value="1"> <option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option> COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0"> <option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option> COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field> </field>
<!-- Addcalculation Field. Type: Radio. (joomla) -->
<field
type="radio"
name="addcalculation"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADDCALCULATION_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_ADDCALCULATION_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Add_php_before_getitems Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_before_getitems"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_BEFORE_GETITEMS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Add_php_after_getitems Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_after_getitems"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_AFTER_GETITEMS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Add_php_after_getitem Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_after_getitem"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_AFTER_GETITEM_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Add_php_getlistquery Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_getlistquery"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_GETLISTQUERY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- View_selection Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="view_selection"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_SELECTION_LABEL"
rows="22"
cols="30"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_SELECTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_SELECTION_HINT"
required="true"
/>
<!-- Add_php_before_getitem Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_before_getitem"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_BEFORE_GETITEM_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_DYNAMIC_GET_YES</option>
<option value="0">
COM_COMPONENTBUILDER_DYNAMIC_GET_NO</option>
</field>
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_DYNAMIC_GET_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
<!-- Php_custom_get Field. Type: Editor. (joomla) -->
<field
type="editor"
name="php_custom_get"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_DESCRIPTION"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
required="true"
validate="code"
/>
<!-- Plugin_events Field. Type: List. (joomla) -->
<field
type="list"
name="plugin_events"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_PLUGIN_EVENTS_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_PLUGIN_EVENTS_DESCRIPTION"
class="list_class"
multiple="true">
<!-- Option Set. -->
<option value="onContentAfterTitle">
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTAFTERTITLE</option>
<option value="onContentBeforeDisplay">
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTBEFOREDISPLAY</option>
<option value="onContentAfterDisplay">
COM_COMPONENTBUILDER_DYNAMIC_GET_ONCONTENTAFTERDISPLAY</option>
</field>
<!-- Db_selection Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="db_selection"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_SELECTION_LABEL"
rows="22"
cols="30"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_SELECTION_DESCRIPTION"
class="text_area span12"
filter="HTML"
hint="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_SELECTION_HINT"
required="true"
/>
<!-- Db_table_main Field. Type: Dbtables. (custom) -->
<field
type="dbtables"
name="db_table_main"
label="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_TABLE_MAIN_LABEL"
description="COM_COMPONENTBUILDER_DYNAMIC_GET_DB_TABLE_MAIN_DESCRIPTION"
class="list_class"
multiple="false"
required="true"
button="false"
/>
<!-- Php_before_getitem Field. Type: Editor. (joomla) --> <!-- Php_before_getitem Field. Type: Editor. (joomla) -->
<field <field
type="editor" type="editor"

View File

@ -9,61 +9,61 @@
*/ */
// Some Global Values // Some Global Values
jform_vvvvwapvzx_required = false; jform_vvvvwaqvzx_required = false;
jform_vvvvwaqvzy_required = false; jform_vvvvwarvzy_required = false;
jform_vvvvwarvzz_required = false; jform_vvvvwasvzz_required = false;
jform_vvvvwaswaa_required = false; jform_vvvvwatwaa_required = false;
jform_vvvvwavwab_required = false; jform_vvvvwawwab_required = false;
jform_vvvvwawwac_required = false; jform_vvvvwaxwac_required = false;
jform_vvvvwaxwad_required = false; jform_vvvvwaywad_required = false;
jform_vvvvwaywae_required = false; jform_vvvvwazwae_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var datalenght_vvvvwap = jQuery("#jform_datalenght").val(); var datalenght_vvvvwaq = jQuery("#jform_datalenght").val();
vvvvwap(datalenght_vvvvwap); vvvvwaq(datalenght_vvvvwaq);
var datadefault_vvvvwaq = jQuery("#jform_datadefault").val(); var datadefault_vvvvwar = jQuery("#jform_datadefault").val();
vvvvwaq(datadefault_vvvvwaq); vvvvwar(datadefault_vvvvwar);
var datatype_vvvvwar = jQuery("#jform_datatype").val();
vvvvwar(datatype_vvvvwar);
var datatype_vvvvwas = jQuery("#jform_datatype").val(); var datatype_vvvvwas = jQuery("#jform_datatype").val();
vvvvwas(datatype_vvvvwas); vvvvwas(datatype_vvvvwas);
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val(); var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat); vvvvwat(datatype_vvvvwat);
var add_css_view_vvvvwav = jQuery("#jform_add_css_view input[type='radio']:checked").val(); var store_vvvvwau = jQuery("#jform_store").val();
vvvvwav(add_css_view_vvvvwav); var datatype_vvvvwau = jQuery("#jform_datatype").val();
vvvvwau(store_vvvvwau,datatype_vvvvwau);
var add_css_views_vvvvwaw = jQuery("#jform_add_css_views input[type='radio']:checked").val(); var add_css_view_vvvvwaw = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwaw(add_css_views_vvvvwaw); vvvvwaw(add_css_view_vvvvwaw);
var add_javascript_view_footer_vvvvwax = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); var add_css_views_vvvvwax = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwax(add_javascript_view_footer_vvvvwax); vvvvwax(add_css_views_vvvvwax);
var add_javascript_views_footer_vvvvway = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); var add_javascript_view_footer_vvvvway = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvway(add_javascript_views_footer_vvvvway); vvvvway(add_javascript_view_footer_vvvvway);
var add_javascript_views_footer_vvvvwaz = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwaz(add_javascript_views_footer_vvvvwaz);
}); });
// the vvvvwap function // the vvvvwaq function
function vvvvwap(datalenght_vvvvwap) function vvvvwaq(datalenght_vvvvwaq)
{ {
if (isSet(datalenght_vvvvwap) && datalenght_vvvvwap.constructor !== Array) if (isSet(datalenght_vvvvwaq) && datalenght_vvvvwaq.constructor !== Array)
{ {
var temp_vvvvwap = datalenght_vvvvwap; var temp_vvvvwaq = datalenght_vvvvwaq;
var datalenght_vvvvwap = []; var datalenght_vvvvwaq = [];
datalenght_vvvvwap.push(temp_vvvvwap); datalenght_vvvvwaq.push(temp_vvvvwaq);
} }
else if (!isSet(datalenght_vvvvwap)) else if (!isSet(datalenght_vvvvwaq))
{ {
var datalenght_vvvvwap = []; var datalenght_vvvvwaq = [];
} }
var datalenght = datalenght_vvvvwap.some(datalenght_vvvvwap_SomeFunc); var datalenght = datalenght_vvvvwaq.some(datalenght_vvvvwaq_SomeFunc);
// set this function logic // set this function logic
@ -71,91 +71,35 @@ function vvvvwap(datalenght_vvvvwap)
{ {
jQuery('#jform_datalenght_other').closest('.control-group').show(); jQuery('#jform_datalenght_other').closest('.control-group').show();
// add required attribute to datalenght_other field // add required attribute to datalenght_other field
if (jform_vvvvwapvzx_required) if (jform_vvvvwaqvzx_required)
{ {
updateFieldRequired('datalenght_other',0); updateFieldRequired('datalenght_other',0);
jQuery('#jform_datalenght_other').prop('required','required'); jQuery('#jform_datalenght_other').prop('required','required');
jQuery('#jform_datalenght_other').attr('aria-required',true); jQuery('#jform_datalenght_other').attr('aria-required',true);
jQuery('#jform_datalenght_other').addClass('required'); jQuery('#jform_datalenght_other').addClass('required');
jform_vvvvwapvzx_required = false; jform_vvvvwaqvzx_required = false;
} }
} }
else else
{ {
jQuery('#jform_datalenght_other').closest('.control-group').hide(); jQuery('#jform_datalenght_other').closest('.control-group').hide();
// remove required attribute from datalenght_other field // remove required attribute from datalenght_other field
if (!jform_vvvvwapvzx_required) if (!jform_vvvvwaqvzx_required)
{ {
updateFieldRequired('datalenght_other',1); updateFieldRequired('datalenght_other',1);
jQuery('#jform_datalenght_other').removeAttr('required'); jQuery('#jform_datalenght_other').removeAttr('required');
jQuery('#jform_datalenght_other').removeAttr('aria-required'); jQuery('#jform_datalenght_other').removeAttr('aria-required');
jQuery('#jform_datalenght_other').removeClass('required'); jQuery('#jform_datalenght_other').removeClass('required');
jform_vvvvwapvzx_required = true; jform_vvvvwaqvzx_required = true;
}
}
}
// the vvvvwap Some function
function datalenght_vvvvwap_SomeFunc(datalenght_vvvvwap)
{
// set the function logic
if (datalenght_vvvvwap == 'Other')
{
return true;
}
return false;
}
// the vvvvwaq function
function vvvvwaq(datadefault_vvvvwaq)
{
if (isSet(datadefault_vvvvwaq) && datadefault_vvvvwaq.constructor !== Array)
{
var temp_vvvvwaq = datadefault_vvvvwaq;
var datadefault_vvvvwaq = [];
datadefault_vvvvwaq.push(temp_vvvvwaq);
}
else if (!isSet(datadefault_vvvvwaq))
{
var datadefault_vvvvwaq = [];
}
var datadefault = datadefault_vvvvwaq.some(datadefault_vvvvwaq_SomeFunc);
// set this function logic
if (datadefault)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
// add required attribute to datadefault_other field
if (jform_vvvvwaqvzy_required)
{
updateFieldRequired('datadefault_other',0);
jQuery('#jform_datadefault_other').prop('required','required');
jQuery('#jform_datadefault_other').attr('aria-required',true);
jQuery('#jform_datadefault_other').addClass('required');
jform_vvvvwaqvzy_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
// remove required attribute from datadefault_other field
if (!jform_vvvvwaqvzy_required)
{
updateFieldRequired('datadefault_other',1);
jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_datadefault_other').removeClass('required');
jform_vvvvwaqvzy_required = true;
} }
} }
} }
// the vvvvwaq Some function // the vvvvwaq Some function
function datadefault_vvvvwaq_SomeFunc(datadefault_vvvvwaq) function datalenght_vvvvwaq_SomeFunc(datalenght_vvvvwaq)
{ {
// set the function logic // set the function logic
if (datadefault_vvvvwaq == 'Other') if (datalenght_vvvvwaq == 'Other')
{ {
return true; return true;
} }
@ -163,59 +107,55 @@ function datadefault_vvvvwaq_SomeFunc(datadefault_vvvvwaq)
} }
// the vvvvwar function // the vvvvwar function
function vvvvwar(datatype_vvvvwar) function vvvvwar(datadefault_vvvvwar)
{ {
if (isSet(datatype_vvvvwar) && datatype_vvvvwar.constructor !== Array) if (isSet(datadefault_vvvvwar) && datadefault_vvvvwar.constructor !== Array)
{ {
var temp_vvvvwar = datatype_vvvvwar; var temp_vvvvwar = datadefault_vvvvwar;
var datatype_vvvvwar = []; var datadefault_vvvvwar = [];
datatype_vvvvwar.push(temp_vvvvwar); datadefault_vvvvwar.push(temp_vvvvwar);
} }
else if (!isSet(datatype_vvvvwar)) else if (!isSet(datadefault_vvvvwar))
{ {
var datatype_vvvvwar = []; var datadefault_vvvvwar = [];
} }
var datatype = datatype_vvvvwar.some(datatype_vvvvwar_SomeFunc); var datadefault = datadefault_vvvvwar.some(datadefault_vvvvwar_SomeFunc);
// set this function logic // set this function logic
if (datatype) if (datadefault)
{ {
jQuery('#jform_datadefault').closest('.control-group').show(); jQuery('#jform_datadefault_other').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show(); // add required attribute to datadefault_other field
jQuery('#jform_indexes').closest('.control-group').show(); if (jform_vvvvwarvzy_required)
// add required attribute to indexes field
if (jform_vvvvwarvzz_required)
{ {
updateFieldRequired('indexes',0); updateFieldRequired('datadefault_other',0);
jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_datadefault_other').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_datadefault_other').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required'); jQuery('#jform_datadefault_other').addClass('required');
jform_vvvvwarvzz_required = false; jform_vvvvwarvzy_required = false;
} }
} }
else else
{ {
jQuery('#jform_datadefault').closest('.control-group').hide(); jQuery('#jform_datadefault_other').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide(); // remove required attribute from datadefault_other field
jQuery('#jform_indexes').closest('.control-group').hide(); if (!jform_vvvvwarvzy_required)
// remove required attribute from indexes field
if (!jform_vvvvwarvzz_required)
{ {
updateFieldRequired('indexes',1); updateFieldRequired('datadefault_other',1);
jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required'); jQuery('#jform_datadefault_other').removeClass('required');
jform_vvvvwarvzz_required = true; jform_vvvvwarvzy_required = true;
} }
} }
} }
// the vvvvwar Some function // the vvvvwar Some function
function datatype_vvvvwar_SomeFunc(datatype_vvvvwar) function datadefault_vvvvwar_SomeFunc(datadefault_vvvvwar)
{ {
// set the function logic // set the function logic
if (datatype_vvvvwar == 'CHAR' || datatype_vvvvwar == 'VARCHAR' || datatype_vvvvwar == 'DATETIME' || datatype_vvvvwar == 'DATE' || datatype_vvvvwar == 'TIME' || datatype_vvvvwar == 'INT' || datatype_vvvvwar == 'TINYINT' || datatype_vvvvwar == 'BIGINT' || datatype_vvvvwar == 'FLOAT' || datatype_vvvvwar == 'DECIMAL' || datatype_vvvvwar == 'DOUBLE') if (datadefault_vvvvwar == 'Other')
{ {
return true; return true;
} }
@ -241,28 +181,32 @@ function vvvvwas(datatype_vvvvwas)
// set this function logic // set this function logic
if (datatype) if (datatype)
{ {
jQuery('#jform_store').closest('.control-group').show(); jQuery('#jform_datadefault').closest('.control-group').show();
// add required attribute to store field jQuery('#jform_datalenght').closest('.control-group').show();
if (jform_vvvvwaswaa_required) jQuery('#jform_indexes').closest('.control-group').show();
// add required attribute to indexes field
if (jform_vvvvwasvzz_required)
{ {
updateFieldRequired('store',0); updateFieldRequired('indexes',0);
jQuery('#jform_store').prop('required','required'); jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_store').attr('aria-required',true); jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_store').addClass('required'); jQuery('#jform_indexes').addClass('required');
jform_vvvvwaswaa_required = false; jform_vvvvwasvzz_required = false;
} }
} }
else else
{ {
jQuery('#jform_store').closest('.control-group').hide(); jQuery('#jform_datadefault').closest('.control-group').hide();
// remove required attribute from store field jQuery('#jform_datalenght').closest('.control-group').hide();
if (!jform_vvvvwaswaa_required) jQuery('#jform_indexes').closest('.control-group').hide();
// remove required attribute from indexes field
if (!jform_vvvvwasvzz_required)
{ {
updateFieldRequired('store',1); updateFieldRequired('indexes',1);
jQuery('#jform_store').removeAttr('required'); jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required'); jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required'); jQuery('#jform_indexes').removeClass('required');
jform_vvvvwaswaa_required = true; jform_vvvvwasvzz_required = true;
} }
} }
} }
@ -271,7 +215,7 @@ function vvvvwas(datatype_vvvvwas)
function datatype_vvvvwas_SomeFunc(datatype_vvvvwas) function datatype_vvvvwas_SomeFunc(datatype_vvvvwas)
{ {
// set the function logic // set the function logic
if (datatype_vvvvwas == 'CHAR' || datatype_vvvvwas == 'VARCHAR' || datatype_vvvvwas == 'TEXT' || datatype_vvvvwas == 'MEDIUMTEXT' || datatype_vvvvwas == 'LONGTEXT' || datatype_vvvvwas == 'BLOB' || datatype_vvvvwas == 'TINYBLOB' || datatype_vvvvwas == 'MEDIUMBLOB' || datatype_vvvvwas == 'LONGBLOB') if (datatype_vvvvwas == 'CHAR' || datatype_vvvvwas == 'VARCHAR' || datatype_vvvvwas == 'DATETIME' || datatype_vvvvwas == 'DATE' || datatype_vvvvwas == 'TIME' || datatype_vvvvwas == 'INT' || datatype_vvvvwas == 'TINYINT' || datatype_vvvvwas == 'BIGINT' || datatype_vvvvwas == 'FLOAT' || datatype_vvvvwas == 'DECIMAL' || datatype_vvvvwas == 'DOUBLE')
{ {
return true; return true;
} }
@ -279,20 +223,8 @@ function datatype_vvvvwas_SomeFunc(datatype_vvvvwas)
} }
// the vvvvwat function // the vvvvwat function
function vvvvwat(store_vvvvwat,datatype_vvvvwat) function vvvvwat(datatype_vvvvwat)
{ {
if (isSet(store_vvvvwat) && store_vvvvwat.constructor !== Array)
{
var temp_vvvvwat = store_vvvvwat;
var store_vvvvwat = [];
store_vvvvwat.push(temp_vvvvwat);
}
else if (!isSet(store_vvvvwat))
{
var store_vvvvwat = [];
}
var store = store_vvvvwat.some(store_vvvvwat_SomeFunc);
if (isSet(datatype_vvvvwat) && datatype_vvvvwat.constructor !== Array) if (isSet(datatype_vvvvwat) && datatype_vvvvwat.constructor !== Array)
{ {
var temp_vvvvwat = datatype_vvvvwat; var temp_vvvvwat = datatype_vvvvwat;
@ -307,27 +239,34 @@ function vvvvwat(store_vvvvwat,datatype_vvvvwat)
// 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_vvvvwatwaa_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwatwaa_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_vvvvwatwaa_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwatwaa_required = true;
}
} }
} }
// the vvvvwat Some function
function store_vvvvwat_SomeFunc(store_vvvvwat)
{
// set the function logic
if (store_vvvvwat == 4)
{
return true;
}
return false;
}
// the vvvvwat Some function // the vvvvwat Some function
function datatype_vvvvwat_SomeFunc(datatype_vvvvwat) function datatype_vvvvwat_SomeFunc(datatype_vvvvwat)
{ {
@ -339,130 +278,191 @@ function datatype_vvvvwat_SomeFunc(datatype_vvvvwat)
return false; return false;
} }
// the vvvvwav function // the vvvvwau function
function vvvvwav(add_css_view_vvvvwav) function vvvvwau(store_vvvvwau,datatype_vvvvwau)
{
if (isSet(store_vvvvwau) && store_vvvvwau.constructor !== Array)
{
var temp_vvvvwau = store_vvvvwau;
var store_vvvvwau = [];
store_vvvvwau.push(temp_vvvvwau);
}
else if (!isSet(store_vvvvwau))
{
var store_vvvvwau = [];
}
var store = store_vvvvwau.some(store_vvvvwau_SomeFunc);
if (isSet(datatype_vvvvwau) && datatype_vvvvwau.constructor !== Array)
{
var temp_vvvvwau = datatype_vvvvwau;
var datatype_vvvvwau = [];
datatype_vvvvwau.push(temp_vvvvwau);
}
else if (!isSet(datatype_vvvvwau))
{
var datatype_vvvvwau = [];
}
var datatype = datatype_vvvvwau.some(datatype_vvvvwau_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 vvvvwau Some function
function store_vvvvwau_SomeFunc(store_vvvvwau)
{ {
// set the function logic // set the function logic
if (add_css_view_vvvvwav == 1) if (store_vvvvwau == 4)
{
return true;
}
return false;
}
// the vvvvwau Some function
function datatype_vvvvwau_SomeFunc(datatype_vvvvwau)
{
// set the function logic
if (datatype_vvvvwau == 'CHAR' || datatype_vvvvwau == 'VARCHAR' || datatype_vvvvwau == 'TEXT' || datatype_vvvvwau == 'MEDIUMTEXT' || datatype_vvvvwau == 'LONGTEXT' || datatype_vvvvwau == 'BLOB' || datatype_vvvvwau == 'TINYBLOB' || datatype_vvvvwau == 'MEDIUMBLOB' || datatype_vvvvwau == 'LONGBLOB')
{
return true;
}
return false;
}
// the vvvvwaw function
function vvvvwaw(add_css_view_vvvvwaw)
{
// set the function logic
if (add_css_view_vvvvwaw == 1)
{ {
jQuery('#jform_css_view-lbl').closest('.control-group').show(); jQuery('#jform_css_view-lbl').closest('.control-group').show();
// add required attribute to css_view field // add required attribute to css_view field
if (jform_vvvvwavwab_required) if (jform_vvvvwawwab_required)
{ {
updateFieldRequired('css_view',0); updateFieldRequired('css_view',0);
jQuery('#jform_css_view').prop('required','required'); jQuery('#jform_css_view').prop('required','required');
jQuery('#jform_css_view').attr('aria-required',true); jQuery('#jform_css_view').attr('aria-required',true);
jQuery('#jform_css_view').addClass('required'); jQuery('#jform_css_view').addClass('required');
jform_vvvvwavwab_required = false; jform_vvvvwawwab_required = false;
} }
} }
else else
{ {
jQuery('#jform_css_view-lbl').closest('.control-group').hide(); jQuery('#jform_css_view-lbl').closest('.control-group').hide();
// remove required attribute from css_view field // remove required attribute from css_view field
if (!jform_vvvvwavwab_required) if (!jform_vvvvwawwab_required)
{ {
updateFieldRequired('css_view',1); updateFieldRequired('css_view',1);
jQuery('#jform_css_view').removeAttr('required'); jQuery('#jform_css_view').removeAttr('required');
jQuery('#jform_css_view').removeAttr('aria-required'); jQuery('#jform_css_view').removeAttr('aria-required');
jQuery('#jform_css_view').removeClass('required'); jQuery('#jform_css_view').removeClass('required');
jform_vvvvwavwab_required = true; jform_vvvvwawwab_required = true;
} }
} }
} }
// the vvvvwaw function // the vvvvwax function
function vvvvwaw(add_css_views_vvvvwaw) function vvvvwax(add_css_views_vvvvwax)
{ {
// set the function logic // set the function logic
if (add_css_views_vvvvwaw == 1) if (add_css_views_vvvvwax == 1)
{ {
jQuery('#jform_css_views-lbl').closest('.control-group').show(); jQuery('#jform_css_views-lbl').closest('.control-group').show();
// add required attribute to css_views field // add required attribute to css_views field
if (jform_vvvvwawwac_required) if (jform_vvvvwaxwac_required)
{ {
updateFieldRequired('css_views',0); updateFieldRequired('css_views',0);
jQuery('#jform_css_views').prop('required','required'); jQuery('#jform_css_views').prop('required','required');
jQuery('#jform_css_views').attr('aria-required',true); jQuery('#jform_css_views').attr('aria-required',true);
jQuery('#jform_css_views').addClass('required'); jQuery('#jform_css_views').addClass('required');
jform_vvvvwawwac_required = false; jform_vvvvwaxwac_required = false;
} }
} }
else else
{ {
jQuery('#jform_css_views-lbl').closest('.control-group').hide(); jQuery('#jform_css_views-lbl').closest('.control-group').hide();
// remove required attribute from css_views field // remove required attribute from css_views field
if (!jform_vvvvwawwac_required) if (!jform_vvvvwaxwac_required)
{ {
updateFieldRequired('css_views',1); updateFieldRequired('css_views',1);
jQuery('#jform_css_views').removeAttr('required'); jQuery('#jform_css_views').removeAttr('required');
jQuery('#jform_css_views').removeAttr('aria-required'); jQuery('#jform_css_views').removeAttr('aria-required');
jQuery('#jform_css_views').removeClass('required'); jQuery('#jform_css_views').removeClass('required');
jform_vvvvwawwac_required = true; jform_vvvvwaxwac_required = true;
} }
} }
} }
// the vvvvwax function // the vvvvway function
function vvvvwax(add_javascript_view_footer_vvvvwax) function vvvvway(add_javascript_view_footer_vvvvway)
{ {
// set the function logic // set the function logic
if (add_javascript_view_footer_vvvvwax == 1) if (add_javascript_view_footer_vvvvway == 1)
{ {
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
// add required attribute to javascript_view_footer field // add required attribute to javascript_view_footer field
if (jform_vvvvwaxwad_required) if (jform_vvvvwaywad_required)
{ {
updateFieldRequired('javascript_view_footer',0); updateFieldRequired('javascript_view_footer',0);
jQuery('#jform_javascript_view_footer').prop('required','required'); jQuery('#jform_javascript_view_footer').prop('required','required');
jQuery('#jform_javascript_view_footer').attr('aria-required',true); jQuery('#jform_javascript_view_footer').attr('aria-required',true);
jQuery('#jform_javascript_view_footer').addClass('required'); jQuery('#jform_javascript_view_footer').addClass('required');
jform_vvvvwaxwad_required = false; jform_vvvvwaywad_required = false;
} }
} }
else else
{ {
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide(); jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide();
// remove required attribute from javascript_view_footer field // remove required attribute from javascript_view_footer field
if (!jform_vvvvwaxwad_required) if (!jform_vvvvwaywad_required)
{ {
updateFieldRequired('javascript_view_footer',1); updateFieldRequired('javascript_view_footer',1);
jQuery('#jform_javascript_view_footer').removeAttr('required'); jQuery('#jform_javascript_view_footer').removeAttr('required');
jQuery('#jform_javascript_view_footer').removeAttr('aria-required'); jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
jQuery('#jform_javascript_view_footer').removeClass('required'); jQuery('#jform_javascript_view_footer').removeClass('required');
jform_vvvvwaxwad_required = true; jform_vvvvwaywad_required = true;
} }
} }
} }
// the vvvvway function // the vvvvwaz function
function vvvvway(add_javascript_views_footer_vvvvway) function vvvvwaz(add_javascript_views_footer_vvvvwaz)
{ {
// set the function logic // set the function logic
if (add_javascript_views_footer_vvvvway == 1) if (add_javascript_views_footer_vvvvwaz == 1)
{ {
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
// add required attribute to javascript_views_footer field // add required attribute to javascript_views_footer field
if (jform_vvvvwaywae_required) if (jform_vvvvwazwae_required)
{ {
updateFieldRequired('javascript_views_footer',0); updateFieldRequired('javascript_views_footer',0);
jQuery('#jform_javascript_views_footer').prop('required','required'); jQuery('#jform_javascript_views_footer').prop('required','required');
jQuery('#jform_javascript_views_footer').attr('aria-required',true); jQuery('#jform_javascript_views_footer').attr('aria-required',true);
jQuery('#jform_javascript_views_footer').addClass('required'); jQuery('#jform_javascript_views_footer').addClass('required');
jform_vvvvwaywae_required = false; jform_vvvvwazwae_required = false;
} }
} }
else else
{ {
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide(); jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide();
// remove required attribute from javascript_views_footer field // remove required attribute from javascript_views_footer field
if (!jform_vvvvwaywae_required) if (!jform_vvvvwazwae_required)
{ {
updateFieldRequired('javascript_views_footer',1); updateFieldRequired('javascript_views_footer',1);
jQuery('#jform_javascript_views_footer').removeAttr('required'); jQuery('#jform_javascript_views_footer').removeAttr('required');
jQuery('#jform_javascript_views_footer').removeAttr('aria-required'); jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
jQuery('#jform_javascript_views_footer').removeClass('required'); jQuery('#jform_javascript_views_footer').removeClass('required');
jform_vvvvwaywae_required = true; jform_vvvvwazwae_required = true;
} }
} }
} }

View File

@ -9,24 +9,21 @@
*/ */
// Some Global Values // Some Global Values
jform_vvvvwbjwaq_required = false; jform_vvvvwbkwaq_required = false;
jform_vvvvwbkwar_required = false; jform_vvvvwblwar_required = false;
jform_vvvvwblwas_required = false; jform_vvvvwbmwas_required = false;
jform_vvvvwbmwat_required = false; jform_vvvvwbnwat_required = false;
jform_vvvvwbnwau_required = false; jform_vvvvwbowau_required = false;
jform_vvvvwbowav_required = false; jform_vvvvwbpwav_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var location_vvvvwbj = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbj(location_vvvvwbj);
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val(); var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbk(location_vvvvwbk); vvvvwbk(location_vvvvwbk);
var type_vvvvwbl = jQuery("#jform_type").val(); var location_vvvvwbl = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbl(type_vvvvwbl); vvvvwbl(location_vvvvwbl);
var type_vvvvwbm = jQuery("#jform_type").val(); var type_vvvvwbm = jQuery("#jform_type").val();
vvvvwbm(type_vvvvwbm); vvvvwbm(type_vvvvwbm);
@ -34,130 +31,77 @@ jQuery(document).ready(function()
var type_vvvvwbn = jQuery("#jform_type").val(); var type_vvvvwbn = jQuery("#jform_type").val();
vvvvwbn(type_vvvvwbn); vvvvwbn(type_vvvvwbn);
var target_vvvvwbo = jQuery("#jform_target input[type='radio']:checked").val(); var type_vvvvwbo = jQuery("#jform_type").val();
vvvvwbo(target_vvvvwbo); vvvvwbo(type_vvvvwbo);
var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbp(target_vvvvwbp);
}); });
// the vvvvwbj function // the vvvvwbk function
function vvvvwbj(location_vvvvwbj) function vvvvwbk(location_vvvvwbk)
{ {
// set the function logic // set the function logic
if (location_vvvvwbj == 1) if (location_vvvvwbk == 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_vvvvwbjwaq_required) if (jform_vvvvwbkwaq_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_vvvvwbjwaq_required = false; jform_vvvvwbkwaq_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_vvvvwbjwaq_required) if (!jform_vvvvwbkwaq_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_vvvvwbjwaq_required = true; jform_vvvvwbkwaq_required = true;
} }
} }
} }
// the vvvvwbk function // the vvvvwbl function
function vvvvwbk(location_vvvvwbk) function vvvvwbl(location_vvvvwbl)
{ {
// set the function logic // set the function logic
if (location_vvvvwbk == 2) if (location_vvvvwbl == 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_vvvvwbkwar_required) if (jform_vvvvwblwar_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_vvvvwbkwar_required = false; jform_vvvvwblwar_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_vvvvwbkwar_required) if (!jform_vvvvwblwar_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_vvvvwbkwar_required = true; jform_vvvvwblwar_required = true;
} }
} }
} }
// the vvvvwbl function
function vvvvwbl(type_vvvvwbl)
{
if (isSet(type_vvvvwbl) && type_vvvvwbl.constructor !== Array)
{
var temp_vvvvwbl = type_vvvvwbl;
var type_vvvvwbl = [];
type_vvvvwbl.push(temp_vvvvwbl);
}
else if (!isSet(type_vvvvwbl))
{
var type_vvvvwbl = [];
}
var type = type_vvvvwbl.some(type_vvvvwbl_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
// add required attribute to url field
if (jform_vvvvwblwas_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwblwas_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
// remove required attribute from url field
if (!jform_vvvvwblwas_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwblwas_required = true;
}
}
}
// the vvvvwbl Some function
function type_vvvvwbl_SomeFunc(type_vvvvwbl)
{
// set the function logic
if (type_vvvvwbl == 3)
{
return true;
}
return false;
}
// the vvvvwbm function // the vvvvwbm function
function vvvvwbm(type_vvvvwbm) function vvvvwbm(type_vvvvwbm)
{ {
@ -177,28 +121,28 @@ function vvvvwbm(type_vvvvwbm)
// set this function logic // set this function logic
if (type) if (type)
{ {
jQuery('#jform_article').closest('.control-group').show(); jQuery('#jform_url').closest('.control-group').show();
// add required attribute to article field // add required attribute to url field
if (jform_vvvvwbmwat_required) if (jform_vvvvwbmwas_required)
{ {
updateFieldRequired('article',0); updateFieldRequired('url',0);
jQuery('#jform_article').prop('required','required'); jQuery('#jform_url').prop('required','required');
jQuery('#jform_article').attr('aria-required',true); jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_article').addClass('required'); jQuery('#jform_url').addClass('required');
jform_vvvvwbmwat_required = false; jform_vvvvwbmwas_required = false;
} }
} }
else else
{ {
jQuery('#jform_article').closest('.control-group').hide(); jQuery('#jform_url').closest('.control-group').hide();
// remove required attribute from article field // remove required attribute from url field
if (!jform_vvvvwbmwat_required) if (!jform_vvvvwbmwas_required)
{ {
updateFieldRequired('article',1); updateFieldRequired('url',1);
jQuery('#jform_article').removeAttr('required'); jQuery('#jform_url').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required'); jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required'); jQuery('#jform_url').removeClass('required');
jform_vvvvwbmwat_required = true; jform_vvvvwbmwas_required = true;
} }
} }
} }
@ -207,7 +151,7 @@ function vvvvwbm(type_vvvvwbm)
function type_vvvvwbm_SomeFunc(type_vvvvwbm) function type_vvvvwbm_SomeFunc(type_vvvvwbm)
{ {
// set the function logic // set the function logic
if (type_vvvvwbm == 1) if (type_vvvvwbm == 3)
{ {
return true; return true;
} }
@ -233,28 +177,28 @@ function vvvvwbn(type_vvvvwbn)
// set this function logic // set this function logic
if (type) if (type)
{ {
jQuery('#jform_content-lbl').closest('.control-group').show(); jQuery('#jform_article').closest('.control-group').show();
// add required attribute to content field // add required attribute to article field
if (jform_vvvvwbnwau_required) if (jform_vvvvwbnwat_required)
{ {
updateFieldRequired('content',0); updateFieldRequired('article',0);
jQuery('#jform_content').prop('required','required'); jQuery('#jform_article').prop('required','required');
jQuery('#jform_content').attr('aria-required',true); jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_content').addClass('required'); jQuery('#jform_article').addClass('required');
jform_vvvvwbnwau_required = false; jform_vvvvwbnwat_required = false;
} }
} }
else else
{ {
jQuery('#jform_content-lbl').closest('.control-group').hide(); jQuery('#jform_article').closest('.control-group').hide();
// remove required attribute from content field // remove required attribute from article field
if (!jform_vvvvwbnwau_required) if (!jform_vvvvwbnwat_required)
{ {
updateFieldRequired('content',1); updateFieldRequired('article',1);
jQuery('#jform_content').removeAttr('required'); jQuery('#jform_article').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required'); jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required'); jQuery('#jform_article').removeClass('required');
jform_vvvvwbnwau_required = true; jform_vvvvwbnwat_required = true;
} }
} }
} }
@ -263,7 +207,7 @@ function vvvvwbn(type_vvvvwbn)
function type_vvvvwbn_SomeFunc(type_vvvvwbn) function type_vvvvwbn_SomeFunc(type_vvvvwbn)
{ {
// set the function logic // set the function logic
if (type_vvvvwbn == 2) if (type_vvvvwbn == 1)
{ {
return true; return true;
} }
@ -271,33 +215,89 @@ function type_vvvvwbn_SomeFunc(type_vvvvwbn)
} }
// the vvvvwbo function // the vvvvwbo function
function vvvvwbo(target_vvvvwbo) function vvvvwbo(type_vvvvwbo)
{
if (isSet(type_vvvvwbo) && type_vvvvwbo.constructor !== Array)
{
var temp_vvvvwbo = type_vvvvwbo;
var type_vvvvwbo = [];
type_vvvvwbo.push(temp_vvvvwbo);
}
else if (!isSet(type_vvvvwbo))
{
var type_vvvvwbo = [];
}
var type = type_vvvvwbo.some(type_vvvvwbo_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
// add required attribute to content field
if (jform_vvvvwbowau_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvwbowau_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
// remove required attribute from content field
if (!jform_vvvvwbowau_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvwbowau_required = true;
}
}
}
// the vvvvwbo Some function
function type_vvvvwbo_SomeFunc(type_vvvvwbo)
{ {
// set the function logic // set the function logic
if (target_vvvvwbo == 1) if (type_vvvvwbo == 2)
{
return true;
}
return false;
}
// the vvvvwbp function
function vvvvwbp(target_vvvvwbp)
{
// set the function logic
if (target_vvvvwbp == 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_vvvvwbowav_required) if (jform_vvvvwbpwav_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_vvvvwbowav_required = false; jform_vvvvwbpwav_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_vvvvwbowav_required) if (!jform_vvvvwbpwav_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_vvvvwbowav_required = true; jform_vvvvwbpwav_required = true;
} }
} }
} }

View File

@ -9,15 +9,12 @@
*/ */
// Some Global Values // Some Global Values
jform_vvvvwaivzv_required = false; jform_vvvvwajvzv_required = false;
jform_vvvvwaovzw_required = false; jform_vvvvwapvzw_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var how_vvvvwah = jQuery("#jform_how").val();
vvvvwah(how_vvvvwah);
var how_vvvvwai = jQuery("#jform_how").val(); var how_vvvvwai = jQuery("#jform_how").val();
vvvvwai(how_vvvvwai); vvvvwai(how_vvvvwai);
@ -36,48 +33,13 @@ jQuery(document).ready(function()
var how_vvvvwan = jQuery("#jform_how").val(); var how_vvvvwan = jQuery("#jform_how").val();
vvvvwan(how_vvvvwan); vvvvwan(how_vvvvwan);
var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val(); var how_vvvvwao = jQuery("#jform_how").val();
vvvvwao(type_vvvvwao); vvvvwao(how_vvvvwao);
var type_vvvvwap = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwap(type_vvvvwap);
}); });
// the vvvvwah function
function vvvvwah(how_vvvvwah)
{
if (isSet(how_vvvvwah) && how_vvvvwah.constructor !== Array)
{
var temp_vvvvwah = how_vvvvwah;
var how_vvvvwah = [];
how_vvvvwah.push(temp_vvvvwah);
}
else if (!isSet(how_vvvvwah))
{
var how_vvvvwah = [];
}
var how = how_vvvvwah.some(how_vvvvwah_SomeFunc);
// set this function logic
if (how)
{
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
}
else
{
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
}
}
// the vvvvwah Some function
function how_vvvvwah_SomeFunc(how_vvvvwah)
{
// set the function logic
if (how_vvvvwah == 2)
{
return true;
}
return false;
}
// the vvvvwai function // the vvvvwai function
function vvvvwai(how_vvvvwai) function vvvvwai(how_vvvvwai)
{ {
@ -97,29 +59,11 @@ function vvvvwai(how_vvvvwai)
// set this function logic // set this function logic
if (how) if (how)
{ {
jQuery('#jform_php_setdocument').closest('.control-group').show(); jQuery('#jform_addconditions-lbl').closest('.control-group').show();
// add required attribute to php_setdocument field
if (jform_vvvvwaivzv_required)
{
updateFieldRequired('php_setdocument',0);
jQuery('#jform_php_setdocument').prop('required','required');
jQuery('#jform_php_setdocument').attr('aria-required',true);
jQuery('#jform_php_setdocument').addClass('required');
jform_vvvvwaivzv_required = false;
}
} }
else else
{ {
jQuery('#jform_php_setdocument').closest('.control-group').hide(); jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
// remove required attribute from php_setdocument field
if (!jform_vvvvwaivzv_required)
{
updateFieldRequired('php_setdocument',1);
jQuery('#jform_php_setdocument').removeAttr('required');
jQuery('#jform_php_setdocument').removeAttr('aria-required');
jQuery('#jform_php_setdocument').removeClass('required');
jform_vvvvwaivzv_required = true;
}
} }
} }
@ -127,7 +71,7 @@ function vvvvwai(how_vvvvwai)
function how_vvvvwai_SomeFunc(how_vvvvwai) function how_vvvvwai_SomeFunc(how_vvvvwai)
{ {
// set the function logic // set the function logic
if (how_vvvvwai == 3) if (how_vvvvwai == 2)
{ {
return true; return true;
} }
@ -153,11 +97,29 @@ function vvvvwaj(how_vvvvwaj)
// set this function logic // set this function logic
if (how) if (how)
{ {
jQuery('.note_display_library_config').closest('.control-group').show(); jQuery('#jform_php_setdocument').closest('.control-group').show();
// add required attribute to php_setdocument field
if (jform_vvvvwajvzv_required)
{
updateFieldRequired('php_setdocument',0);
jQuery('#jform_php_setdocument').prop('required','required');
jQuery('#jform_php_setdocument').attr('aria-required',true);
jQuery('#jform_php_setdocument').addClass('required');
jform_vvvvwajvzv_required = false;
}
} }
else else
{ {
jQuery('.note_display_library_config').closest('.control-group').hide(); jQuery('#jform_php_setdocument').closest('.control-group').hide();
// remove required attribute from php_setdocument field
if (!jform_vvvvwajvzv_required)
{
updateFieldRequired('php_setdocument',1);
jQuery('#jform_php_setdocument').removeAttr('required');
jQuery('#jform_php_setdocument').removeAttr('aria-required');
jQuery('#jform_php_setdocument').removeClass('required');
jform_vvvvwajvzv_required = true;
}
} }
} }
@ -165,7 +127,7 @@ function vvvvwaj(how_vvvvwaj)
function how_vvvvwaj_SomeFunc(how_vvvvwaj) function how_vvvvwaj_SomeFunc(how_vvvvwaj)
{ {
// set the function logic // set the function logic
if (how_vvvvwaj == 2 || how_vvvvwaj == 3) if (how_vvvvwaj == 3)
{ {
return true; return true;
} }
@ -191,11 +153,11 @@ function vvvvwak(how_vvvvwak)
// set this function logic // set this function logic
if (how) if (how)
{ {
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show(); jQuery('.note_display_library_config').closest('.control-group').show();
} }
else else
{ {
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide(); jQuery('.note_display_library_config').closest('.control-group').hide();
} }
} }
@ -203,7 +165,7 @@ function vvvvwak(how_vvvvwak)
function how_vvvvwak_SomeFunc(how_vvvvwak) function how_vvvvwak_SomeFunc(how_vvvvwak)
{ {
// set the function logic // set the function logic
if (how_vvvvwak == 1 || how_vvvvwak == 2 || how_vvvvwak == 3) if (how_vvvvwak == 2 || how_vvvvwak == 3)
{ {
return true; return true;
} }
@ -229,15 +191,11 @@ function vvvvwal(how_vvvvwal)
// set this function logic // set this function logic
if (how) if (how)
{ {
jQuery('.note_no_behaviour_one').closest('.control-group').show(); jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
jQuery('.note_no_behaviour_three').closest('.control-group').show();
jQuery('.note_no_behaviour_two').closest('.control-group').show();
} }
else else
{ {
jQuery('.note_no_behaviour_one').closest('.control-group').hide(); jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
} }
} }
@ -245,7 +203,7 @@ function vvvvwal(how_vvvvwal)
function how_vvvvwal_SomeFunc(how_vvvvwal) function how_vvvvwal_SomeFunc(how_vvvvwal)
{ {
// set the function logic // set the function logic
if (how_vvvvwal == 0) if (how_vvvvwal == 1 || how_vvvvwal == 2 || how_vvvvwal == 3)
{ {
return true; return true;
} }
@ -271,13 +229,15 @@ function vvvvwam(how_vvvvwam)
// set this function logic // set this function logic
if (how) if (how)
{ {
jQuery('.note_yes_behaviour_one').closest('.control-group').show(); jQuery('.note_no_behaviour_one').closest('.control-group').show();
jQuery('.note_yes_behaviour_two').closest('.control-group').show(); jQuery('.note_no_behaviour_three').closest('.control-group').show();
jQuery('.note_no_behaviour_two').closest('.control-group').show();
} }
else else
{ {
jQuery('.note_yes_behaviour_one').closest('.control-group').hide(); jQuery('.note_no_behaviour_one').closest('.control-group').hide();
jQuery('.note_yes_behaviour_two').closest('.control-group').hide(); jQuery('.note_no_behaviour_three').closest('.control-group').hide();
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
} }
} }
@ -285,7 +245,7 @@ function vvvvwam(how_vvvvwam)
function how_vvvvwam_SomeFunc(how_vvvvwam) function how_vvvvwam_SomeFunc(how_vvvvwam)
{ {
// set the function logic // set the function logic
if (how_vvvvwam == 1) if (how_vvvvwam == 0)
{ {
return true; return true;
} }
@ -308,6 +268,46 @@ function vvvvwan(how_vvvvwan)
var how = how_vvvvwan.some(how_vvvvwan_SomeFunc); var how = how_vvvvwan.some(how_vvvvwan_SomeFunc);
// set this function logic
if (how)
{
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
}
else
{
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
}
}
// the vvvvwan Some function
function how_vvvvwan_SomeFunc(how_vvvvwan)
{
// set the function logic
if (how_vvvvwan == 1)
{
return true;
}
return false;
}
// the vvvvwao function
function vvvvwao(how_vvvvwao)
{
if (isSet(how_vvvvwao) && how_vvvvwao.constructor !== Array)
{
var temp_vvvvwao = how_vvvvwao;
var how_vvvvwao = [];
how_vvvvwao.push(temp_vvvvwao);
}
else if (!isSet(how_vvvvwao))
{
var how_vvvvwao = [];
}
var how = how_vvvvwao.some(how_vvvvwao_SomeFunc);
// set this function logic // set this function logic
if (how) if (how)
{ {
@ -323,45 +323,45 @@ function vvvvwan(how_vvvvwan)
} }
} }
// the vvvvwan Some function // the vvvvwao Some function
function how_vvvvwan_SomeFunc(how_vvvvwan) function how_vvvvwao_SomeFunc(how_vvvvwao)
{ {
// set the function logic // set the function logic
if (how_vvvvwan == 4) if (how_vvvvwao == 4)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwao function // the vvvvwap function
function vvvvwao(type_vvvvwao) function vvvvwap(type_vvvvwap)
{ {
// set the function logic // set the function logic
if (type_vvvvwao == 2) if (type_vvvvwap == 2)
{ {
jQuery('#jform_libraries').closest('.control-group').show(); jQuery('#jform_libraries').closest('.control-group').show();
// add required attribute to libraries field // add required attribute to libraries field
if (jform_vvvvwaovzw_required) if (jform_vvvvwapvzw_required)
{ {
updateFieldRequired('libraries',0); updateFieldRequired('libraries',0);
jQuery('#jform_libraries').prop('required','required'); jQuery('#jform_libraries').prop('required','required');
jQuery('#jform_libraries').attr('aria-required',true); jQuery('#jform_libraries').attr('aria-required',true);
jQuery('#jform_libraries').addClass('required'); jQuery('#jform_libraries').addClass('required');
jform_vvvvwaovzw_required = false; jform_vvvvwapvzw_required = false;
} }
} }
else else
{ {
jQuery('#jform_libraries').closest('.control-group').hide(); jQuery('#jform_libraries').closest('.control-group').hide();
// remove required attribute from libraries field // remove required attribute from libraries field
if (!jform_vvvvwaovzw_required) if (!jform_vvvvwapvzw_required)
{ {
updateFieldRequired('libraries',1); updateFieldRequired('libraries',1);
jQuery('#jform_libraries').removeAttr('required'); jQuery('#jform_libraries').removeAttr('required');
jQuery('#jform_libraries').removeAttr('aria-required'); jQuery('#jform_libraries').removeAttr('aria-required');
jQuery('#jform_libraries').removeClass('required'); jQuery('#jform_libraries').removeClass('required');
jform_vvvvwaovzw_required = true; jform_vvvvwapvzw_required = true;
} }
} }
} }

View File

@ -9,180 +9,42 @@
*/ */
// Some Global Values // Some Global Values
jform_vvvvwazwag_required = false; jform_vvvvwbawag_required = false;
jform_vvvvwazwah_required = false; jform_vvvvwbawah_required = false;
jform_vvvvwazwai_required = false; jform_vvvvwbawai_required = false;
jform_vvvvwazwaj_required = false; jform_vvvvwbawaj_required = false;
jform_vvvvwazwak_required = false; jform_vvvvwbawak_required = false;
jform_vvvvwbawal_required = false; jform_vvvvwbbwal_required = false;
jform_vvvvwbbwam_required = false; jform_vvvvwbcwam_required = false;
jform_vvvvwbdwan_required = false; jform_vvvvwbewan_required = false;
jform_vvvvwbfwao_required = false; jform_vvvvwbgwao_required = false;
// Initial Script // Initial Script
jQuery(document).ready(function() jQuery(document).ready(function()
{ {
var protocol_vvvvwaz = jQuery("#jform_protocol").val();
vvvvwaz(protocol_vvvvwaz);
var protocol_vvvvwba = jQuery("#jform_protocol").val(); var protocol_vvvvwba = jQuery("#jform_protocol").val();
vvvvwba(protocol_vvvvwba); vvvvwba(protocol_vvvvwba);
var protocol_vvvvwbb = jQuery("#jform_protocol").val(); var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val(); vvvvwbb(protocol_vvvvwbb);
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
var protocol_vvvvwbd = jQuery("#jform_protocol").val(); var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val(); var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd); vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
var protocol_vvvvwbf = jQuery("#jform_protocol").val(); var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val(); var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf); vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
var protocol_vvvvwbh = jQuery("#jform_protocol").val(); var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val(); var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh); vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
}); });
// the vvvvwaz function
function vvvvwaz(protocol_vvvvwaz)
{
if (isSet(protocol_vvvvwaz) && protocol_vvvvwaz.constructor !== Array)
{
var temp_vvvvwaz = protocol_vvvvwaz;
var protocol_vvvvwaz = [];
protocol_vvvvwaz.push(temp_vvvvwaz);
}
else if (!isSet(protocol_vvvvwaz))
{
var protocol_vvvvwaz = [];
}
var protocol = protocol_vvvvwaz.some(protocol_vvvvwaz_SomeFunc);
// set this function logic
if (protocol)
{
jQuery('#jform_authentication').closest('.control-group').show();
// add required attribute to authentication field
if (jform_vvvvwazwag_required)
{
updateFieldRequired('authentication',0);
jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_authentication').addClass('required');
jform_vvvvwazwag_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
// add required attribute to host field
if (jform_vvvvwazwah_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwazwah_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
// add required attribute to port field
if (jform_vvvvwazwai_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwazwai_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
if (jform_vvvvwazwaj_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwazwaj_required = false;
}
jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show();
// add required attribute to username field
if (jform_vvvvwazwak_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwazwak_required = false;
}
}
else
{
jQuery('#jform_authentication').closest('.control-group').hide();
// remove required attribute from authentication field
if (!jform_vvvvwazwag_required)
{
updateFieldRequired('authentication',1);
jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_authentication').removeClass('required');
jform_vvvvwazwag_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
// remove required attribute from host field
if (!jform_vvvvwazwah_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwazwah_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
// remove required attribute from port field
if (!jform_vvvvwazwai_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwazwai_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
if (!jform_vvvvwazwaj_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwazwaj_required = true;
}
jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide();
// remove required attribute from username field
if (!jform_vvvvwazwak_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwazwak_required = true;
}
}
}
// the vvvvwaz Some function
function protocol_vvvvwaz_SomeFunc(protocol_vvvvwaz)
{
// set the function logic
if (protocol_vvvvwaz == 2)
{
return true;
}
return false;
}
// the vvvvwba function // the vvvvwba function
function vvvvwba(protocol_vvvvwba) function vvvvwba(protocol_vvvvwba)
{ {
@ -202,30 +64,110 @@ function vvvvwba(protocol_vvvvwba)
// set this function logic // set this function logic
if (protocol) if (protocol)
{ {
jQuery('.note_ftp_signature').closest('.control-group').show(); jQuery('#jform_authentication').closest('.control-group').show();
jQuery('#jform_signature').closest('.control-group').show(); // add required attribute to authentication field
// add required attribute to signature field if (jform_vvvvwbawag_required)
if (jform_vvvvwbawal_required)
{ {
updateFieldRequired('signature',0); updateFieldRequired('authentication',0);
jQuery('#jform_signature').prop('required','required'); jQuery('#jform_authentication').prop('required','required');
jQuery('#jform_signature').attr('aria-required',true); jQuery('#jform_authentication').attr('aria-required',true);
jQuery('#jform_signature').addClass('required'); jQuery('#jform_authentication').addClass('required');
jform_vvvvwbawal_required = false; jform_vvvvwbawag_required = false;
}
jQuery('#jform_host').closest('.control-group').show();
// add required attribute to host field
if (jform_vvvvwbawah_required)
{
updateFieldRequired('host',0);
jQuery('#jform_host').prop('required','required');
jQuery('#jform_host').attr('aria-required',true);
jQuery('#jform_host').addClass('required');
jform_vvvvwbawah_required = false;
}
jQuery('#jform_port').closest('.control-group').show();
// add required attribute to port field
if (jform_vvvvwbawai_required)
{
updateFieldRequired('port',0);
jQuery('#jform_port').prop('required','required');
jQuery('#jform_port').attr('aria-required',true);
jQuery('#jform_port').addClass('required');
jform_vvvvwbawai_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
// add required attribute to path field
if (jform_vvvvwbawaj_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvwbawaj_required = false;
}
jQuery('.note_ssh_security').closest('.control-group').show();
jQuery('#jform_username').closest('.control-group').show();
// add required attribute to username field
if (jform_vvvvwbawak_required)
{
updateFieldRequired('username',0);
jQuery('#jform_username').prop('required','required');
jQuery('#jform_username').attr('aria-required',true);
jQuery('#jform_username').addClass('required');
jform_vvvvwbawak_required = false;
} }
} }
else else
{ {
jQuery('.note_ftp_signature').closest('.control-group').hide(); jQuery('#jform_authentication').closest('.control-group').hide();
jQuery('#jform_signature').closest('.control-group').hide(); // remove required attribute from authentication field
// remove required attribute from signature field if (!jform_vvvvwbawag_required)
if (!jform_vvvvwbawal_required)
{ {
updateFieldRequired('signature',1); updateFieldRequired('authentication',1);
jQuery('#jform_signature').removeAttr('required'); jQuery('#jform_authentication').removeAttr('required');
jQuery('#jform_signature').removeAttr('aria-required'); jQuery('#jform_authentication').removeAttr('aria-required');
jQuery('#jform_signature').removeClass('required'); jQuery('#jform_authentication').removeClass('required');
jform_vvvvwbawal_required = true; jform_vvvvwbawag_required = true;
}
jQuery('#jform_host').closest('.control-group').hide();
// remove required attribute from host field
if (!jform_vvvvwbawah_required)
{
updateFieldRequired('host',1);
jQuery('#jform_host').removeAttr('required');
jQuery('#jform_host').removeAttr('aria-required');
jQuery('#jform_host').removeClass('required');
jform_vvvvwbawah_required = true;
}
jQuery('#jform_port').closest('.control-group').hide();
// remove required attribute from port field
if (!jform_vvvvwbawai_required)
{
updateFieldRequired('port',1);
jQuery('#jform_port').removeAttr('required');
jQuery('#jform_port').removeAttr('aria-required');
jQuery('#jform_port').removeClass('required');
jform_vvvvwbawai_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
// remove required attribute from path field
if (!jform_vvvvwbawaj_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvwbawaj_required = true;
}
jQuery('.note_ssh_security').closest('.control-group').hide();
jQuery('#jform_username').closest('.control-group').hide();
// remove required attribute from username field
if (!jform_vvvvwbawak_required)
{
updateFieldRequired('username',1);
jQuery('#jform_username').removeAttr('required');
jQuery('#jform_username').removeAttr('aria-required');
jQuery('#jform_username').removeClass('required');
jform_vvvvwbawak_required = true;
} }
} }
} }
@ -234,7 +176,7 @@ function vvvvwba(protocol_vvvvwba)
function protocol_vvvvwba_SomeFunc(protocol_vvvvwba) function protocol_vvvvwba_SomeFunc(protocol_vvvvwba)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwba == 1) if (protocol_vvvvwba == 2)
{ {
return true; return true;
} }
@ -242,7 +184,7 @@ function protocol_vvvvwba_SomeFunc(protocol_vvvvwba)
} }
// the vvvvwbb function // the vvvvwbb function
function vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb) function vvvvwbb(protocol_vvvvwbb)
{ {
if (isSet(protocol_vvvvwbb) && protocol_vvvvwbb.constructor !== Array) if (isSet(protocol_vvvvwbb) && protocol_vvvvwbb.constructor !== Array)
{ {
@ -256,44 +198,34 @@ function vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb)
} }
var protocol = protocol_vvvvwbb.some(protocol_vvvvwbb_SomeFunc); var protocol = protocol_vvvvwbb.some(protocol_vvvvwbb_SomeFunc);
if (isSet(authentication_vvvvwbb) && authentication_vvvvwbb.constructor !== Array)
{
var temp_vvvvwbb = authentication_vvvvwbb;
var authentication_vvvvwbb = [];
authentication_vvvvwbb.push(temp_vvvvwbb);
}
else if (!isSet(authentication_vvvvwbb))
{
var authentication_vvvvwbb = [];
}
var authentication = authentication_vvvvwbb.some(authentication_vvvvwbb_SomeFunc);
// set this function logic // set this function logic
if (protocol && authentication) if (protocol)
{ {
jQuery('#jform_password').closest('.control-group').show(); jQuery('.note_ftp_signature').closest('.control-group').show();
// add required attribute to password field jQuery('#jform_signature').closest('.control-group').show();
if (jform_vvvvwbbwam_required) // add required attribute to signature field
if (jform_vvvvwbbwal_required)
{ {
updateFieldRequired('password',0); updateFieldRequired('signature',0);
jQuery('#jform_password').prop('required','required'); jQuery('#jform_signature').prop('required','required');
jQuery('#jform_password').attr('aria-required',true); jQuery('#jform_signature').attr('aria-required',true);
jQuery('#jform_password').addClass('required'); jQuery('#jform_signature').addClass('required');
jform_vvvvwbbwam_required = false; jform_vvvvwbbwal_required = false;
} }
} }
else else
{ {
jQuery('#jform_password').closest('.control-group').hide(); jQuery('.note_ftp_signature').closest('.control-group').hide();
// remove required attribute from password field jQuery('#jform_signature').closest('.control-group').hide();
if (!jform_vvvvwbbwam_required) // remove required attribute from signature field
if (!jform_vvvvwbbwal_required)
{ {
updateFieldRequired('password',1); updateFieldRequired('signature',1);
jQuery('#jform_password').removeAttr('required'); jQuery('#jform_signature').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required'); jQuery('#jform_signature').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required'); jQuery('#jform_signature').removeClass('required');
jform_vvvvwbbwam_required = true; jform_vvvvwbbwal_required = true;
} }
} }
} }
@ -302,50 +234,118 @@ function vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb)
function protocol_vvvvwbb_SomeFunc(protocol_vvvvwbb) function protocol_vvvvwbb_SomeFunc(protocol_vvvvwbb)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwbb == 2) if (protocol_vvvvwbb == 1)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwbb Some function // the vvvvwbc function
function authentication_vvvvwbb_SomeFunc(authentication_vvvvwbb) function vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc)
{
if (isSet(protocol_vvvvwbc) && protocol_vvvvwbc.constructor !== Array)
{
var temp_vvvvwbc = protocol_vvvvwbc;
var protocol_vvvvwbc = [];
protocol_vvvvwbc.push(temp_vvvvwbc);
}
else if (!isSet(protocol_vvvvwbc))
{
var protocol_vvvvwbc = [];
}
var protocol = protocol_vvvvwbc.some(protocol_vvvvwbc_SomeFunc);
if (isSet(authentication_vvvvwbc) && authentication_vvvvwbc.constructor !== Array)
{
var temp_vvvvwbc = authentication_vvvvwbc;
var authentication_vvvvwbc = [];
authentication_vvvvwbc.push(temp_vvvvwbc);
}
else if (!isSet(authentication_vvvvwbc))
{
var authentication_vvvvwbc = [];
}
var authentication = authentication_vvvvwbc.some(authentication_vvvvwbc_SomeFunc);
// set this function logic
if (protocol && authentication)
{
jQuery('#jform_password').closest('.control-group').show();
// add required attribute to password field
if (jform_vvvvwbcwam_required)
{
updateFieldRequired('password',0);
jQuery('#jform_password').prop('required','required');
jQuery('#jform_password').attr('aria-required',true);
jQuery('#jform_password').addClass('required');
jform_vvvvwbcwam_required = false;
}
}
else
{
jQuery('#jform_password').closest('.control-group').hide();
// remove required attribute from password field
if (!jform_vvvvwbcwam_required)
{
updateFieldRequired('password',1);
jQuery('#jform_password').removeAttr('required');
jQuery('#jform_password').removeAttr('aria-required');
jQuery('#jform_password').removeClass('required');
jform_vvvvwbcwam_required = true;
}
}
}
// the vvvvwbc Some function
function protocol_vvvvwbc_SomeFunc(protocol_vvvvwbc)
{ {
// set the function logic // set the function logic
if (authentication_vvvvwbb == 1 || authentication_vvvvwbb == 3 || authentication_vvvvwbb == 5) if (protocol_vvvvwbc == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwbd function // the vvvvwbc Some function
function vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd) function authentication_vvvvwbc_SomeFunc(authentication_vvvvwbc)
{ {
if (isSet(protocol_vvvvwbd) && protocol_vvvvwbd.constructor !== Array) // set the function logic
if (authentication_vvvvwbc == 1 || authentication_vvvvwbc == 3 || authentication_vvvvwbc == 5)
{ {
var temp_vvvvwbd = protocol_vvvvwbd; return true;
var protocol_vvvvwbd = [];
protocol_vvvvwbd.push(temp_vvvvwbd);
} }
else if (!isSet(protocol_vvvvwbd)) return false;
{ }
var protocol_vvvvwbd = [];
}
var protocol = protocol_vvvvwbd.some(protocol_vvvvwbd_SomeFunc);
if (isSet(authentication_vvvvwbd) && authentication_vvvvwbd.constructor !== Array) // the vvvvwbe function
function vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe)
{
if (isSet(protocol_vvvvwbe) && protocol_vvvvwbe.constructor !== Array)
{ {
var temp_vvvvwbd = authentication_vvvvwbd; var temp_vvvvwbe = protocol_vvvvwbe;
var authentication_vvvvwbd = []; var protocol_vvvvwbe = [];
authentication_vvvvwbd.push(temp_vvvvwbd); protocol_vvvvwbe.push(temp_vvvvwbe);
} }
else if (!isSet(authentication_vvvvwbd)) else if (!isSet(protocol_vvvvwbe))
{ {
var authentication_vvvvwbd = []; var protocol_vvvvwbe = [];
} }
var authentication = authentication_vvvvwbd.some(authentication_vvvvwbd_SomeFunc); var protocol = protocol_vvvvwbe.some(protocol_vvvvwbe_SomeFunc);
if (isSet(authentication_vvvvwbe) && authentication_vvvvwbe.constructor !== Array)
{
var temp_vvvvwbe = authentication_vvvvwbe;
var authentication_vvvvwbe = [];
authentication_vvvvwbe.push(temp_vvvvwbe);
}
else if (!isSet(authentication_vvvvwbe))
{
var authentication_vvvvwbe = [];
}
var authentication = authentication_vvvvwbe.some(authentication_vvvvwbe_SomeFunc);
// set this function logic // set this function logic
@ -353,78 +353,78 @@ function vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd)
{ {
jQuery('#jform_private').closest('.control-group').show(); jQuery('#jform_private').closest('.control-group').show();
// add required attribute to private field // add required attribute to private field
if (jform_vvvvwbdwan_required) if (jform_vvvvwbewan_required)
{ {
updateFieldRequired('private',0); updateFieldRequired('private',0);
jQuery('#jform_private').prop('required','required'); jQuery('#jform_private').prop('required','required');
jQuery('#jform_private').attr('aria-required',true); jQuery('#jform_private').attr('aria-required',true);
jQuery('#jform_private').addClass('required'); jQuery('#jform_private').addClass('required');
jform_vvvvwbdwan_required = false; jform_vvvvwbewan_required = false;
} }
} }
else else
{ {
jQuery('#jform_private').closest('.control-group').hide(); jQuery('#jform_private').closest('.control-group').hide();
// remove required attribute from private field // remove required attribute from private field
if (!jform_vvvvwbdwan_required) if (!jform_vvvvwbewan_required)
{ {
updateFieldRequired('private',1); updateFieldRequired('private',1);
jQuery('#jform_private').removeAttr('required'); jQuery('#jform_private').removeAttr('required');
jQuery('#jform_private').removeAttr('aria-required'); jQuery('#jform_private').removeAttr('aria-required');
jQuery('#jform_private').removeClass('required'); jQuery('#jform_private').removeClass('required');
jform_vvvvwbdwan_required = true; jform_vvvvwbewan_required = true;
} }
} }
} }
// the vvvvwbd Some function // the vvvvwbe Some function
function protocol_vvvvwbd_SomeFunc(protocol_vvvvwbd) function protocol_vvvvwbe_SomeFunc(protocol_vvvvwbe)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwbd == 2) if (protocol_vvvvwbe == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwbd Some function // the vvvvwbe Some function
function authentication_vvvvwbd_SomeFunc(authentication_vvvvwbd) function authentication_vvvvwbe_SomeFunc(authentication_vvvvwbe)
{ {
// set the function logic // set the function logic
if (authentication_vvvvwbd == 2 || authentication_vvvvwbd == 3) if (authentication_vvvvwbe == 2 || authentication_vvvvwbe == 3)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwbf function // the vvvvwbg function
function vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf) function vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg)
{ {
if (isSet(protocol_vvvvwbf) && protocol_vvvvwbf.constructor !== Array) if (isSet(protocol_vvvvwbg) && protocol_vvvvwbg.constructor !== Array)
{ {
var temp_vvvvwbf = protocol_vvvvwbf; var temp_vvvvwbg = protocol_vvvvwbg;
var protocol_vvvvwbf = []; var protocol_vvvvwbg = [];
protocol_vvvvwbf.push(temp_vvvvwbf); protocol_vvvvwbg.push(temp_vvvvwbg);
} }
else if (!isSet(protocol_vvvvwbf)) else if (!isSet(protocol_vvvvwbg))
{ {
var protocol_vvvvwbf = []; var protocol_vvvvwbg = [];
} }
var protocol = protocol_vvvvwbf.some(protocol_vvvvwbf_SomeFunc); var protocol = protocol_vvvvwbg.some(protocol_vvvvwbg_SomeFunc);
if (isSet(authentication_vvvvwbf) && authentication_vvvvwbf.constructor !== Array) if (isSet(authentication_vvvvwbg) && authentication_vvvvwbg.constructor !== Array)
{ {
var temp_vvvvwbf = authentication_vvvvwbf; var temp_vvvvwbg = authentication_vvvvwbg;
var authentication_vvvvwbf = []; var authentication_vvvvwbg = [];
authentication_vvvvwbf.push(temp_vvvvwbf); authentication_vvvvwbg.push(temp_vvvvwbg);
} }
else if (!isSet(authentication_vvvvwbf)) else if (!isSet(authentication_vvvvwbg))
{ {
var authentication_vvvvwbf = []; var authentication_vvvvwbg = [];
} }
var authentication = authentication_vvvvwbf.some(authentication_vvvvwbf_SomeFunc); var authentication = authentication_vvvvwbg.some(authentication_vvvvwbg_SomeFunc);
// set this function logic // set this function logic
@ -432,78 +432,78 @@ function vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf)
{ {
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_vvvvwbfwao_required) if (jform_vvvvwbgwao_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_vvvvwbfwao_required = false; jform_vvvvwbgwao_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_vvvvwbfwao_required) if (!jform_vvvvwbgwao_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_vvvvwbfwao_required = true; jform_vvvvwbgwao_required = true;
} }
} }
} }
// the vvvvwbf Some function // the vvvvwbg Some function
function protocol_vvvvwbf_SomeFunc(protocol_vvvvwbf) function protocol_vvvvwbg_SomeFunc(protocol_vvvvwbg)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwbf == 2) if (protocol_vvvvwbg == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwbf Some function // the vvvvwbg Some function
function authentication_vvvvwbf_SomeFunc(authentication_vvvvwbf) function authentication_vvvvwbg_SomeFunc(authentication_vvvvwbg)
{ {
// set the function logic // set the function logic
if (authentication_vvvvwbf == 4 || authentication_vvvvwbf == 5) if (authentication_vvvvwbg == 4 || authentication_vvvvwbg == 5)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwbh function // the vvvvwbi function
function vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh) function vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi)
{ {
if (isSet(protocol_vvvvwbh) && protocol_vvvvwbh.constructor !== Array) if (isSet(protocol_vvvvwbi) && protocol_vvvvwbi.constructor !== Array)
{ {
var temp_vvvvwbh = protocol_vvvvwbh; var temp_vvvvwbi = protocol_vvvvwbi;
var protocol_vvvvwbh = []; var protocol_vvvvwbi = [];
protocol_vvvvwbh.push(temp_vvvvwbh); protocol_vvvvwbi.push(temp_vvvvwbi);
} }
else if (!isSet(protocol_vvvvwbh)) else if (!isSet(protocol_vvvvwbi))
{ {
var protocol_vvvvwbh = []; var protocol_vvvvwbi = [];
} }
var protocol = protocol_vvvvwbh.some(protocol_vvvvwbh_SomeFunc); var protocol = protocol_vvvvwbi.some(protocol_vvvvwbi_SomeFunc);
if (isSet(authentication_vvvvwbh) && authentication_vvvvwbh.constructor !== Array) if (isSet(authentication_vvvvwbi) && authentication_vvvvwbi.constructor !== Array)
{ {
var temp_vvvvwbh = authentication_vvvvwbh; var temp_vvvvwbi = authentication_vvvvwbi;
var authentication_vvvvwbh = []; var authentication_vvvvwbi = [];
authentication_vvvvwbh.push(temp_vvvvwbh); authentication_vvvvwbi.push(temp_vvvvwbi);
} }
else if (!isSet(authentication_vvvvwbh)) else if (!isSet(authentication_vvvvwbi))
{ {
var authentication_vvvvwbh = []; var authentication_vvvvwbi = [];
} }
var authentication = authentication_vvvvwbh.some(authentication_vvvvwbh_SomeFunc); var authentication = authentication_vvvvwbi.some(authentication_vvvvwbi_SomeFunc);
// set this function logic // set this function logic
@ -517,22 +517,22 @@ function vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh)
} }
} }
// the vvvvwbh Some function // the vvvvwbi Some function
function protocol_vvvvwbh_SomeFunc(protocol_vvvvwbh) function protocol_vvvvwbi_SomeFunc(protocol_vvvvwbi)
{ {
// set the function logic // set the function logic
if (protocol_vvvvwbh == 2) if (protocol_vvvvwbi == 2)
{ {
return true; return true;
} }
return false; return false;
} }
// the vvvvwbh Some function // the vvvvwbi Some function
function authentication_vvvvwbh_SomeFunc(authentication_vvvvwbh) function authentication_vvvvwbi_SomeFunc(authentication_vvvvwbi)
{ {
// set the function logic // set the function logic
if (authentication_vvvvwbh == 2 || authentication_vvvvwbh == 3 || authentication_vvvvwbh == 4 || authentication_vvvvwbh == 5) if (authentication_vvvvwbi == 2 || authentication_vvvvwbi == 3 || authentication_vvvvwbi == 4 || authentication_vvvvwbi == 5)
{ {
return true; return true;
} }

View File

@ -533,6 +533,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
`php_getlistquery` MEDIUMTEXT NOT NULL, `php_getlistquery` MEDIUMTEXT NOT NULL,
`php_router_parse` MEDIUMTEXT NOT NULL, `php_router_parse` MEDIUMTEXT NOT NULL,
`plugin_events` VARCHAR(255) NOT NULL DEFAULT '', `plugin_events` VARCHAR(255) NOT NULL DEFAULT '',
`select_all` TINYINT(1) NOT NULL DEFAULT 0,
`view_selection` TEXT NOT NULL, `view_selection` TEXT NOT NULL,
`view_table_main` INT(11) NOT NULL DEFAULT 0, `view_table_main` INT(11) NOT NULL DEFAULT 0,
`where` TEXT NOT NULL, `where` TEXT NOT NULL,
@ -557,12 +558,13 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
KEY `idx_name` (`name`), KEY `idx_name` (`name`),
KEY `idx_main_source` (`main_source`), KEY `idx_main_source` (`main_source`),
KEY `idx_gettype` (`gettype`), KEY `idx_gettype` (`gettype`),
KEY `idx_add_php_router_parse` (`add_php_router_parse`),
KEY `idx_add_php_before_getitems` (`add_php_before_getitems`),
KEY `idx_add_php_after_getitems` (`add_php_after_getitems`), KEY `idx_add_php_after_getitems` (`add_php_after_getitems`),
KEY `idx_add_php_after_getitem` (`add_php_after_getitem`), KEY `idx_add_php_router_parse` (`add_php_router_parse`),
KEY `idx_add_php_getlistquery` (`add_php_getlistquery`), KEY `idx_add_php_getlistquery` (`add_php_getlistquery`),
KEY `idx_add_php_before_getitems` (`add_php_before_getitems`),
KEY `idx_add_php_before_getitem` (`add_php_before_getitem`), KEY `idx_add_php_before_getitem` (`add_php_before_getitem`),
KEY `idx_add_php_after_getitem` (`add_php_after_getitem`),
KEY `idx_select_all` (`select_all`),
KEY `idx_getcustom` (`getcustom`), KEY `idx_getcustom` (`getcustom`),
KEY `idx_pagination` (`pagination`) KEY `idx_pagination` (`pagination`)
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci; ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci;
@ -1381,7 +1383,7 @@ INSERT INTO `#__componentbuilder_site_view` (`id`, `add_css_document`, `add_css`
-- --
INSERT INTO `#__componentbuilder_dynamic_get` (`id`, `add_php_after_getitem`, `add_php_before_getitem`, `add_php_after_getitems`, `add_php_before_getitems`, `add_php_getlistquery`, `php_after_getitem`, `php_before_getitem`, `php_before_getitems`, `php_getlistquery`, `php_after_getitems`, `pagination`, `addcalculation`, `db_selection`, `db_table_main`, `filter`, `getcustom`, `gettype`, `global`, `join_db_table`, `join_view_table`, `main_source`, `name`, `not_required`, `order`, `php_calculation`, `php_custom_get`, `view_selection`, `view_table_main`, `where`, `params`, `published`, `version`, `hits`, `ordering`) VALUES INSERT INTO `#__componentbuilder_dynamic_get` (`id`, `add_php_after_getitem`, `add_php_before_getitem`, `add_php_after_getitems`, `add_php_before_getitems`, `add_php_getlistquery`, `php_after_getitem`, `php_before_getitem`, `php_before_getitems`, `php_getlistquery`, `php_after_getitems`, `pagination`, `addcalculation`, `db_selection`, `db_table_main`, `filter`, `getcustom`, `gettype`, `global`, `join_db_table`, `join_view_table`, `main_source`, `name`, `not_required`, `order`, `php_calculation`, `php_custom_get`, `view_selection`, `view_table_main`, `where`, `params`, `published`, `version`, `hits`, `ordering`) VALUES
(36, '', '', 1, '', '', '', '', '', '', 'CQkvLyBkbyBhIHF1aWNrIGJ1aWxkIG9mIGFsbCBlZGl0IGxpbmtzIGxpbmtzDQoJCWlmIChpc3NldCgkaXRlbXMpICYmICRpdGVtcykNCgkJew0KCQkJZm9yZWFjaCAoJGl0ZW1zIGFzICRuciA9PiAmJGl0ZW0pDQoJCQl7DQoJCQkJJGNhbkRvID0gW1tbQ29tcG9uZW50XV1dSGVscGVyOjpnZXRBY3Rpb25zKCdsb29rJywkaXRlbSwnbG9va3MnKTsNCgkJCQlpZiAoJGNhbkRvLT5nZXQoJ2xvb2suZWRpdCcpKQ0KCQkJCXsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rID0gJzxiciAvPjxiciAvPjxhIGNsYXNzPSJ1ay1idXR0b24gdWstYnV0dG9uLXByaW1hcnkgdWstd2lkdGgtMS0xIiBocmVmPSInOw0KCQkJCQkkaXRlbS0+ZWRpdExpbmsgLj0gSlJvdXRlOjpfKCdpbmRleC5waHA/b3B0aW9uPWNvbV9bW1tjb21wb25lbnRdXV0mdmlldz1sb29rJnRhc2s9bG9vay5lZGl0JmlkPScgLiAkaXRlbS0+aWQpOw0KCQkJCQkkaXRlbS0+ZWRpdExpbmsgLj0gJyI+PGkgY2xhc3M9InVrLWljb24tcGVuY2lsIj48L2k+PHNwYW4gY2xhc3M9InVrLWhpZGRlbi1zbWFsbCI+JzsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rIC49IEpUZXh0OjpfKCdFZGl0IExvb2snKTsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rIC49ICc8L3NwYW4+PC9hPic7DQoJCQkJfQ0KCQkJCWVsc2UNCgkJCQl7DQoJCQkJCSRpdGVtLT5lZGl0TGluayA9ICcnOw0KCQkJCX0NCgkJCX0NCgkJfQ==', 1, '', '', '', '', '', 2, '', '', '', 1, 'Looks', '', '{\"order0\":{\"table_key\":\"a.name\",\"direction\":\"ASC\"}}', '', '', 'a.id AS id\r\na.name AS name\r\na.alias AS alias\r\na.description AS description\r\na.add AS add\r\na.email AS email\r\na.mobile_phone AS mobile_phone\r\na.dateofbirth AS dateofbirth\r\na.image AS image\r\na.website AS website\r\na.not_required AS not_required\r\na.published AS published\r\na.hits AS hits\r\na.ordering AS ordering\r\na.created_by AS created_by', 109, '{\"where0\":{\"table_key\":\"a.published\",\"operator\":\"1\",\"value_key\":\"1\"}}', '', 1, 6, '', 13), (36, '', '', 1, '', '', '', '', '', '', 'CQkvLyBkbyBhIHF1aWNrIGJ1aWxkIG9mIGFsbCBlZGl0IGxpbmtzIGxpbmtzDQoJCWlmIChpc3NldCgkaXRlbXMpICYmICRpdGVtcykNCgkJew0KCQkJZm9yZWFjaCAoJGl0ZW1zIGFzICRuciA9PiAmJGl0ZW0pDQoJCQl7DQoJCQkJJGNhbkRvID0gW1tbQ29tcG9uZW50XV1dSGVscGVyOjpnZXRBY3Rpb25zKCdsb29rJywkaXRlbSwnbG9va3MnKTsNCgkJCQlpZiAoJGNhbkRvLT5nZXQoJ2xvb2suZWRpdCcpKQ0KCQkJCXsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rID0gJzxiciAvPjxiciAvPjxhIGNsYXNzPSJ1ay1idXR0b24gdWstYnV0dG9uLXByaW1hcnkgdWstd2lkdGgtMS0xIiBocmVmPSInOw0KCQkJCQkkaXRlbS0+ZWRpdExpbmsgLj0gSlJvdXRlOjpfKCdpbmRleC5waHA/b3B0aW9uPWNvbV9bW1tjb21wb25lbnRdXV0mdmlldz1sb29rJnRhc2s9bG9vay5lZGl0JmlkPScgLiAkaXRlbS0+aWQpOw0KCQkJCQkkaXRlbS0+ZWRpdExpbmsgLj0gJyI+PGkgY2xhc3M9InVrLWljb24tcGVuY2lsIj48L2k+PHNwYW4gY2xhc3M9InVrLWhpZGRlbi1zbWFsbCI+JzsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rIC49IEpUZXh0OjpfKCdFZGl0IExvb2snKTsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rIC49ICc8L3NwYW4+PC9hPic7DQoJCQkJfQ0KCQkJCWVsc2UNCgkJCQl7DQoJCQkJCSRpdGVtLT5lZGl0TGluayA9ICcnOw0KCQkJCX0NCgkJCX0NCgkJfQ==', 1, '', '', '', '', '', 2, '', '', '', 1, 'Looks', '', '{\"order0\":{\"table_key\":\"a.name\",\"direction\":\"ASC\"}}', '', '', 'a.*', 109, '{\"where0\":{\"table_key\":\"a.published\",\"operator\":\"1\",\"value_key\":\"1\"}}', '', 1, 12, '', 13),
(39, '', '', '', '', '', '', '', '', '', '', 1, '', '', '', '{\"filter0\":{\"filter_type\":\"1\",\"state_key\":\"id\",\"operator\":\"1\",\"table_key\":\"a.id\"}}', '', 1, '', '', '', 1, 'Looking', '', '', '', '', 'a.id AS id\r\na.name AS name\r\na.alias AS alias\r\na.description AS description\r\na.add AS add\r\na.email AS email\r\na.mobile_phone AS mobile_phone\r\na.dateofbirth AS dateofbirth\r\na.image AS image\r\na.website AS website\r\na.published AS published\r\na.hits AS hits\r\na.created_by AS created_by', 109, '', '', 1, 8, '', ''); (39, '', '', '', '', '', '', '', '', '', '', 1, '', '', '', '{\"filter0\":{\"filter_type\":\"1\",\"state_key\":\"id\",\"operator\":\"1\",\"table_key\":\"a.id\"}}', '', 1, '', '', '', 1, 'Looking', '', '', '', '', 'a.id AS id\r\na.name AS name\r\na.alias AS alias\r\na.description AS description\r\na.add AS add\r\na.email AS email\r\na.mobile_phone AS mobile_phone\r\na.dateofbirth AS dateofbirth\r\na.image AS image\r\na.website AS website\r\na.published AS published\r\na.hits AS hits\r\na.created_by AS created_by', 109, '', '', 1, 8, '', '');
@ -1709,7 +1711,7 @@ INSERT INTO `#__componentbuilder_help_document` (`id`, `admin_view`, `alias`, `a
-- --
INSERT INTO `#__componentbuilder_admin_fields` (`id`, `addfields`, `admin_view`, `published`, `created`, `modified`, `version`, `hits`, `ordering`) VALUES INSERT INTO `#__componentbuilder_admin_fields` (`id`, `addfields`, `admin_view`, `published`, `created`, `modified`, `version`, `hits`, `ordering`) VALUES
(111, '{\"0\":{\"field\":\"84\",\"list\":\"1\",\"order_list\":\"2\",\"sort\":\"1\",\"search\":\"1\",\"tab\":\"1\",\"alignment\":\"3\",\"order_edit\":\"1\"},\"1\":{\"field\":\"199\",\"list\":\"1\",\"order_list\":\"1\",\"title\":\"1\",\"sort\":\"1\",\"search\":\"1\",\"link\":\"1\",\"tab\":\"1\",\"alignment\":\"4\",\"order_edit\":\"1\"},\"2\":{\"field\":\"23\",\"list\":\"\",\"order_list\":\"0\",\"alias\":\"1\",\"search\":\"1\",\"tab\":\"1\",\"alignment\":\"4\",\"order_edit\":\"2\"},\"3\":{\"field\":\"203\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"1\",\"alignment\":\"5\",\"order_edit\":\"1\"},\"4\":{\"field\":\"682\",\"list\":\"\",\"order_list\":\"0\",\"sort\":\"1\",\"search\":\"1\",\"filter\":\"1\",\"tab\":\"2\",\"alignment\":\"1\",\"order_edit\":\"1\"},\"5\":{\"field\":\"100\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"1\"},\"6\":{\"field\":\"196\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"2\"},\"7\":{\"field\":\"1011\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"3\"},\"8\":{\"field\":\"158\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"4\"},\"9\":{\"field\":\"280\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"5\"}}', 109, 1, '2017-10-12 19:52:03', '2018-09-03 17:02:46', 6, '', ''); (111, '{\"0\":{\"field\":\"84\",\"list\":\"1\",\"order_list\":\"2\",\"sort\":\"1\",\"search\":\"1\",\"tab\":\"1\",\"alignment\":\"3\",\"order_edit\":\"1\"},\"1\":{\"field\":\"199\",\"list\":\"1\",\"order_list\":\"1\",\"title\":\"1\",\"sort\":\"1\",\"search\":\"1\",\"link\":\"1\",\"tab\":\"1\",\"alignment\":\"4\",\"order_edit\":\"1\"},\"2\":{\"field\":\"23\",\"list\":\"\",\"order_list\":\"0\",\"alias\":\"1\",\"search\":\"1\",\"tab\":\"1\",\"alignment\":\"4\",\"order_edit\":\"2\"},\"3\":{\"field\":\"203\",\"list\":\"2\",\"order_list\":\"0\",\"tab\":\"1\",\"alignment\":\"5\",\"order_edit\":\"1\"},\"4\":{\"field\":\"682\",\"list\":\"\",\"order_list\":\"0\",\"sort\":\"1\",\"search\":\"1\",\"filter\":\"1\",\"tab\":\"2\",\"alignment\":\"1\",\"order_edit\":\"1\"},\"5\":{\"field\":\"100\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"1\"},\"6\":{\"field\":\"196\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"2\"},\"7\":{\"field\":\"1011\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"3\"},\"8\":{\"field\":\"158\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"4\"},\"9\":{\"field\":\"280\",\"list\":\"\",\"order_list\":\"0\",\"tab\":\"2\",\"alignment\":\"2\",\"order_edit\":\"5\"}}', 109, 1, '2017-10-12 19:52:03', '2019-01-28 16:27:19', 7, '', '');
-- --
-- Dumping data for table `#__componentbuilder_admin_fields_conditions` -- Dumping data for table `#__componentbuilder_admin_fields_conditions`

View File

@ -0,0 +1 @@
ALTER TABLE `#__componentbuilder_dynamic_get` ADD `select_all` TINYINT(1) NOT NULL DEFAULT 0 AFTER `addcalculation`;

View File

@ -117,21 +117,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<script type="text/javascript"> <script type="text/javascript">
// #jform_target listeners for target_vvvvwad function
jQuery('#jform_target').on('keyup',function()
{
var target_vvvvwad = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwad(target_vvvvwad);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var target_vvvvwad = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwad(target_vvvvwad);
});
// #jform_target listeners for target_vvvvwae function // #jform_target listeners for target_vvvvwae function
jQuery('#jform_target').on('keyup',function() jQuery('#jform_target').on('keyup',function()
{ {
@ -151,67 +136,82 @@ jQuery('#adminForm').on('change', '#jform_target',function (e)
jQuery('#jform_target').on('keyup',function() jQuery('#jform_target').on('keyup',function()
{ {
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val(); vvvvwaf(target_vvvvwaf);
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
}); });
jQuery('#adminForm').on('change', '#jform_target',function (e) jQuery('#adminForm').on('change', '#jform_target',function (e)
{ {
e.preventDefault(); e.preventDefault();
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val(); vvvvwaf(target_vvvvwaf);
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
});
// #jform_type listeners for type_vvvvwaf function
jQuery('#jform_type').on('keyup',function()
{
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwaf = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwaf(target_vvvvwaf,type_vvvvwaf);
});
// #jform_type listeners for type_vvvvwag function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag);
}); });
// #jform_target listeners for target_vvvvwag function // #jform_target listeners for target_vvvvwag function
jQuery('#jform_target').on('keyup',function() jQuery('#jform_target').on('keyup',function()
{ {
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag); var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwag(target_vvvvwag,type_vvvvwag);
}); });
jQuery('#adminForm').on('change', '#jform_target',function (e) jQuery('#adminForm').on('change', '#jform_target',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwag(type_vvvvwag,target_vvvvwag); var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwag(target_vvvvwag,type_vvvvwag);
});
// #jform_type listeners for type_vvvvwag function
jQuery('#jform_type').on('keyup',function()
{
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwag(target_vvvvwag,type_vvvvwag);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwag(target_vvvvwag,type_vvvvwag);
});
// #jform_type listeners for type_vvvvwah function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwah(type_vvvvwah,target_vvvvwah);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwah(type_vvvvwah,target_vvvvwah);
});
// #jform_target listeners for target_vvvvwah function
jQuery('#jform_target').on('keyup',function()
{
var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwah(type_vvvvwah,target_vvvvwah);
});
jQuery('#adminForm').on('change', '#jform_target',function (e)
{
e.preventDefault();
var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwah(type_vvvvwah,target_vvvvwah);
}); });

View File

@ -235,18 +235,18 @@ jQuery('#adminForm').on('change', '#jform_main_source',function (e)
}); });
// #jform_addcalculation listeners for addcalculation_vvvvvzi function // #jform_main_source listeners for main_source_vvvvvzi function
jQuery('#jform_addcalculation').on('keyup',function() jQuery('#jform_main_source').on('keyup',function()
{ {
var addcalculation_vvvvvzi = jQuery("#jform_addcalculation input[type='radio']:checked").val(); var main_source_vvvvvzi = jQuery("#jform_main_source").val();
vvvvvzi(addcalculation_vvvvvzi); vvvvvzi(main_source_vvvvvzi);
}); });
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e) jQuery('#adminForm').on('change', '#jform_main_source',function (e)
{ {
e.preventDefault(); e.preventDefault();
var addcalculation_vvvvvzi = jQuery("#jform_addcalculation input[type='radio']:checked").val(); var main_source_vvvvvzi = jQuery("#jform_main_source").val();
vvvvvzi(addcalculation_vvvvvzi); vvvvvzi(main_source_vvvvvzi);
}); });
@ -254,33 +254,14 @@ jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
jQuery('#jform_addcalculation').on('keyup',function() jQuery('#jform_addcalculation').on('keyup',function()
{ {
var addcalculation_vvvvvzj = jQuery("#jform_addcalculation input[type='radio']:checked").val(); var addcalculation_vvvvvzj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvzj = jQuery("#jform_gettype").val(); vvvvvzj(addcalculation_vvvvvzj);
vvvvvzj(addcalculation_vvvvvzj,gettype_vvvvvzj);
}); });
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e) jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
{ {
e.preventDefault(); e.preventDefault();
var addcalculation_vvvvvzj = jQuery("#jform_addcalculation input[type='radio']:checked").val(); var addcalculation_vvvvvzj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvzj = jQuery("#jform_gettype").val(); vvvvvzj(addcalculation_vvvvvzj);
vvvvvzj(addcalculation_vvvvvzj,gettype_vvvvvzj);
});
// #jform_gettype listeners for gettype_vvvvvzj function
jQuery('#jform_gettype').on('keyup',function()
{
var addcalculation_vvvvvzj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvzj = jQuery("#jform_gettype").val();
vvvvvzj(addcalculation_vvvvvzj,gettype_vvvvvzj);
});
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{
e.preventDefault();
var addcalculation_vvvvvzj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvzj = jQuery("#jform_gettype").val();
vvvvvzj(addcalculation_vvvvvzj,gettype_vvvvvzj);
}); });
@ -318,18 +299,37 @@ jQuery('#adminForm').on('change', '#jform_gettype',function (e)
}); });
// #jform_main_source listeners for main_source_vvvvvzn function // #jform_addcalculation listeners for addcalculation_vvvvvzl function
jQuery('#jform_main_source').on('keyup',function() jQuery('#jform_addcalculation').on('keyup',function()
{ {
var main_source_vvvvvzn = jQuery("#jform_main_source").val(); var addcalculation_vvvvvzl = jQuery("#jform_addcalculation input[type='radio']:checked").val();
vvvvvzn(main_source_vvvvvzn); var gettype_vvvvvzl = jQuery("#jform_gettype").val();
vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl);
}); });
jQuery('#adminForm').on('change', '#jform_main_source',function (e) jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
{ {
e.preventDefault(); e.preventDefault();
var main_source_vvvvvzn = jQuery("#jform_main_source").val(); var addcalculation_vvvvvzl = jQuery("#jform_addcalculation input[type='radio']:checked").val();
vvvvvzn(main_source_vvvvvzn); var gettype_vvvvvzl = jQuery("#jform_gettype").val();
vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl);
});
// #jform_gettype listeners for gettype_vvvvvzl function
jQuery('#jform_gettype').on('keyup',function()
{
var addcalculation_vvvvvzl = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvzl = jQuery("#jform_gettype").val();
vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl);
});
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{
e.preventDefault();
var addcalculation_vvvvvzl = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvzl = jQuery("#jform_gettype").val();
vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl);
}); });
@ -348,203 +348,203 @@ jQuery('#adminForm').on('change', '#jform_main_source',function (e)
}); });
// #jform_add_php_before_getitem listeners for add_php_before_getitem_vvvvvzp function // #jform_main_source listeners for main_source_vvvvvzp function
jQuery('#jform_main_source').on('keyup',function()
{
var main_source_vvvvvzp = jQuery("#jform_main_source").val();
vvvvvzp(main_source_vvvvvzp);
});
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
{
e.preventDefault();
var main_source_vvvvvzp = jQuery("#jform_main_source").val();
vvvvvzp(main_source_vvvvvzp);
});
// #jform_add_php_before_getitem listeners for add_php_before_getitem_vvvvvzq function
jQuery('#jform_add_php_before_getitem').on('keyup',function() jQuery('#jform_add_php_before_getitem').on('keyup',function()
{ {
var add_php_before_getitem_vvvvvzp = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); var add_php_before_getitem_vvvvvzq = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
var gettype_vvvvvzp = jQuery("#jform_gettype").val(); var gettype_vvvvvzq = jQuery("#jform_gettype").val();
vvvvvzp(add_php_before_getitem_vvvvvzp,gettype_vvvvvzp); vvvvvzq(add_php_before_getitem_vvvvvzq,gettype_vvvvvzq);
}); });
jQuery('#adminForm').on('change', '#jform_add_php_before_getitem',function (e) jQuery('#adminForm').on('change', '#jform_add_php_before_getitem',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_php_before_getitem_vvvvvzp = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); var add_php_before_getitem_vvvvvzq = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
vvvvvzp(add_php_before_getitem_vvvvvzp,gettype_vvvvvzp);
});
// #jform_gettype listeners for gettype_vvvvvzp function
jQuery('#jform_gettype').on('keyup',function()
{
var add_php_before_getitem_vvvvvzp = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
vvvvvzp(add_php_before_getitem_vvvvvzp,gettype_vvvvvzp);
});
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{
e.preventDefault();
var add_php_before_getitem_vvvvvzp = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
vvvvvzp(add_php_before_getitem_vvvvvzp,gettype_vvvvvzp);
});
// #jform_add_php_after_getitem listeners for add_php_after_getitem_vvvvvzq function
jQuery('#jform_add_php_after_getitem').on('keyup',function()
{
var add_php_after_getitem_vvvvvzq = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
var gettype_vvvvvzq = jQuery("#jform_gettype").val(); var gettype_vvvvvzq = jQuery("#jform_gettype").val();
vvvvvzq(add_php_after_getitem_vvvvvzq,gettype_vvvvvzq); vvvvvzq(add_php_before_getitem_vvvvvzq,gettype_vvvvvzq);
});
jQuery('#adminForm').on('change', '#jform_add_php_after_getitem',function (e)
{
e.preventDefault();
var add_php_after_getitem_vvvvvzq = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
var gettype_vvvvvzq = jQuery("#jform_gettype").val();
vvvvvzq(add_php_after_getitem_vvvvvzq,gettype_vvvvvzq);
}); });
// #jform_gettype listeners for gettype_vvvvvzq function // #jform_gettype listeners for gettype_vvvvvzq function
jQuery('#jform_gettype').on('keyup',function() jQuery('#jform_gettype').on('keyup',function()
{ {
var add_php_after_getitem_vvvvvzq = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); var add_php_before_getitem_vvvvvzq = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
var gettype_vvvvvzq = jQuery("#jform_gettype").val(); var gettype_vvvvvzq = jQuery("#jform_gettype").val();
vvvvvzq(add_php_after_getitem_vvvvvzq,gettype_vvvvvzq); vvvvvzq(add_php_before_getitem_vvvvvzq,gettype_vvvvvzq);
}); });
jQuery('#adminForm').on('change', '#jform_gettype',function (e) jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_php_after_getitem_vvvvvzq = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); var add_php_before_getitem_vvvvvzq = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
var gettype_vvvvvzq = jQuery("#jform_gettype").val(); var gettype_vvvvvzq = jQuery("#jform_gettype").val();
vvvvvzq(add_php_after_getitem_vvvvvzq,gettype_vvvvvzq); vvvvvzq(add_php_before_getitem_vvvvvzq,gettype_vvvvvzq);
}); });
// #jform_gettype listeners for gettype_vvvvvzs function // #jform_add_php_after_getitem listeners for add_php_after_getitem_vvvvvzr function
jQuery('#jform_add_php_after_getitem').on('keyup',function()
{
var add_php_after_getitem_vvvvvzr = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
var gettype_vvvvvzr = jQuery("#jform_gettype").val();
vvvvvzr(add_php_after_getitem_vvvvvzr,gettype_vvvvvzr);
});
jQuery('#adminForm').on('change', '#jform_add_php_after_getitem',function (e)
{
e.preventDefault();
var add_php_after_getitem_vvvvvzr = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
var gettype_vvvvvzr = jQuery("#jform_gettype").val();
vvvvvzr(add_php_after_getitem_vvvvvzr,gettype_vvvvvzr);
});
// #jform_gettype listeners for gettype_vvvvvzr function
jQuery('#jform_gettype').on('keyup',function() jQuery('#jform_gettype').on('keyup',function()
{ {
var gettype_vvvvvzs = jQuery("#jform_gettype").val(); var add_php_after_getitem_vvvvvzr = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
vvvvvzs(gettype_vvvvvzs); var gettype_vvvvvzr = jQuery("#jform_gettype").val();
vvvvvzr(add_php_after_getitem_vvvvvzr,gettype_vvvvvzr);
}); });
jQuery('#adminForm').on('change', '#jform_gettype',function (e) jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var gettype_vvvvvzs = jQuery("#jform_gettype").val(); var add_php_after_getitem_vvvvvzr = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
vvvvvzs(gettype_vvvvvzs); var gettype_vvvvvzr = jQuery("#jform_gettype").val();
vvvvvzr(add_php_after_getitem_vvvvvzr,gettype_vvvvvzr);
});
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvzt function
jQuery('#jform_add_php_getlistquery').on('keyup',function()
{
var add_php_getlistquery_vvvvvzt = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
vvvvvzt(add_php_getlistquery_vvvvvzt,gettype_vvvvvzt);
});
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
{
e.preventDefault();
var add_php_getlistquery_vvvvvzt = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
vvvvvzt(add_php_getlistquery_vvvvvzt,gettype_vvvvvzt);
}); });
// #jform_gettype listeners for gettype_vvvvvzt function // #jform_gettype listeners for gettype_vvvvvzt function
jQuery('#jform_gettype').on('keyup',function() jQuery('#jform_gettype').on('keyup',function()
{ {
var add_php_getlistquery_vvvvvzt = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzt = jQuery("#jform_gettype").val(); var gettype_vvvvvzt = jQuery("#jform_gettype").val();
vvvvvzt(add_php_getlistquery_vvvvvzt,gettype_vvvvvzt); vvvvvzt(gettype_vvvvvzt);
}); });
jQuery('#adminForm').on('change', '#jform_gettype',function (e) jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_php_getlistquery_vvvvvzt = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzt = jQuery("#jform_gettype").val(); var gettype_vvvvvzt = jQuery("#jform_gettype").val();
vvvvvzt(add_php_getlistquery_vvvvvzt,gettype_vvvvvzt); vvvvvzt(gettype_vvvvvzt);
}); });
// #jform_add_php_before_getitems listeners for add_php_before_getitems_vvvvvzu function // #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvzu function
jQuery('#jform_add_php_before_getitems').on('keyup',function() jQuery('#jform_add_php_getlistquery').on('keyup',function()
{ {
var add_php_before_getitems_vvvvvzu = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var add_php_getlistquery_vvvvvzu = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzu = jQuery("#jform_gettype").val(); var gettype_vvvvvzu = jQuery("#jform_gettype").val();
vvvvvzu(add_php_before_getitems_vvvvvzu,gettype_vvvvvzu); vvvvvzu(add_php_getlistquery_vvvvvzu,gettype_vvvvvzu);
}); });
jQuery('#adminForm').on('change', '#jform_add_php_before_getitems',function (e) jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_php_before_getitems_vvvvvzu = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var add_php_getlistquery_vvvvvzu = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzu = jQuery("#jform_gettype").val(); var gettype_vvvvvzu = jQuery("#jform_gettype").val();
vvvvvzu(add_php_before_getitems_vvvvvzu,gettype_vvvvvzu); vvvvvzu(add_php_getlistquery_vvvvvzu,gettype_vvvvvzu);
}); });
// #jform_gettype listeners for gettype_vvvvvzu function // #jform_gettype listeners for gettype_vvvvvzu function
jQuery('#jform_gettype').on('keyup',function() jQuery('#jform_gettype').on('keyup',function()
{ {
var add_php_before_getitems_vvvvvzu = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var add_php_getlistquery_vvvvvzu = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzu = jQuery("#jform_gettype").val(); var gettype_vvvvvzu = jQuery("#jform_gettype").val();
vvvvvzu(add_php_before_getitems_vvvvvzu,gettype_vvvvvzu); vvvvvzu(add_php_getlistquery_vvvvvzu,gettype_vvvvvzu);
}); });
jQuery('#adminForm').on('change', '#jform_gettype',function (e) jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_php_before_getitems_vvvvvzu = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var add_php_getlistquery_vvvvvzu = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzu = jQuery("#jform_gettype").val(); var gettype_vvvvvzu = jQuery("#jform_gettype").val();
vvvvvzu(add_php_before_getitems_vvvvvzu,gettype_vvvvvzu); vvvvvzu(add_php_getlistquery_vvvvvzu,gettype_vvvvvzu);
}); });
// #jform_add_php_after_getitems listeners for add_php_after_getitems_vvvvvzv function // #jform_add_php_before_getitems listeners for add_php_before_getitems_vvvvvzv function
jQuery('#jform_add_php_after_getitems').on('keyup',function() jQuery('#jform_add_php_before_getitems').on('keyup',function()
{ {
var add_php_after_getitems_vvvvvzv = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); var add_php_before_getitems_vvvvvzv = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
var gettype_vvvvvzv = jQuery("#jform_gettype").val(); var gettype_vvvvvzv = jQuery("#jform_gettype").val();
vvvvvzv(add_php_after_getitems_vvvvvzv,gettype_vvvvvzv); vvvvvzv(add_php_before_getitems_vvvvvzv,gettype_vvvvvzv);
}); });
jQuery('#adminForm').on('change', '#jform_add_php_after_getitems',function (e) jQuery('#adminForm').on('change', '#jform_add_php_before_getitems',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_php_after_getitems_vvvvvzv = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); var add_php_before_getitems_vvvvvzv = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
var gettype_vvvvvzv = jQuery("#jform_gettype").val(); var gettype_vvvvvzv = jQuery("#jform_gettype").val();
vvvvvzv(add_php_after_getitems_vvvvvzv,gettype_vvvvvzv); vvvvvzv(add_php_before_getitems_vvvvvzv,gettype_vvvvvzv);
}); });
// #jform_gettype listeners for gettype_vvvvvzv function // #jform_gettype listeners for gettype_vvvvvzv function
jQuery('#jform_gettype').on('keyup',function() jQuery('#jform_gettype').on('keyup',function()
{ {
var add_php_after_getitems_vvvvvzv = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); var add_php_before_getitems_vvvvvzv = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
var gettype_vvvvvzv = jQuery("#jform_gettype").val(); var gettype_vvvvvzv = jQuery("#jform_gettype").val();
vvvvvzv(add_php_after_getitems_vvvvvzv,gettype_vvvvvzv); vvvvvzv(add_php_before_getitems_vvvvvzv,gettype_vvvvvzv);
}); });
jQuery('#adminForm').on('change', '#jform_gettype',function (e) jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var add_php_after_getitems_vvvvvzv = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); var add_php_before_getitems_vvvvvzv = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
var gettype_vvvvvzv = jQuery("#jform_gettype").val(); var gettype_vvvvvzv = jQuery("#jform_gettype").val();
vvvvvzv(add_php_after_getitems_vvvvvzv,gettype_vvvvvzv); vvvvvzv(add_php_before_getitems_vvvvvzv,gettype_vvvvvzv);
}); });
// #jform_gettype listeners for gettype_vvvvvzx function // #jform_add_php_after_getitems listeners for add_php_after_getitems_vvvvvzw function
jQuery('#jform_add_php_after_getitems').on('keyup',function()
{
var add_php_after_getitems_vvvvvzw = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
vvvvvzw(add_php_after_getitems_vvvvvzw,gettype_vvvvvzw);
});
jQuery('#adminForm').on('change', '#jform_add_php_after_getitems',function (e)
{
e.preventDefault();
var add_php_after_getitems_vvvvvzw = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
vvvvvzw(add_php_after_getitems_vvvvvzw,gettype_vvvvvzw);
});
// #jform_gettype listeners for gettype_vvvvvzw function
jQuery('#jform_gettype').on('keyup',function() jQuery('#jform_gettype').on('keyup',function()
{ {
var gettype_vvvvvzx = jQuery("#jform_gettype").val(); var add_php_after_getitems_vvvvvzw = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
vvvvvzx(gettype_vvvvvzx); var gettype_vvvvvzw = jQuery("#jform_gettype").val();
vvvvvzw(add_php_after_getitems_vvvvvzw,gettype_vvvvvzw);
}); });
jQuery('#adminForm').on('change', '#jform_gettype',function (e) jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var gettype_vvvvvzx = jQuery("#jform_gettype").val(); var add_php_after_getitems_vvvvvzw = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
vvvvvzx(gettype_vvvvvzx); var gettype_vvvvvzw = jQuery("#jform_gettype").val();
vvvvvzw(add_php_after_getitems_vvvvvzw,gettype_vvvvvzw);
}); });
@ -582,48 +582,63 @@ jQuery('#adminForm').on('change', '#jform_gettype',function (e)
jQuery('#jform_gettype').on('keyup',function() jQuery('#jform_gettype').on('keyup',function()
{ {
var gettype_vvvvwaa = jQuery("#jform_gettype").val(); var gettype_vvvvwaa = jQuery("#jform_gettype").val();
var add_php_router_parse_vvvvwaa = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); vvvvwaa(gettype_vvvvwaa);
vvvvwaa(gettype_vvvvwaa,add_php_router_parse_vvvvwaa);
}); });
jQuery('#adminForm').on('change', '#jform_gettype',function (e) jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var gettype_vvvvwaa = jQuery("#jform_gettype").val(); var gettype_vvvvwaa = jQuery("#jform_gettype").val();
var add_php_router_parse_vvvvwaa = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); vvvvwaa(gettype_vvvvwaa);
vvvvwaa(gettype_vvvvwaa,add_php_router_parse_vvvvwaa);
}); });
// #jform_add_php_router_parse listeners for add_php_router_parse_vvvvwaa function // #jform_gettype listeners for gettype_vvvvwab function
jQuery('#jform_gettype').on('keyup',function()
{
var gettype_vvvvwab = jQuery("#jform_gettype").val();
var add_php_router_parse_vvvvwab = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
vvvvwab(gettype_vvvvwab,add_php_router_parse_vvvvwab);
});
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{
e.preventDefault();
var gettype_vvvvwab = jQuery("#jform_gettype").val();
var add_php_router_parse_vvvvwab = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
vvvvwab(gettype_vvvvwab,add_php_router_parse_vvvvwab);
});
// #jform_add_php_router_parse listeners for add_php_router_parse_vvvvwab function
jQuery('#jform_add_php_router_parse').on('keyup',function() jQuery('#jform_add_php_router_parse').on('keyup',function()
{ {
var gettype_vvvvwaa = jQuery("#jform_gettype").val(); var gettype_vvvvwab = jQuery("#jform_gettype").val();
var add_php_router_parse_vvvvwaa = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); var add_php_router_parse_vvvvwab = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
vvvvwaa(gettype_vvvvwaa,add_php_router_parse_vvvvwaa); vvvvwab(gettype_vvvvwab,add_php_router_parse_vvvvwab);
}); });
jQuery('#adminForm').on('change', '#jform_add_php_router_parse',function (e) jQuery('#adminForm').on('change', '#jform_add_php_router_parse',function (e)
{ {
e.preventDefault(); e.preventDefault();
var gettype_vvvvwaa = jQuery("#jform_gettype").val(); var gettype_vvvvwab = jQuery("#jform_gettype").val();
var add_php_router_parse_vvvvwaa = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); var add_php_router_parse_vvvvwab = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
vvvvwaa(gettype_vvvvwaa,add_php_router_parse_vvvvwaa); vvvvwab(gettype_vvvvwab,add_php_router_parse_vvvvwab);
}); });
// #jform_gettype listeners for gettype_vvvvwac function // #jform_gettype listeners for gettype_vvvvwad function
jQuery('#jform_gettype').on('keyup',function() jQuery('#jform_gettype').on('keyup',function()
{ {
var gettype_vvvvwac = jQuery("#jform_gettype").val(); var gettype_vvvvwad = jQuery("#jform_gettype").val();
vvvvwac(gettype_vvvvwac); vvvvwad(gettype_vvvvwad);
}); });
jQuery('#adminForm').on('change', '#jform_gettype',function (e) jQuery('#adminForm').on('change', '#jform_gettype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var gettype_vvvvwac = jQuery("#jform_gettype").val(); var gettype_vvvvwad = jQuery("#jform_gettype").val();
vvvvwac(gettype_vvvvwac); vvvvwad(gettype_vvvvwad);
}); });
@ -653,7 +668,7 @@ jQuery(document).ready(function(){
<?php foreach($fieldNames as $fieldName => $funcName): ?>jQuery('#adminForm').on('change', '#jform_<?php echo $fieldName ?>_table_main',function (e) { <?php foreach($fieldNames as $fieldName => $funcName): ?>jQuery('#adminForm').on('change', '#jform_<?php echo $fieldName ?>_table_main',function (e) {
// get options // get options
var value_<?php echo $fieldName ?> = jQuery("#jform_<?php echo $fieldName ?>_table_main option:selected").val(); var value_<?php echo $fieldName ?> = jQuery("#jform_<?php echo $fieldName ?>_table_main option:selected").val();
get<?php echo $funcName; ?>TableColumns(value_<?php echo $fieldName ?>,'a','<?php echo $fieldName ?>',3,true, '',''); get<?php echo $funcName; ?>TableColumns(value_<?php echo $fieldName ?>, 'a', '<?php echo $fieldName ?>', 3, true, '', '');
}); });
<?php endforeach; ?> <?php endforeach; ?>
@ -663,6 +678,15 @@ jQuery('#jform_add_php_router_parse').on('change',function() {
getDynamicScripts(valueSwitch); getDynamicScripts(valueSwitch);
}); });
jQuery('#adminForm').on('change', '#jform_select_all',function (e)
{
e.preventDefault();
// get the selected value
var select_all = jQuery("#jform_select_all input[type='radio']:checked").val();
setSelectAll(select_all);
});
// nice little dot trick :) // nice little dot trick :)
jQuery(document).ready( function($) { jQuery(document).ready( function($) {

View File

@ -148,48 +148,33 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<script type="text/javascript"> <script type="text/javascript">
// #jform_datalenght listeners for datalenght_vvvvwap function // #jform_datalenght listeners for datalenght_vvvvwaq function
jQuery('#jform_datalenght').on('keyup',function() jQuery('#jform_datalenght').on('keyup',function()
{ {
var datalenght_vvvvwap = jQuery("#jform_datalenght").val(); var datalenght_vvvvwaq = jQuery("#jform_datalenght").val();
vvvvwap(datalenght_vvvvwap); vvvvwaq(datalenght_vvvvwaq);
}); });
jQuery('#adminForm').on('change', '#jform_datalenght',function (e) jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datalenght_vvvvwap = jQuery("#jform_datalenght").val(); var datalenght_vvvvwaq = jQuery("#jform_datalenght").val();
vvvvwap(datalenght_vvvvwap); vvvvwaq(datalenght_vvvvwaq);
}); });
// #jform_datadefault listeners for datadefault_vvvvwaq function // #jform_datadefault listeners for datadefault_vvvvwar function
jQuery('#jform_datadefault').on('keyup',function() jQuery('#jform_datadefault').on('keyup',function()
{ {
var datadefault_vvvvwaq = jQuery("#jform_datadefault").val(); var datadefault_vvvvwar = jQuery("#jform_datadefault").val();
vvvvwaq(datadefault_vvvvwaq); vvvvwar(datadefault_vvvvwar);
}); });
jQuery('#adminForm').on('change', '#jform_datadefault',function (e) jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
{ {
e.preventDefault(); e.preventDefault();
var datadefault_vvvvwaq = jQuery("#jform_datadefault").val(); var datadefault_vvvvwar = jQuery("#jform_datadefault").val();
vvvvwaq(datadefault_vvvvwaq); vvvvwar(datadefault_vvvvwar);
});
// #jform_datatype listeners for datatype_vvvvwar function
jQuery('#jform_datatype').on('keyup',function()
{
var datatype_vvvvwar = jQuery("#jform_datatype").val();
vvvvwar(datatype_vvvvwar);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var datatype_vvvvwar = jQuery("#jform_datatype").val();
vvvvwar(datatype_vvvvwar);
}); });
@ -208,97 +193,112 @@ jQuery('#adminForm').on('change', '#jform_datatype',function (e)
}); });
// #jform_store listeners for store_vvvvwat function
jQuery('#jform_store').on('keyup',function()
{
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat);
});
// #jform_datatype listeners for datatype_vvvvwat function // #jform_datatype listeners for datatype_vvvvwat function
jQuery('#jform_datatype').on('keyup',function() jQuery('#jform_datatype').on('keyup',function()
{ {
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val(); var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat); vvvvwat(datatype_vvvvwat);
}); });
jQuery('#adminForm').on('change', '#jform_datatype',function (e) jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{ {
e.preventDefault(); e.preventDefault();
var store_vvvvwat = jQuery("#jform_store").val();
var datatype_vvvvwat = jQuery("#jform_datatype").val(); var datatype_vvvvwat = jQuery("#jform_datatype").val();
vvvvwat(store_vvvvwat,datatype_vvvvwat); vvvvwat(datatype_vvvvwat);
}); });
// #jform_add_css_view listeners for add_css_view_vvvvwav function // #jform_store listeners for store_vvvvwau function
jQuery('#jform_store').on('keyup',function()
{
var store_vvvvwau = jQuery("#jform_store").val();
var datatype_vvvvwau = jQuery("#jform_datatype").val();
vvvvwau(store_vvvvwau,datatype_vvvvwau);
});
jQuery('#adminForm').on('change', '#jform_store',function (e)
{
e.preventDefault();
var store_vvvvwau = jQuery("#jform_store").val();
var datatype_vvvvwau = jQuery("#jform_datatype").val();
vvvvwau(store_vvvvwau,datatype_vvvvwau);
});
// #jform_datatype listeners for datatype_vvvvwau function
jQuery('#jform_datatype').on('keyup',function()
{
var store_vvvvwau = jQuery("#jform_store").val();
var datatype_vvvvwau = jQuery("#jform_datatype").val();
vvvvwau(store_vvvvwau,datatype_vvvvwau);
});
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
{
e.preventDefault();
var store_vvvvwau = jQuery("#jform_store").val();
var datatype_vvvvwau = jQuery("#jform_datatype").val();
vvvvwau(store_vvvvwau,datatype_vvvvwau);
});
// #jform_add_css_view listeners for add_css_view_vvvvwaw function
jQuery('#jform_add_css_view').on('keyup',function() jQuery('#jform_add_css_view').on('keyup',function()
{ {
var add_css_view_vvvvwav = jQuery("#jform_add_css_view input[type='radio']:checked").val(); var add_css_view_vvvvwaw = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwav(add_css_view_vvvvwav); vvvvwaw(add_css_view_vvvvwaw);
}); });
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_vvvvwav = jQuery("#jform_add_css_view input[type='radio']:checked").val(); var add_css_view_vvvvwaw = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwav(add_css_view_vvvvwav); vvvvwaw(add_css_view_vvvvwaw);
}); });
// #jform_add_css_views listeners for add_css_views_vvvvwaw function // #jform_add_css_views listeners for add_css_views_vvvvwax function
jQuery('#jform_add_css_views').on('keyup',function() jQuery('#jform_add_css_views').on('keyup',function()
{ {
var add_css_views_vvvvwaw = jQuery("#jform_add_css_views input[type='radio']:checked").val(); var add_css_views_vvvvwax = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwaw(add_css_views_vvvvwaw); vvvvwax(add_css_views_vvvvwax);
}); });
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_vvvvwaw = jQuery("#jform_add_css_views input[type='radio']:checked").val(); var add_css_views_vvvvwax = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwaw(add_css_views_vvvvwaw); vvvvwax(add_css_views_vvvvwax);
}); });
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwax function // #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvway function
jQuery('#jform_add_javascript_view_footer').on('keyup',function() jQuery('#jform_add_javascript_view_footer').on('keyup',function()
{ {
var add_javascript_view_footer_vvvvwax = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); var add_javascript_view_footer_vvvvway = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwax(add_javascript_view_footer_vvvvwax); vvvvway(add_javascript_view_footer_vvvvway);
}); });
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_vvvvwax = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); var add_javascript_view_footer_vvvvway = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwax(add_javascript_view_footer_vvvvwax); vvvvway(add_javascript_view_footer_vvvvway);
}); });
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvway function // #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvwaz function
jQuery('#jform_add_javascript_views_footer').on('keyup',function() jQuery('#jform_add_javascript_views_footer').on('keyup',function()
{ {
var add_javascript_views_footer_vvvvway = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); var add_javascript_views_footer_vvvvwaz = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvway(add_javascript_views_footer_vvvvway); vvvvwaz(add_javascript_views_footer_vvvvwaz);
}); });
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_vvvvway = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); var add_javascript_views_footer_vvvvwaz = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvway(add_javascript_views_footer_vvvvway); vvvvwaz(add_javascript_views_footer_vvvvwaz);
}); });

View File

@ -117,21 +117,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<script type="text/javascript"> <script type="text/javascript">
// #jform_location listeners for location_vvvvwbj function
jQuery('#jform_location').on('keyup',function()
{
var location_vvvvwbj = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbj(location_vvvvwbj);
});
jQuery('#adminForm').on('change', '#jform_location',function (e)
{
e.preventDefault();
var location_vvvvwbj = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbj(location_vvvvwbj);
});
// #jform_location listeners for location_vvvvwbk function // #jform_location listeners for location_vvvvwbk function
jQuery('#jform_location').on('keyup',function() jQuery('#jform_location').on('keyup',function()
{ {
@ -147,18 +132,18 @@ jQuery('#adminForm').on('change', '#jform_location',function (e)
}); });
// #jform_type listeners for type_vvvvwbl function // #jform_location listeners for location_vvvvwbl function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_location').on('keyup',function()
{ {
var type_vvvvwbl = jQuery("#jform_type").val(); var location_vvvvwbl = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbl(type_vvvvwbl); vvvvwbl(location_vvvvwbl);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_location',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_vvvvwbl = jQuery("#jform_type").val(); var location_vvvvwbl = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwbl(type_vvvvwbl); vvvvwbl(location_vvvvwbl);
}); });
@ -192,18 +177,33 @@ jQuery('#adminForm').on('change', '#jform_type',function (e)
}); });
// #jform_target listeners for target_vvvvwbo function // #jform_type listeners for type_vvvvwbo function
jQuery('#jform_type').on('keyup',function()
{
var type_vvvvwbo = jQuery("#jform_type").val();
vvvvwbo(type_vvvvwbo);
});
jQuery('#adminForm').on('change', '#jform_type',function (e)
{
e.preventDefault();
var type_vvvvwbo = jQuery("#jform_type").val();
vvvvwbo(type_vvvvwbo);
});
// #jform_target listeners for target_vvvvwbp function
jQuery('#jform_target').on('keyup',function() jQuery('#jform_target').on('keyup',function()
{ {
var target_vvvvwbo = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbo(target_vvvvwbo); vvvvwbp(target_vvvvwbp);
}); });
jQuery('#adminForm').on('change', '#jform_target',function (e) jQuery('#adminForm').on('change', '#jform_target',function (e)
{ {
e.preventDefault(); e.preventDefault();
var target_vvvvwbo = jQuery("#jform_target input[type='radio']:checked").val(); var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwbo(target_vvvvwbo); vvvvwbp(target_vvvvwbp);
}); });

View File

@ -147,21 +147,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<script type="text/javascript"> <script type="text/javascript">
// #jform_how listeners for how_vvvvwah function
jQuery('#jform_how').on('keyup',function()
{
var how_vvvvwah = jQuery("#jform_how").val();
vvvvwah(how_vvvvwah);
});
jQuery('#adminForm').on('change', '#jform_how',function (e)
{
e.preventDefault();
var how_vvvvwah = jQuery("#jform_how").val();
vvvvwah(how_vvvvwah);
});
// #jform_how listeners for how_vvvvwai function // #jform_how listeners for how_vvvvwai function
jQuery('#jform_how').on('keyup',function() jQuery('#jform_how').on('keyup',function()
{ {
@ -252,18 +237,33 @@ jQuery('#adminForm').on('change', '#jform_how',function (e)
}); });
// #jform_type listeners for type_vvvvwao function // #jform_how listeners for how_vvvvwao function
jQuery('#jform_how').on('keyup',function()
{
var how_vvvvwao = jQuery("#jform_how").val();
vvvvwao(how_vvvvwao);
});
jQuery('#adminForm').on('change', '#jform_how',function (e)
{
e.preventDefault();
var how_vvvvwao = jQuery("#jform_how").val();
vvvvwao(how_vvvvwao);
});
// #jform_type listeners for type_vvvvwap function
jQuery('#jform_type').on('keyup',function() jQuery('#jform_type').on('keyup',function()
{ {
var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvwap = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwao(type_vvvvwao); vvvvwap(type_vvvvwap);
}); });
jQuery('#adminForm').on('change', '#jform_type',function (e) jQuery('#adminForm').on('change', '#jform_type',function (e)
{ {
e.preventDefault(); e.preventDefault();
var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val(); var type_vvvvwap = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwao(type_vvvvwao); vvvvwap(type_vvvvwap);
}); });

View File

@ -126,21 +126,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<script type="text/javascript"> <script type="text/javascript">
// #jform_protocol listeners for protocol_vvvvwaz function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwaz = jQuery("#jform_protocol").val();
vvvvwaz(protocol_vvvvwaz);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwaz = jQuery("#jform_protocol").val();
vvvvwaz(protocol_vvvvwaz);
});
// #jform_protocol listeners for protocol_vvvvwba function // #jform_protocol listeners for protocol_vvvvwba function
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
@ -160,135 +145,150 @@ jQuery('#adminForm').on('change', '#jform_protocol',function (e)
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
var protocol_vvvvwbb = jQuery("#jform_protocol").val(); var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val(); vvvvwbb(protocol_vvvvwbb);
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
}); });
jQuery('#adminForm').on('change', '#jform_protocol',function (e) jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwbb = jQuery("#jform_protocol").val(); var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val(); vvvvwbb(protocol_vvvvwbb);
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
}); });
// #jform_authentication listeners for authentication_vvvvwbb function // #jform_protocol listeners for protocol_vvvvwbc function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
});
// #jform_protocol listeners for protocol_vvvvwbd function
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
var protocol_vvvvwbd = jQuery("#jform_protocol").val(); var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val(); var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd); vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
}); });
jQuery('#adminForm').on('change', '#jform_protocol',function (e) jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwbd = jQuery("#jform_protocol").val(); var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val(); var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd); vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
}); });
// #jform_authentication listeners for authentication_vvvvwbd function // #jform_authentication listeners for authentication_vvvvwbc function
jQuery('#jform_authentication').on('keyup',function() jQuery('#jform_authentication').on('keyup',function()
{ {
var protocol_vvvvwbd = jQuery("#jform_protocol").val(); var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val(); var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd); vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
}); });
jQuery('#adminForm').on('change', '#jform_authentication',function (e) jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwbd = jQuery("#jform_protocol").val(); var protocol_vvvvwbc = jQuery("#jform_protocol").val();
var authentication_vvvvwbd = jQuery("#jform_authentication").val(); var authentication_vvvvwbc = jQuery("#jform_authentication").val();
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd); vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
}); });
// #jform_protocol listeners for protocol_vvvvwbf function // #jform_protocol listeners for protocol_vvvvwbe function
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
var protocol_vvvvwbf = jQuery("#jform_protocol").val(); var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val(); var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf); vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
}); });
jQuery('#adminForm').on('change', '#jform_protocol',function (e) jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwbf = jQuery("#jform_protocol").val(); var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val(); var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf); vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
}); });
// #jform_authentication listeners for authentication_vvvvwbf function // #jform_authentication listeners for authentication_vvvvwbe function
jQuery('#jform_authentication').on('keyup',function() jQuery('#jform_authentication').on('keyup',function()
{ {
var protocol_vvvvwbf = jQuery("#jform_protocol").val(); var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val(); var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf); vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
}); });
jQuery('#adminForm').on('change', '#jform_authentication',function (e) jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwbf = jQuery("#jform_protocol").val(); var protocol_vvvvwbe = jQuery("#jform_protocol").val();
var authentication_vvvvwbf = jQuery("#jform_authentication").val(); var authentication_vvvvwbe = jQuery("#jform_authentication").val();
vvvvwbf(protocol_vvvvwbf,authentication_vvvvwbf); vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
}); });
// #jform_protocol listeners for protocol_vvvvwbh function // #jform_protocol listeners for protocol_vvvvwbg function
jQuery('#jform_protocol').on('keyup',function() jQuery('#jform_protocol').on('keyup',function()
{ {
var protocol_vvvvwbh = jQuery("#jform_protocol").val(); var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val(); var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh); vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
}); });
jQuery('#adminForm').on('change', '#jform_protocol',function (e) jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwbh = jQuery("#jform_protocol").val(); var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val(); var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh); vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
}); });
// #jform_authentication listeners for authentication_vvvvwbh function // #jform_authentication listeners for authentication_vvvvwbg function
jQuery('#jform_authentication').on('keyup',function() jQuery('#jform_authentication').on('keyup',function()
{ {
var protocol_vvvvwbh = jQuery("#jform_protocol").val(); var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val(); var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh); vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
}); });
jQuery('#adminForm').on('change', '#jform_authentication',function (e) jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{ {
e.preventDefault(); e.preventDefault();
var protocol_vvvvwbh = jQuery("#jform_protocol").val(); var protocol_vvvvwbg = jQuery("#jform_protocol").val();
var authentication_vvvvwbh = jQuery("#jform_authentication").val(); var authentication_vvvvwbg = jQuery("#jform_authentication").val();
vvvvwbh(protocol_vvvvwbh,authentication_vvvvwbh); vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
});
// #jform_protocol listeners for protocol_vvvvwbi function
jQuery('#jform_protocol').on('keyup',function()
{
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
});
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
{
e.preventDefault();
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
});
// #jform_authentication listeners for authentication_vvvvwbi function
jQuery('#jform_authentication').on('keyup',function()
{
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
});
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
{
e.preventDefault();
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
}); });

View File

@ -1,15 +1,15 @@
<?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>26th January, 2019</creationDate> <creationDate>29th January, 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>
<copyright>Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.</copyright> <copyright>Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license> <license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>2.9.9</version> <version>2.9.10</version>
<description><![CDATA[ <description><![CDATA[
<h1>Component Builder (v.2.9.9)</h1> <h1>Component Builder (v.2.9.10)</h1>
<div style="clear: both;"></div> <div style="clear: both;"></div>
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time. <p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.

View File

@ -568,7 +568,24 @@
<version>2.9.9</version> <version>2.9.9</version>
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl> <infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
<downloads> <downloads>
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.9.9/JCB_v2.9.9.zip</downloadurl> <downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.9.10/JCB_v2.9.10.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
</tags>
<maintainer>Llewellyn van der Merwe</maintainer>
<maintainerurl>http://www.joomlacomponentbuilder.com</maintainerurl>
<targetplatform name="joomla" version="3.*"/>
</update>
<update>
<name>Component Builder</name>
<description>Builds Complex Joomla Components</description>
<element>com_componentbuilder</element>
<type>component</type>
<version>2.9.10</version>
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.9.10/JCB_v2.9.10.zip</downloadurl>
</downloads> </downloads>
<tags> <tags>
<tag>stable</tag> <tag>stable</tag>

View File

@ -3580,9 +3580,9 @@ class com_componentbuilderInstallerScript
$dynamic_get->type_title = 'Componentbuilder Dynamic_get'; $dynamic_get->type_title = 'Componentbuilder Dynamic_get';
$dynamic_get->type_alias = 'com_componentbuilder.dynamic_get'; $dynamic_get->type_alias = 'com_componentbuilder.dynamic_get';
$dynamic_get->table = '{"special": {"dbtable": "#__componentbuilder_dynamic_get","key": "id","type": "Dynamic_get","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}'; $dynamic_get->table = '{"special": {"dbtable": "#__componentbuilder_dynamic_get","key": "id","type": "Dynamic_get","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$dynamic_get->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_custom_get","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","main_source":"main_source","gettype":"gettype","view_table_main":"view_table_main","add_php_router_parse":"add_php_router_parse","addcalculation":"addcalculation","add_php_before_getitems":"add_php_before_getitems","add_php_after_getitems":"add_php_after_getitems","add_php_after_getitem":"add_php_after_getitem","add_php_getlistquery":"add_php_getlistquery","view_selection":"view_selection","add_php_before_getitem":"add_php_before_getitem","php_custom_get":"php_custom_get","plugin_events":"plugin_events","db_selection":"db_selection","db_table_main":"db_table_main","php_before_getitem":"php_before_getitem","getcustom":"getcustom","php_after_getitem":"php_after_getitem","pagination":"pagination","php_getlistquery":"php_getlistquery","not_required":"not_required","php_before_getitems":"php_before_getitems","php_after_getitems":"php_after_getitems","php_router_parse":"php_router_parse","php_calculation":"php_calculation"}}'; $dynamic_get->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_custom_get","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","main_source":"main_source","gettype":"gettype","addcalculation":"addcalculation","add_php_after_getitems":"add_php_after_getitems","add_php_router_parse":"add_php_router_parse","add_php_getlistquery":"add_php_getlistquery","add_php_before_getitems":"add_php_before_getitems","add_php_before_getitem":"add_php_before_getitem","view_selection":"view_selection","db_table_main":"db_table_main","php_custom_get":"php_custom_get","plugin_events":"plugin_events","db_selection":"db_selection","view_table_main":"view_table_main","add_php_after_getitem":"add_php_after_getitem","select_all":"select_all","php_before_getitem":"php_before_getitem","getcustom":"getcustom","php_after_getitem":"php_after_getitem","pagination":"pagination","php_getlistquery":"php_getlistquery","not_required":"not_required","php_before_getitems":"php_before_getitems","php_after_getitems":"php_after_getitems","php_router_parse":"php_router_parse","php_calculation":"php_calculation"}}';
$dynamic_get->router = 'ComponentbuilderHelperRoute::getDynamic_getRoute'; $dynamic_get->router = 'ComponentbuilderHelperRoute::getDynamic_getRoute';
$dynamic_get->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_source","gettype","view_table_main","add_php_router_parse","add_php_before_getitems","add_php_after_getitems","add_php_after_getitem","add_php_getlistquery","add_php_before_getitem","pagination","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'; $dynamic_get->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_source","gettype","add_php_after_getitems","add_php_router_parse","add_php_getlistquery","add_php_before_getitems","add_php_before_getitem","view_table_main","add_php_after_getitem","select_all","pagination","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}';
// Set the object into the content types table. // Set the object into the content types table.
$dynamic_get_Inserted = $db->insertObject('#__content_types', $dynamic_get); $dynamic_get_Inserted = $db->insertObject('#__content_types', $dynamic_get);
@ -4128,9 +4128,9 @@ class com_componentbuilderInstallerScript
$dynamic_get->type_title = 'Componentbuilder Dynamic_get'; $dynamic_get->type_title = 'Componentbuilder Dynamic_get';
$dynamic_get->type_alias = 'com_componentbuilder.dynamic_get'; $dynamic_get->type_alias = 'com_componentbuilder.dynamic_get';
$dynamic_get->table = '{"special": {"dbtable": "#__componentbuilder_dynamic_get","key": "id","type": "Dynamic_get","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}'; $dynamic_get->table = '{"special": {"dbtable": "#__componentbuilder_dynamic_get","key": "id","type": "Dynamic_get","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
$dynamic_get->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_custom_get","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","main_source":"main_source","gettype":"gettype","view_table_main":"view_table_main","add_php_router_parse":"add_php_router_parse","addcalculation":"addcalculation","add_php_before_getitems":"add_php_before_getitems","add_php_after_getitems":"add_php_after_getitems","add_php_after_getitem":"add_php_after_getitem","add_php_getlistquery":"add_php_getlistquery","view_selection":"view_selection","add_php_before_getitem":"add_php_before_getitem","php_custom_get":"php_custom_get","plugin_events":"plugin_events","db_selection":"db_selection","db_table_main":"db_table_main","php_before_getitem":"php_before_getitem","getcustom":"getcustom","php_after_getitem":"php_after_getitem","pagination":"pagination","php_getlistquery":"php_getlistquery","not_required":"not_required","php_before_getitems":"php_before_getitems","php_after_getitems":"php_after_getitems","php_router_parse":"php_router_parse","php_calculation":"php_calculation"}}'; $dynamic_get->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_custom_get","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","main_source":"main_source","gettype":"gettype","addcalculation":"addcalculation","add_php_after_getitems":"add_php_after_getitems","add_php_router_parse":"add_php_router_parse","add_php_getlistquery":"add_php_getlistquery","add_php_before_getitems":"add_php_before_getitems","add_php_before_getitem":"add_php_before_getitem","view_selection":"view_selection","db_table_main":"db_table_main","php_custom_get":"php_custom_get","plugin_events":"plugin_events","db_selection":"db_selection","view_table_main":"view_table_main","add_php_after_getitem":"add_php_after_getitem","select_all":"select_all","php_before_getitem":"php_before_getitem","getcustom":"getcustom","php_after_getitem":"php_after_getitem","pagination":"pagination","php_getlistquery":"php_getlistquery","not_required":"not_required","php_before_getitems":"php_before_getitems","php_after_getitems":"php_after_getitems","php_router_parse":"php_router_parse","php_calculation":"php_calculation"}}';
$dynamic_get->router = 'ComponentbuilderHelperRoute::getDynamic_getRoute'; $dynamic_get->router = 'ComponentbuilderHelperRoute::getDynamic_getRoute';
$dynamic_get->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_source","gettype","view_table_main","add_php_router_parse","add_php_before_getitems","add_php_after_getitems","add_php_after_getitem","add_php_getlistquery","add_php_before_getitem","pagination","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'; $dynamic_get->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","main_source","gettype","add_php_after_getitems","add_php_router_parse","add_php_getlistquery","add_php_before_getitems","add_php_before_getitem","view_table_main","add_php_after_getitem","select_all","pagination","not_required"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}';
// Check if dynamic_get type is already in content_type DB. // Check if dynamic_get type is already in content_type DB.
$dynamic_get_id = null; $dynamic_get_id = null;
@ -5172,7 +5172,7 @@ class com_componentbuilderInstallerScript
echo '<a target="_blank" href="http://www.joomlacomponentbuilder.com" title="Component Builder"> echo '<a target="_blank" href="http://www.joomlacomponentbuilder.com" title="Component Builder">
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/> <img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
</a> </a>
<h3>Upgrade to Version 2.9.9 Was Successful! Let us know if anything is not working as expected.</h3>'; <h3>Upgrade to Version 2.9.10 Was Successful! Let us know if anything is not working as expected.</h3>';
} }
} }

View File

@ -1011,6 +1011,174 @@ abstract class ComponentbuilderHelper
return '<div>'.JText::_('COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE').'</div>'; return '<div>'.JText::_('COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE').'</div>';
} }
/**
* get the database table columns
**/
public static function getDbTableColumns($tableName, $as, $type)
{
// Get a db connection.
$db = JFactory::getDbo();
// get the columns
$columns = $db->getTableColumns("#__" . $tableName);
// set the type (multi or single)
$unique = '';
if (1 == $type)
{
$unique = self::safeString($tableName) . '_';
}
if (self::checkArray($columns))
{
// build the return string
$tableColumns = array();
foreach ($columns as $column => $typeCast)
{
$tableColumns[] = $as . "." . $column . ' AS ' . $unique . $column;
}
return implode("\n", $tableColumns);
}
return false;
}
/**
* get the view table columns
**/
public static function getViewTableColumns($admin_view, $as, $type)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.addfields', 'b.name_single')));
$query->from($db->quoteName('#__componentbuilder_admin_fields', 'a'));
$query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'b') . ' ON (' . $db->quoteName('a.admin_view') . ' = ' . $db->quoteName('b.id') . ')');
$query->where($db->quoteName('b.published') . ' = 1');
$query->where($db->quoteName('a.admin_view') . ' = ' . (int) $admin_view);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$result = $db->loadObject();
$tableName = '';
if (1 == $type)
{
$tableName = self::safeString($result->name_single) . '_';
}
$addfields = json_decode($result->addfields, true);
if (self::checkArray($addfields))
{
// reset all buckets
$field = array();
$fields = array();
// get data
foreach ($addfields as $nr => $value)
{
$tmp = self::getFieldNameAndType((int) $value['field']);
if (self::checkArray($tmp))
{
$field[$nr] = $tmp;
}
// insure it is set to alias if needed
if (isset($value['alias']) && $value['alias'] == 1)
{
$field[$nr]['name'] = 'alias';
}
// remove a field that is not being stored in the database
if (!isset($value['list']) || $value['list'] == 2)
{
unset($field[$nr]);
}
}
// add the basic defaults
$fields[] = $as . ".id AS " . $tableName . "id";
$fields[] = $as . ".asset_id AS " . $tableName . "asset_id";
// load data
foreach ($field as $n => $f)
{
if (self::checkArray($f))
{
$fields[] = $as . "." . $f['name'] . " AS " . $tableName . $f['name'];
}
}
// add the basic defaults
$fields[] = $as . ".published AS " . $tableName . "published";
$fields[] = $as . ".created_by AS " . $tableName . "created_by";
$fields[] = $as . ".modified_by AS " . $tableName . "modified_by";
$fields[] = $as . ".created AS " . $tableName . "created";
$fields[] = $as . ".modified AS " . $tableName . "modified";
$fields[] = $as . ".version AS " . $tableName . "version";
$fields[] = $as . ".hits AS " . $tableName . "hits";
if (0) // TODO access is not set here but per/view in the form linking this admin view to which these field belong to the components (boooo I know but that is the case and so we can't ever really know at this point if this view has access set)
{
$fields[] = $as . ".access AS " . $tableName . "access";
}
$fields[] = $as . ".ordering AS " . $tableName . "ordering";
// return the field of this view
return implode("\n", $fields);
}
}
return false;
}
protected static function getFieldNameAndType($id)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Order it by the ordering field.
$query->select($db->quoteName(array('a.name', 'a.xml')));
$query->select($db->quoteName(array('c.name'), array('type_name')));
$query->from('#__componentbuilder_field AS a');
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'c') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('c.id') . ')');
$query->where($db->quoteName('a.id') . ' = '. $db->quote($id));
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
// Load the results as a list of stdClass objects (see later for more options on retrieving data).
$field = $db->loadObject();
// load the values form params
$field->xml = json_decode($field->xml);
$field->type_name = self::safeString($field->type_name);
$load = true;
// if category then name must be catid (only one per view)
if ($field->type_name == 'category')
{
$name = 'catid';
}
// if tag is set then enable all tag options for this view (only one per view)
elseif ($field->type_name == 'tag')
{
$name = 'tags';
}
// don't add spacers or notes
elseif ($field->type_name == 'spacer' || $field->type_name == 'note')
{
// make sure the name is unique
return false;
}
else
{
$name = self::safeString(self::getBetween($field->xml,'name="','"'));
}
// use field core name only if not found in xml
if (!self::checkString($name))
{
$name = self::safeString($field->name);;
}
return array('name' => $name, 'type' => $field->type_name);
}
return false;
}
/** /**
* The array of dynamic content * The array of dynamic content
* *