diff --git a/README.md b/README.md index 815c07b8c..2f0d14d03 100644 --- a/README.md +++ b/README.md @@ -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! -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.33) 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.34) 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) @@ -146,13 +146,13 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 17th July, 2019 -+ *Version*: 2.9.33 ++ *Last Build*: 19th July, 2019 ++ *Version*: 2.9.34 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **236366** -+ *Field count*: **1235** -+ *File count*: **1527** ++ *Line count*: **236622** ++ *Field count*: **1239** ++ *File count*: **1528** + *Folder count*: **233** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/README.txt b/admin/README.txt index 815c07b8c..2f0d14d03 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -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! -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.33) 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.34) 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) @@ -146,13 +146,13 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 17th July, 2019 -+ *Version*: 2.9.33 ++ *Last Build*: 19th July, 2019 ++ *Version*: 2.9.34 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **236366** -+ *Field count*: **1235** -+ *File count*: **1527** ++ *Line count*: **236622** ++ *Field count*: **1239** ++ *File count*: **1528** + *Folder count*: **233** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/access.xml b/admin/access.xml index 46d82d317..f5d11dd7d 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -342,8 +342,6 @@ - - diff --git a/admin/assets/images/icons/joomla_components.png b/admin/assets/images/icons/joomla_components.png index 3917f1e45..6f7d10067 100644 Binary files a/admin/assets/images/icons/joomla_components.png and b/admin/assets/images/icons/joomla_components.png differ diff --git a/admin/assets/images/icons/joomla_plugins.png b/admin/assets/images/icons/joomla_plugins.png index 72ea64609..623cc4140 100644 Binary files a/admin/assets/images/icons/joomla_plugins.png and b/admin/assets/images/icons/joomla_plugins.png differ diff --git a/admin/compiler/joomla_3/JFormFieldCheckboxes.php b/admin/compiler/joomla_3/JFormFieldCheckboxes.php index 2b75c8137..d5f648d1a 100644 --- a/admin/compiler/joomla_3/JFormFieldCheckboxes.php +++ b/admin/compiler/joomla_3/JFormFieldCheckboxes.php @@ -24,7 +24,7 @@ JFormHelper::loadFieldClass('checkboxes'); /** * ###Type### Form Field class for the ###Component### component */ -class JFormField###Type### extends JFormFieldCheckboxes +class ###JPREFIX###FormField###Type### extends JFormFieldCheckboxes { /** * The ###type### field type. diff --git a/admin/compiler/joomla_3/JFormFieldCustom.php b/admin/compiler/joomla_3/JFormFieldCustom.php index 21e628cc0..85aa5469e 100644 --- a/admin/compiler/joomla_3/JFormFieldCustom.php +++ b/admin/compiler/joomla_3/JFormFieldCustom.php @@ -24,7 +24,7 @@ JFormHelper::loadFieldClass('###JFORM_extends###'); /** * ###Type### Form Field class for the ###Component### component */ -class JFormField###Type### extends JFormField###JFORM_EXTENDS### +class ###JPREFIX###FormField###Type### extends JFormField###JFORM_EXTENDS### { /** * The ###type### field type. diff --git a/admin/compiler/joomla_3/JFormFieldList.php b/admin/compiler/joomla_3/JFormFieldList.php index d130ff165..918796ba2 100644 --- a/admin/compiler/joomla_3/JFormFieldList.php +++ b/admin/compiler/joomla_3/JFormFieldList.php @@ -24,7 +24,7 @@ JFormHelper::loadFieldClass('list'); /** * ###Type### Form Field class for the ###Component### component */ -class JFormField###Type### extends JFormFieldList +class ###JPREFIX###FormField###Type### extends JFormFieldList { /** * The ###type### field type. diff --git a/admin/compiler/joomla_3/JFormFieldRadio.php b/admin/compiler/joomla_3/JFormFieldRadio.php index bd625b6c7..d8e5f6bfd 100644 --- a/admin/compiler/joomla_3/JFormFieldRadio.php +++ b/admin/compiler/joomla_3/JFormFieldRadio.php @@ -24,7 +24,7 @@ JFormHelper::loadFieldClass('radio'); /** * ###Type### Form Field class for the ###Component### component */ -class JFormField###Type### extends JFormFieldRadio +class ###JPREFIX###FormField###Type### extends JFormFieldRadio { /** * The ###type### field type. diff --git a/admin/compiler/joomla_3/JFormFieldUser.php b/admin/compiler/joomla_3/JFormFieldUser.php index cbaf59b9d..9889ba0bb 100644 --- a/admin/compiler/joomla_3/JFormFieldUser.php +++ b/admin/compiler/joomla_3/JFormFieldUser.php @@ -24,7 +24,7 @@ JFormHelper::loadFieldClass('user'); /** * ###Type### Form Field class for the ###Component### component */ -class JFormField###Type### extends JFormFieldUser +class ###JPREFIX###FormField###Type### extends JFormFieldUser { /** * The ###type### field type. diff --git a/admin/config.xml b/admin/config.xml index 20204b87b..69db069e6 100644 --- a/admin/config.xml +++ b/admin/config.xml @@ -263,6 +263,20 @@ + + + + + + diff --git a/admin/controllers/ajax.json.php b/admin/controllers/ajax.json.php index 3a4830f3b..69a27a482 100644 --- a/admin/controllers/ajax.json.php +++ b/admin/controllers/ajax.json.php @@ -33,6 +33,7 @@ class ComponentbuilderControllerAjax extends JControllerLegacy $this->registerTask('getCrowdinDetails', 'ajax'); $this->registerTask('getClassCode', 'ajax'); $this->registerTask('getClassCodeIds', 'ajax'); + $this->registerTask('getClassHeaderCode', 'ajax'); $this->registerTask('tableColumns', 'ajax'); $this->registerTask('fieldSelectOptions', 'ajax'); $this->registerTask('getDynamicScripts', 'ajax'); @@ -381,6 +382,45 @@ class ComponentbuilderControllerAjax extends JControllerLegacy } } break; + case 'getClassHeaderCode': + try + { + $returnRaw = $jinput->get('raw', false, 'BOOLEAN'); + $idValue = $jinput->get('id', NULL, 'INT'); + $typeValue = $jinput->get('type', NULL, 'WORD'); + if($idValue && $typeValue && $user->id != 0) + { + $result = $this->getModel('ajax')->getClassHeaderCode($idValue, $typeValue); + } + else + { + $result = false; + } + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback . "(".json_encode($result).");"; + } + elseif($returnRaw) + { + echo json_encode($result); + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; case 'tableColumns': try { diff --git a/admin/controllers/joomla_plugins.php b/admin/controllers/joomla_plugins.php index 2b76de3aa..e648b8ca3 100644 --- a/admin/controllers/joomla_plugins.php +++ b/admin/controllers/joomla_plugins.php @@ -41,69 +41,6 @@ class ComponentbuilderControllerJoomla_plugins extends JControllerAdmin return parent::getModel($name, $prefix, $config); } - public function exportData() - { - // Check for request forgeries - JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); - // check if export is allowed for this user. - $user = JFactory::getUser(); - if ($user->authorise('joomla_plugin.export', 'com_componentbuilder') && $user->authorise('core.export', 'com_componentbuilder')) - { - // Get the input - $input = JFactory::getApplication()->input; - $pks = $input->post->get('cid', array(), 'array'); - // Sanitize the input - JArrayHelper::toInteger($pks); - // Get the model - $model = $this->getModel('Joomla_plugins'); - // get the data to export - $data = $model->getExportData($pks); - if (ComponentbuilderHelper::checkArray($data)) - { - // now set the data to the spreadsheet - $date = JFactory::getDate(); - ComponentbuilderHelper::xls($data,'Joomla_plugins_'.$date->format('jS_F_Y'),'Joomla plugins exported ('.$date->format('jS F, Y').')','joomla plugins'); - } - } - // Redirect to the list screen with error. - $message = JText::_('COM_COMPONENTBUILDER_EXPORT_FAILED'); - $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_plugins', false), $message, 'error'); - return; - } - - - public function importData() - { - // Check for request forgeries - JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); - // check if import is allowed for this user. - $user = JFactory::getUser(); - if ($user->authorise('joomla_plugin.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder')) - { - // Get the import model - $model = $this->getModel('Joomla_plugins'); - // get the headers to import - $headers = $model->getExImPortHeaders(); - if (ComponentbuilderHelper::checkObject($headers)) - { - // Load headers to session. - $session = JFactory::getSession(); - $headers = json_encode($headers); - $session->set('joomla_plugin_VDM_IMPORTHEADERS', $headers); - $session->set('backto_VDM_IMPORT', 'joomla_plugins'); - $session->set('dataType_VDM_IMPORTINTO', 'joomla_plugin'); - // Redirect to import view. - $message = JText::_('COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_PLUGINS'); - $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import', false), $message); - return; - } - } - // Redirect to the list screen with error. - $message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED'); - $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_plugins', false), $message, 'error'); - return; - } - /** * Run the Expansion diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index 29186c266..7df3a6695 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -2926,11 +2926,11 @@ class Get $field['settings']->type_name = 'Custom'; } // set the type name - $type_name = ComponentbuilderHelper::safeString($field['settings']->type_name); + $type_name = ComponentbuilderHelper::safeTypeName($field['settings']->type_name); // if custom (we must use the xml value) - if ($type_name === 'custom' || $type_name === 'customuser') + if (strtolower($type_name) === 'custom' || strtolower($type_name) === 'customuser') { - $type = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field['settings']->xml, 'type="', '"')); + $type = ComponentbuilderHelper::safeTypeName(ComponentbuilderHelper::getBetween($field['settings']->xml, 'type="', '"')); } else { @@ -2942,17 +2942,12 @@ class Get // force the default value if (isset($property['example']) && ComponentbuilderHelper::checkString($property['example'])) { - $type = ComponentbuilderHelper::safeString($property['example']); - } - // fallback on type name set in name field - elseif (ComponentbuilderHelper::checkString($type_name)) - { - $type = $type_name; + $type = ComponentbuilderHelper::safeTypeName($property['example']); } // fall back on the xml settings (not ideal) else { - $type = ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($xml, 'type="', '"')); + $type = ComponentbuilderHelper::safeTypeName(ComponentbuilderHelper::getBetween($field['settings']->xml, 'type="', '"')); } // exit foreach loop break; @@ -2960,11 +2955,15 @@ class Get } } // check if the value is set - if (ComponentbuilderHelper::checkString($type)) + if (isset($type) && ComponentbuilderHelper::checkString($type)) { - // add the value return $type; } + // fallback on type name set in name field (not ideal) + else + { + return $type_name; + } } // fall back to text return 'text'; diff --git a/admin/helpers/compiler/c_Fields.php b/admin/helpers/compiler/c_Fields.php index 9e830fecd..c280b4bf0 100644 --- a/admin/helpers/compiler/c_Fields.php +++ b/admin/helpers/compiler/c_Fields.php @@ -1399,11 +1399,6 @@ class Fields extends Structure // now add to the field set $field .= $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber); } - elseif (ComponentbuilderHelper::fieldCheck($r_typeName, 'plain')) - { - // now add to the field set - $field .= $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber); - } elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) { // add to custom @@ -1425,6 +1420,11 @@ class Fields extends Structure // set the custom field file $this->setCustomFieldTypeFile($data, $view_name_list, $view_name_single); } + else + { + // now add to the field set + $field .= $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber); + } } } } @@ -1498,11 +1498,6 @@ class Fields extends Structure // now add to the field set $field .= $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber); } - elseif (ComponentbuilderHelper::fieldCheck($r_typeName, 'plain')) - { - // now add to the field set - $field .= $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber); - } elseif ($r_typeName === 'subform') { // set nested depth @@ -1542,6 +1537,11 @@ class Fields extends Structure // set the custom field file $this->setCustomFieldTypeFile($data, $view_name_list, $view_name_single); } + else + { + // now add to the field set + $field .= $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber); + } } } } @@ -2862,6 +2862,22 @@ class Fields extends Structure // make sure it is not already been build or if it is prime if (isset($data['custom']) && isset($data['custom']['extends']) && ((isset($data['custom']['prime_php']) && $data['custom']['prime_php'] == 1) || !isset($this->fileContentDynamic['customfield_' . $data['type']]) || !ComponentbuilderHelper::checkArray($this->fileContentDynamic['customfield_' . $data['type']]))) { + // set J prefix + $jprefix = 'J'; + // check if this field has a dot in field type name + if (strpos($data['type'], '.') !== false) + { + // so we have name spacing in custom field type name + $dotTypeArray = explode('.', $data['type']); + // set the J prefix + if (count($dotTypeArray) > 1) + { + $jprefix = strtoupper(array_shift($dotTypeArray)); + } + // update the type name now + $data['type'] = implode('', $dotTypeArray); + $data['custom']['type'] = $data['type']; + } // set tab and break replacements $tabBreak = array( '\t' => $this->_t(1), @@ -2869,6 +2885,7 @@ class Fields extends Structure ); // set the [[[PLACEHOLDER]]] options $replace = array( + $this->bbb . 'JPREFIX' . $this->ddd => $jprefix, $this->bbb . 'TABLE' . $this->ddd => $data['custom']['table'], $this->bbb . 'ID' . $this->ddd => $data['custom']['id'], $this->bbb . 'TEXT' . $this->ddd => $data['custom']['text'], @@ -2901,6 +2918,8 @@ class Fields extends Structure } // start loading the field type $this->fileContentDynamic['customfield_' . $data['type']] = array(); + // JPREFIX <>> + $this->fileContentDynamic['customfield_' . $data['type']][$this->hhh . 'JPREFIX' . $this->hhh] = $jprefix; // Type <<>> $this->fileContentDynamic['customfield_' . $data['type']][$this->hhh . 'Type' . $this->hhh] = ComponentbuilderHelper::safeString($data['custom']['type'], 'F'); // type <<>> diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php index e21f8ffdb..4361b6e63 100644 --- a/admin/helpers/componentbuilder.php +++ b/admin/helpers/componentbuilder.php @@ -712,6 +712,48 @@ abstract class ComponentbuilderHelper return self::safeString($string); } + /** + * The type builder switch + **/ + protected static $typeNameBuilder = false; + + /** + * Making field type name safe + * + * @input string The you would like to make safe + * + * @returns string on success + **/ + public static function safeTypeName($string) + { + // get global value + if (self::$typeNameBuilder === false) + { + self::$typeNameBuilder = JComponentHelper::getParams('com_componentbuilder')->get('type_name_builder', 1); + } + // use the new convention + if (2 == self::$typeNameBuilder) + { + // 0nly continue if we have a string + if (self::checkString($string)) + { + // check that the first character is not a number + if (is_numeric(substr($string, 0, 1))) + { + $string = self::replaceNumbers($string); + } + // remove all and keep only characters and numbers and point (TODO just one point) + $string = trim(preg_replace("/[^A-Za-z0-9\.]/", '', $string)); + // best is to return lower (for all string equality in compiler) + return strtolower($string); + } + // not a string + return ''; + } + // use the default (original behaviour/convention) + return self::safeString($string); + } + /* * Get the Array of Existing Validation Rule Names * diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index 9eb70baf7..d52af6caf 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -3145,6 +3145,7 @@ COM_COMPONENTBUILDER_CONFIG_ADD_MENU_PREFIX_DESCRIPTION="Would you like to add a COM_COMPONENTBUILDER_CONFIG_ADD_MENU_PREFIX_LABEL="Add Menu Prefix" COM_COMPONENTBUILDER_CONFIG_ALMOST_FLAT_LOAD="Almost Flat" COM_COMPONENTBUILDER_CONFIG_ALPHANUMERIC="Alphanumeric" +COM_COMPONENTBUILDER_CONFIG_ALPHANUMERICDOT="Alphanumeric+dot" COM_COMPONENTBUILDER_CONFIG_API_DESCRIPTION="This User will be used to log the API call." COM_COMPONENTBUILDER_CONFIG_API_LABEL="API User" COM_COMPONENTBUILDER_CONFIG_AUTHOR="Author Info" @@ -3508,6 +3509,8 @@ COM_COMPONENTBUILDER_CONFIG_STORAGE_TIME_TO_LIVE_LABEL="Update Cycle" COM_COMPONENTBUILDER_CONFIG_STRING_MANIPULATION="String Manipulation" COM_COMPONENTBUILDER_CONFIG_TLS="TLS" COM_COMPONENTBUILDER_CONFIG_TRUE="True" +COM_COMPONENTBUILDER_CONFIG_TYPE_NAME_BUILDER_DESCRIPTION="The default option only uses alphabetical characters and converts all numbers in field names to the English equivalent like 1 becomes one.
Alphanumeric+dot keeps the numbers unconverted unless it is at the beginning of the field name, and allows for a dot (.) to be used in the type name for namespacing." +COM_COMPONENTBUILDER_CONFIG_TYPE_NAME_BUILDER_LABEL="Field Type Name Builder
(in compiler)" COM_COMPONENTBUILDER_CONFIG_UIKIT_DESC="The Parameters for the uikit are set here.
Uikit is a lightweight and modular front-end framework for developing fast and powerful web interfaces. For more info visit https://getuikit.com/v2/" COM_COMPONENTBUILDER_CONFIG_UIKIT_LABEL="Uikit2 Settings" @@ -5316,7 +5319,6 @@ COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_FIELDS="Select the file to import da COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_FIELDTYPES="Select the file to import data to fieldtypes." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS="Select the file to import data to help_documents." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_COMPONENTS="Select the file to import data to joomla_components." -COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_PLUGINS="Select the file to import data to joomla_plugins." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_LANGUAGES="Select the file to import data to languages." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_LANGUAGE_TRANSLATIONS="Select the file to import data to language_translations." COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_LAYOUTS="Select the file to import data to layouts." @@ -5883,10 +5885,6 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_STATE="Joomla Plugins Edit State" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION="Joomla Plugins Edit Version" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla plugins" -COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EXPORT="Joomla Plugins Export" -COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EXPORT_DESC="Allows the users in this group to export export joomla plugins" -COM_COMPONENTBUILDER_JOOMLA_PLUGINS_IMPORT="Joomla Plugins Import" -COM_COMPONENTBUILDER_JOOMLA_PLUGINS_IMPORT_DESC="Allows the users in this group to import import joomla plugins" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_ARCHIVED="%s Joomla Plugins archived." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_ARCHIVED_1="%s Joomla Plugin archived." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_CHECKED_IN_0="No Joomla Plugin successfully checked in." @@ -5906,8 +5904,12 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_UNPUBLISHED="%s Joomla Plugins unpub COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_UNPUBLISHED_1="%s Joomla Plugin unpublished." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_SUBMENU="Joomla Plugins Submenu" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_SUBMENU_DESC="Allows the users in this group to submenu of joomla plugin" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD="Add Head" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_DESCRIPTION="You can add your own custom header script, combined with the default header script that make the extended class work." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_LABEL="Add Custom Class Header" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CLASS_EXTENDS="Class Extends" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CLASS_EXTENDS_LABEL="Extends" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CODE="Code" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CONFIGPARAMS="Config/Params" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CREATED_BY_DESC="The user that created this Joomla Plugin." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CREATED_BY_LABEL="Created By" @@ -5916,7 +5918,6 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CREATED_DATE_LABEL="Created Date" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CUSTOM_VALUE_DESCRIPTION="Enter custom value if needed" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CUSTOM_VALUE_HINT="Custom Value Here" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CUSTOM_VALUE_LABEL="Custom Value" -COM_COMPONENTBUILDER_JOOMLA_PLUGIN_DETAILS="Details" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_EDIT="Editing the Joomla Plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ERROR_UNIQUE_ALIAS="Another Joomla Plugin has the same alias." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FIELD="Field" @@ -5980,6 +5981,9 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUP_SAVE_WARNING="Alias already existed so COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUP_STATUS="Status" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUP_VERSION_DESC="A count of the number of times this Joomla Plugin Group has been revised." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUP_VERSION_LABEL="Revision" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD="Head" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD_DESCRIPTION="The class head, where JLoader, namespace and use is added, so that class being extended will work." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_HEAD_LABEL="Class Head" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ID="Id" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_JOOMLA_PLUGIN_GROUP="Joomla Plugin Group" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_JOOMLA_PLUGIN_GROUP_LABEL="Joomla Plugin Group" @@ -6003,6 +6007,7 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_HINT="Name Here" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_LABEL="Name" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_MESSAGE="Error! Please add name here." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NEW="A New Joomla Plugin" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NO="No" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_BETA_STAGE_DESCRIPTION="This area is still in beta, and is not ready for use. Things may work, but they are not wired up to the back-end/compiler. You are already seeing it since JCB is being developed in a reverse motion of front-end/GUI to back-end/Compiler approach. We first build the GUI... and then the Back-end, which is not normally how it is done, or so I was told.... But anyway that is how JCB is being build, we get the idea, look at all the relationships and build the tables, and columns, which then map to views and fields (GUI), we then build the functions in the compiler to act upon these new data-sets, and whammm the full functionality/idea becomes stable and ready. So in due time this area will become available for your use, and then this message will go away! (or the whole area will just disappear if it does not work out :)" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_BETA_STAGE_LABEL="Beta Stage" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_LINKED_TO_NOTICE_DESCRIPTION="
Searching the database.
" @@ -6023,8 +6028,14 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_RUN_EXPANSION_BUTTON_ACCESS="Joomla Plugin Ru COM_COMPONENTBUILDER_JOOMLA_PLUGIN_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Joomla Plugin to customise the alias." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_STATUS="Status" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME="System Name" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_DESCRIPTION="Used only in the system." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_HINT="The System Name Here" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_LABEL="System Name" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_MESSAGE="Error! Please add some text here." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_VERSION_DESC="A count of the number of times this Joomla Plugin has been revised." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_VERSION_LABEL="Revision" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES="Yes" COM_COMPONENTBUILDER_JUST_GET_ALL_SNIPPETS="Just Get All Snippets" COM_COMPONENTBUILDER_KEEP_HISTORY="Keep History" COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS="- Keep Original Access -" diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini index 23b8a8222..42a278414 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini @@ -660,10 +660,6 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_STATE="Joomla Plugins Edit State" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION="Joomla Plugins Edit Version" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla plugins" -COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EXPORT="Joomla Plugins Export" -COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EXPORT_DESC="Allows the users in this group to export export joomla plugins" -COM_COMPONENTBUILDER_JOOMLA_PLUGINS_IMPORT="Joomla Plugins Import" -COM_COMPONENTBUILDER_JOOMLA_PLUGINS_IMPORT_DESC="Allows the users in this group to import import joomla plugins" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_SUBMENU="Joomla Plugins Submenu" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_SUBMENU_DESC="Allows the users in this group to submenu of joomla plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GET_BOILERPLATE_BUTTON_ACCESS="Joomla Plugin Get Boilerplate Button Access" diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php index 2c946f2bf..ad82e0bd2 100644 --- a/admin/layouts/fieldtype/fields_fullwidth.php +++ b/admin/layouts/fieldtype/fields_fullwidth.php @@ -13,7 +13,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vxsfields; +$items = $displayData->vxtfields; $user = JFactory::getUser(); $id = $displayData->item->id; // set the edit URL diff --git a/admin/layouts/joomla_plugin/details_above.php b/admin/layouts/joomla_plugin/code_above.php similarity index 94% rename from admin/layouts/joomla_plugin/details_above.php rename to admin/layouts/joomla_plugin/code_above.php index 8e191208e..0b9969524 100644 --- a/admin/layouts/joomla_plugin/details_above.php +++ b/admin/layouts/joomla_plugin/code_above.php @@ -26,9 +26,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1]; // get the fields $fields = $displayData->get($fields_tab_layout) ?: array( - 'name', - 'class_extends', - 'joomla_plugin_group' + 'system_name' ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); diff --git a/admin/layouts/joomla_plugin/details_fullwidth.php b/admin/layouts/joomla_plugin/code_fullwidth.php similarity index 97% rename from admin/layouts/joomla_plugin/details_fullwidth.php rename to admin/layouts/joomla_plugin/code_fullwidth.php index 39b8b415a..25d35c80c 100644 --- a/admin/layouts/joomla_plugin/details_fullwidth.php +++ b/admin/layouts/joomla_plugin/code_fullwidth.php @@ -26,6 +26,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1]; // get the fields $fields = $displayData->get($fields_tab_layout) ?: array( + 'head', 'main_class_code', 'note_linked_to_notice' ); diff --git a/admin/layouts/joomla_plugin/details_left.php b/admin/layouts/joomla_plugin/code_left.php similarity index 93% rename from admin/layouts/joomla_plugin/details_left.php rename to admin/layouts/joomla_plugin/code_left.php index a1a01c5ee..0b949db63 100644 --- a/admin/layouts/joomla_plugin/details_left.php +++ b/admin/layouts/joomla_plugin/code_left.php @@ -27,6 +27,10 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1]; // get the fields $fields = $displayData->get($fields_tab_layout) ?: array( 'note_beta_stage', + 'name', + 'class_extends', + 'joomla_plugin_group', + 'add_head', 'note_plugin' ); diff --git a/admin/layouts/joomla_plugin/details_right.php b/admin/layouts/joomla_plugin/code_right.php similarity index 100% rename from admin/layouts/joomla_plugin/details_right.php rename to admin/layouts/joomla_plugin/code_right.php diff --git a/admin/layouts/server/linked_components_fullwidth.php b/admin/layouts/server/linked_components_fullwidth.php index 92b0fcb31..5cb30c3e3 100644 --- a/admin/layouts/server/linked_components_fullwidth.php +++ b/admin/layouts/server/linked_components_fullwidth.php @@ -13,7 +13,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vyclinked_components; +$items = $displayData->vydlinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; // set the edit URL diff --git a/admin/models/ajax.php b/admin/models/ajax.php index 2ef1d3184..68d1351af 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -255,7 +255,6 @@ class ComponentbuilderModelAjax extends JModelList return ComponentbuilderHelper::getClassCode($id, $type); } - public function getClassCodeIds($id, $type) { if ('property' === $type || 'method' === $type) @@ -268,6 +267,15 @@ class ComponentbuilderModelAjax extends JModelList } return false; } + + public function getClassHeaderCode($id, $type) + { + if ('extends' === $type && ($head = ComponentbuilderHelper::getVar('class_' . $type, $id, 'id', 'head')) !== false && ComponentbuilderHelper::checkString($head)) + { + return base64_decode($head); + } + return false; + } // Used in admin_view diff --git a/admin/models/field.php b/admin/models/field.php index 4ee506d06..26463a098 100644 --- a/admin/models/field.php +++ b/admin/models/field.php @@ -1007,7 +1007,7 @@ class ComponentbuilderModelField extends JModelAdmin } break; case 'type': - $property['value'] = ComponentbuilderHelper::safeString($property['value']); + $property['value'] = ComponentbuilderHelper::safeTypeName($property['value']); break; } // load the property diff --git a/admin/models/fields/joomlaplugins.php b/admin/models/fields/joomlaplugins.php index 09b7a41c9..7f626b7d5 100644 --- a/admin/models/fields/joomlaplugins.php +++ b/admin/models/fields/joomlaplugins.php @@ -40,12 +40,12 @@ class JFormFieldJoomlaplugins extends JFormFieldList // Get the databse object. $db = JFactory::getDBO(); $query = $db->getQuery(true); - $query->select($db->quoteName(array('a.id','a.name','b.name','c.name'),array('id','plugin_name','class_extends_name','joomla_plugin_group_name'))); + $query->select($db->quoteName(array('a.id','a.system_name','a.name','b.name','c.name'),array('id','plugin_system_name','name','class_extends_name','joomla_plugin_group_name'))); $query->from($db->quoteName('#__componentbuilder_joomla_plugin', 'a')); $query->join('LEFT', $db->quoteName('#__componentbuilder_class_extends', 'b') . ' ON (' . $db->quoteName('a.class_extends') . ' = ' . $db->quoteName('b.id') . ')'); $query->join('LEFT', $db->quoteName('#__componentbuilder_joomla_plugin_group', 'c') . ' ON (' . $db->quoteName('a.joomla_plugin_group') . ' = ' . $db->quoteName('c.id') . ')'); $query->where($db->quoteName('a.published') . ' >= 1'); - $query->order('a.name ASC'); + $query->order('a.system_name ASC'); // Implement View Level Access (if set in table) if (!$user->authorise('core.options', 'com_componentbuilder')) { @@ -65,8 +65,7 @@ class JFormFieldJoomlaplugins extends JFormFieldList foreach($items as $item) { // set a full class name - $select = 'class Plg' . ucfirst($item->joomla_plugin_group_name) . $item->plugin_name . ' extends ' . $item->class_extends_name; - $options[] = JHtml::_('select.option', $item->id, $select); + $options[] = JHtml::_('select.option', $item->id, '( ' . $item->plugin_system_name . ' ) class Plg' . ucfirst($item->joomla_plugin_group_name) . $item->name . ' extends ' . $item->class_extends_name); } } return $options; diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php index 04bfa9450..84ebe43eb 100644 --- a/admin/models/fieldtype.php +++ b/admin/models/fieldtype.php @@ -203,7 +203,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVxsfields() + public function getVxtfields() { // Get the user object. $user = JFactory::getUser(); @@ -285,13 +285,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationVxsfields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationVxtfields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationVxsfields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationVxtfields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationVxsfields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationVxtfields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationVxsfields($item->store, 'store'); + $item->store = $this->selectionTranslationVxtfields($item->store, 'store'); } } @@ -305,7 +305,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return translatable string */ - public function selectionTranslationVxsfields($value,$name) + public function selectionTranslationVxtfields($value,$name) { // Array of datatype language strings if ($name === 'datatype') diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js index 14d738498..f251d61ca 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -9,123 +9,123 @@ */ // Some Global Values -jform_vvvvvydvwd_required = false; -jform_vvvvvyevwe_required = false; -jform_vvvvvyivwf_required = false; -jform_vvvvvyivwg_required = false; -jform_vvvvvyivwh_required = false; -jform_vvvvvyivwi_required = false; -jform_vvvvvyivwj_required = false; -jform_vvvvvyivwk_required = false; -jform_vvvvvyivwl_required = false; +jform_vvvvvygvwe_required = false; +jform_vvvvvyhvwf_required = false; +jform_vvvvvylvwg_required = false; +jform_vvvvvylvwh_required = false; +jform_vvvvvylvwi_required = false; +jform_vvvvvylvwj_required = false; +jform_vvvvvylvwk_required = false; +jform_vvvvvylvwl_required = false; +jform_vvvvvylvwm_required = false; // Initial Script jQuery(document).ready(function() { - var add_css_view_vvvvvxd = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvvxd(add_css_view_vvvvvxd); + var add_css_view_vvvvvxg = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvvxg(add_css_view_vvvvvxg); - var add_css_views_vvvvvxe = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvvxe(add_css_views_vvvvvxe); + var add_css_views_vvvvvxh = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvvxh(add_css_views_vvvvvxh); - var add_javascript_view_file_vvvvvxf = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); - vvvvvxf(add_javascript_view_file_vvvvvxf); + var add_javascript_view_file_vvvvvxi = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); + vvvvvxi(add_javascript_view_file_vvvvvxi); - var add_javascript_views_file_vvvvvxg = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); - vvvvvxg(add_javascript_views_file_vvvvvxg); + var add_javascript_views_file_vvvvvxj = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); + vvvvvxj(add_javascript_views_file_vvvvvxj); - var add_javascript_view_footer_vvvvvxh = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvvxh(add_javascript_view_footer_vvvvvxh); + var add_javascript_view_footer_vvvvvxk = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvvxk(add_javascript_view_footer_vvvvvxk); - var add_javascript_views_footer_vvvvvxi = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvvxi(add_javascript_views_footer_vvvvvxi); + var add_javascript_views_footer_vvvvvxl = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvvxl(add_javascript_views_footer_vvvvvxl); - var add_php_ajax_vvvvvxj = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvxj(add_php_ajax_vvvvvxj); + var add_php_ajax_vvvvvxm = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvxm(add_php_ajax_vvvvvxm); - var add_php_getitem_vvvvvxk = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); - vvvvvxk(add_php_getitem_vvvvvxk); + var add_php_getitem_vvvvvxn = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); + vvvvvxn(add_php_getitem_vvvvvxn); - var add_php_getitems_vvvvvxl = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); - vvvvvxl(add_php_getitems_vvvvvxl); + var add_php_getitems_vvvvvxo = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); + vvvvvxo(add_php_getitems_vvvvvxo); - var add_php_getitems_after_all_vvvvvxm = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); - vvvvvxm(add_php_getitems_after_all_vvvvvxm); + var add_php_getitems_after_all_vvvvvxp = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); + vvvvvxp(add_php_getitems_after_all_vvvvvxp); - var add_php_getlistquery_vvvvvxn = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - vvvvvxn(add_php_getlistquery_vvvvvxn); + var add_php_getlistquery_vvvvvxq = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + vvvvvxq(add_php_getlistquery_vvvvvxq); - var add_php_getform_vvvvvxo = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); - vvvvvxo(add_php_getform_vvvvvxo); + var add_php_getform_vvvvvxr = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); + vvvvvxr(add_php_getform_vvvvvxr); - var add_php_before_save_vvvvvxp = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); - vvvvvxp(add_php_before_save_vvvvvxp); + var add_php_before_save_vvvvvxs = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvxs(add_php_before_save_vvvvvxs); - var add_php_save_vvvvvxq = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxq(add_php_save_vvvvvxq); + var add_php_save_vvvvvxt = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvxt(add_php_save_vvvvvxt); - var add_php_postsavehook_vvvvvxr = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxr(add_php_postsavehook_vvvvvxr); + var add_php_postsavehook_vvvvvxu = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvxu(add_php_postsavehook_vvvvvxu); - var add_php_allowadd_vvvvvxs = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val(); - vvvvvxs(add_php_allowadd_vvvvvxs); + var add_php_allowadd_vvvvvxv = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val(); + vvvvvxv(add_php_allowadd_vvvvvxv); - var add_php_allowedit_vvvvvxt = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxt(add_php_allowedit_vvvvvxt); + var add_php_allowedit_vvvvvxw = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvxw(add_php_allowedit_vvvvvxw); - var add_php_before_cancel_vvvvvxu = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val(); - vvvvvxu(add_php_before_cancel_vvvvvxu); + var add_php_before_cancel_vvvvvxx = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val(); + vvvvvxx(add_php_before_cancel_vvvvvxx); - var add_php_after_cancel_vvvvvxv = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val(); - vvvvvxv(add_php_after_cancel_vvvvvxv); + var add_php_after_cancel_vvvvvxy = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val(); + vvvvvxy(add_php_after_cancel_vvvvvxy); - var add_php_batchcopy_vvvvvxw = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxw(add_php_batchcopy_vvvvvxw); + var add_php_batchcopy_vvvvvxz = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvxz(add_php_batchcopy_vvvvvxz); - var add_php_batchmove_vvvvvxx = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvxx(add_php_batchmove_vvvvvxx); + var add_php_batchmove_vvvvvya = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvya(add_php_batchmove_vvvvvya); - var add_php_before_publish_vvvvvxy = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvxy(add_php_before_publish_vvvvvxy); + var add_php_before_publish_vvvvvyb = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvyb(add_php_before_publish_vvvvvyb); - var add_php_after_publish_vvvvvxz = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvxz(add_php_after_publish_vvvvvxz); + var add_php_after_publish_vvvvvyc = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvyc(add_php_after_publish_vvvvvyc); - var add_php_before_delete_vvvvvya = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvya(add_php_before_delete_vvvvvya); + var add_php_before_delete_vvvvvyd = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvyd(add_php_before_delete_vvvvvyd); - var add_php_after_delete_vvvvvyb = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvyb(add_php_after_delete_vvvvvyb); + var add_php_after_delete_vvvvvye = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvye(add_php_after_delete_vvvvvye); - var add_php_document_vvvvvyc = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvyc(add_php_document_vvvvvyc); + var add_php_document_vvvvvyf = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvyf(add_php_document_vvvvvyf); - var add_sql_vvvvvyd = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvyd(add_sql_vvvvvyd); - - var source_vvvvvye = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvye = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvye(source_vvvvvye,add_sql_vvvvvye); - - var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val(); var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg); + vvvvvyg(add_sql_vvvvvyg); - var add_custom_import_vvvvvyi = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvyi(add_custom_import_vvvvvyi); + var source_vvvvvyh = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvyh = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvyh(source_vvvvvyh,add_sql_vvvvvyh); - var add_custom_import_vvvvvyj = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvyj(add_custom_import_vvvvvyj); + var source_vvvvvyj = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvyj = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvyj(source_vvvvvyj,add_sql_vvvvvyj); - var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvyk(add_custom_button_vvvvvyk); + var add_custom_import_vvvvvyl = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvyl(add_custom_import_vvvvvyl); + + var add_custom_import_vvvvvym = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvym(add_custom_import_vvvvvym); + + var add_custom_button_vvvvvyn = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvyn(add_custom_button_vvvvvyn); }); -// the vvvvvxd function -function vvvvvxd(add_css_view_vvvvvxd) +// the vvvvvxg function +function vvvvvxg(add_css_view_vvvvvxg) { // set the function logic - if (add_css_view_vvvvvxd == 1) + if (add_css_view_vvvvvxg == 1) { jQuery('#jform_css_view-lbl').closest('.control-group').show(); } @@ -135,11 +135,11 @@ function vvvvvxd(add_css_view_vvvvvxd) } } -// the vvvvvxe function -function vvvvvxe(add_css_views_vvvvvxe) +// the vvvvvxh function +function vvvvvxh(add_css_views_vvvvvxh) { // set the function logic - if (add_css_views_vvvvvxe == 1) + if (add_css_views_vvvvvxh == 1) { jQuery('#jform_css_views-lbl').closest('.control-group').show(); } @@ -149,11 +149,11 @@ function vvvvvxe(add_css_views_vvvvvxe) } } -// the vvvvvxf function -function vvvvvxf(add_javascript_view_file_vvvvvxf) +// the vvvvvxi function +function vvvvvxi(add_javascript_view_file_vvvvvxi) { // set the function logic - if (add_javascript_view_file_vvvvvxf == 1) + if (add_javascript_view_file_vvvvvxi == 1) { jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show(); } @@ -163,11 +163,11 @@ function vvvvvxf(add_javascript_view_file_vvvvvxf) } } -// the vvvvvxg function -function vvvvvxg(add_javascript_views_file_vvvvvxg) +// the vvvvvxj function +function vvvvvxj(add_javascript_views_file_vvvvvxj) { // set the function logic - if (add_javascript_views_file_vvvvvxg == 1) + if (add_javascript_views_file_vvvvvxj == 1) { jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show(); } @@ -177,11 +177,11 @@ function vvvvvxg(add_javascript_views_file_vvvvvxg) } } -// the vvvvvxh function -function vvvvvxh(add_javascript_view_footer_vvvvvxh) +// the vvvvvxk function +function vvvvvxk(add_javascript_view_footer_vvvvvxk) { // set the function logic - if (add_javascript_view_footer_vvvvvxh == 1) + if (add_javascript_view_footer_vvvvvxk == 1) { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); } @@ -191,11 +191,11 @@ function vvvvvxh(add_javascript_view_footer_vvvvvxh) } } -// the vvvvvxi function -function vvvvvxi(add_javascript_views_footer_vvvvvxi) +// the vvvvvxl function +function vvvvvxl(add_javascript_views_footer_vvvvvxl) { // set the function logic - if (add_javascript_views_footer_vvvvvxi == 1) + if (add_javascript_views_footer_vvvvvxl == 1) { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); } @@ -205,11 +205,11 @@ function vvvvvxi(add_javascript_views_footer_vvvvvxi) } } -// the vvvvvxj function -function vvvvvxj(add_php_ajax_vvvvvxj) +// the vvvvvxm function +function vvvvvxm(add_php_ajax_vvvvvxm) { // set the function logic - if (add_php_ajax_vvvvvxj == 1) + if (add_php_ajax_vvvvvxm == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); @@ -221,11 +221,11 @@ function vvvvvxj(add_php_ajax_vvvvvxj) } } -// the vvvvvxk function -function vvvvvxk(add_php_getitem_vvvvvxk) +// the vvvvvxn function +function vvvvvxn(add_php_getitem_vvvvvxn) { // set the function logic - if (add_php_getitem_vvvvvxk == 1) + if (add_php_getitem_vvvvvxn == 1) { jQuery('#jform_php_getitem-lbl').closest('.control-group').show(); } @@ -235,11 +235,11 @@ function vvvvvxk(add_php_getitem_vvvvvxk) } } -// the vvvvvxl function -function vvvvvxl(add_php_getitems_vvvvvxl) +// the vvvvvxo function +function vvvvvxo(add_php_getitems_vvvvvxo) { // set the function logic - if (add_php_getitems_vvvvvxl == 1) + if (add_php_getitems_vvvvvxo == 1) { jQuery('#jform_php_getitems-lbl').closest('.control-group').show(); } @@ -249,11 +249,11 @@ function vvvvvxl(add_php_getitems_vvvvvxl) } } -// the vvvvvxm function -function vvvvvxm(add_php_getitems_after_all_vvvvvxm) +// the vvvvvxp function +function vvvvvxp(add_php_getitems_after_all_vvvvvxp) { // set the function logic - if (add_php_getitems_after_all_vvvvvxm == 1) + if (add_php_getitems_after_all_vvvvvxp == 1) { jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show(); } @@ -263,11 +263,11 @@ function vvvvvxm(add_php_getitems_after_all_vvvvvxm) } } -// the vvvvvxn function -function vvvvvxn(add_php_getlistquery_vvvvvxn) +// the vvvvvxq function +function vvvvvxq(add_php_getlistquery_vvvvvxq) { // set the function logic - if (add_php_getlistquery_vvvvvxn == 1) + if (add_php_getlistquery_vvvvvxq == 1) { jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); } @@ -277,11 +277,11 @@ function vvvvvxn(add_php_getlistquery_vvvvvxn) } } -// the vvvvvxo function -function vvvvvxo(add_php_getform_vvvvvxo) +// the vvvvvxr function +function vvvvvxr(add_php_getform_vvvvvxr) { // set the function logic - if (add_php_getform_vvvvvxo == 1) + if (add_php_getform_vvvvvxr == 1) { jQuery('#jform_php_getform-lbl').closest('.control-group').show(); } @@ -291,11 +291,11 @@ function vvvvvxo(add_php_getform_vvvvvxo) } } -// the vvvvvxp function -function vvvvvxp(add_php_before_save_vvvvvxp) +// the vvvvvxs function +function vvvvvxs(add_php_before_save_vvvvvxs) { // set the function logic - if (add_php_before_save_vvvvvxp == 1) + if (add_php_before_save_vvvvvxs == 1) { jQuery('#jform_php_before_save-lbl').closest('.control-group').show(); } @@ -305,11 +305,11 @@ function vvvvvxp(add_php_before_save_vvvvvxp) } } -// the vvvvvxq function -function vvvvvxq(add_php_save_vvvvvxq) +// the vvvvvxt function +function vvvvvxt(add_php_save_vvvvvxt) { // set the function logic - if (add_php_save_vvvvvxq == 1) + if (add_php_save_vvvvvxt == 1) { jQuery('#jform_php_save-lbl').closest('.control-group').show(); } @@ -319,11 +319,11 @@ function vvvvvxq(add_php_save_vvvvvxq) } } -// the vvvvvxr function -function vvvvvxr(add_php_postsavehook_vvvvvxr) +// the vvvvvxu function +function vvvvvxu(add_php_postsavehook_vvvvvxu) { // set the function logic - if (add_php_postsavehook_vvvvvxr == 1) + if (add_php_postsavehook_vvvvvxu == 1) { jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show(); } @@ -333,11 +333,11 @@ function vvvvvxr(add_php_postsavehook_vvvvvxr) } } -// the vvvvvxs function -function vvvvvxs(add_php_allowadd_vvvvvxs) +// the vvvvvxv function +function vvvvvxv(add_php_allowadd_vvvvvxv) { // set the function logic - if (add_php_allowadd_vvvvvxs == 1) + if (add_php_allowadd_vvvvvxv == 1) { jQuery('#jform_php_allowadd-lbl').closest('.control-group').show(); } @@ -347,11 +347,11 @@ function vvvvvxs(add_php_allowadd_vvvvvxs) } } -// the vvvvvxt function -function vvvvvxt(add_php_allowedit_vvvvvxt) +// the vvvvvxw function +function vvvvvxw(add_php_allowedit_vvvvvxw) { // set the function logic - if (add_php_allowedit_vvvvvxt == 1) + if (add_php_allowedit_vvvvvxw == 1) { jQuery('#jform_php_allowedit-lbl').closest('.control-group').show(); } @@ -361,11 +361,11 @@ function vvvvvxt(add_php_allowedit_vvvvvxt) } } -// the vvvvvxu function -function vvvvvxu(add_php_before_cancel_vvvvvxu) +// the vvvvvxx function +function vvvvvxx(add_php_before_cancel_vvvvvxx) { // set the function logic - if (add_php_before_cancel_vvvvvxu == 1) + if (add_php_before_cancel_vvvvvxx == 1) { jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show(); } @@ -375,11 +375,11 @@ function vvvvvxu(add_php_before_cancel_vvvvvxu) } } -// the vvvvvxv function -function vvvvvxv(add_php_after_cancel_vvvvvxv) +// the vvvvvxy function +function vvvvvxy(add_php_after_cancel_vvvvvxy) { // set the function logic - if (add_php_after_cancel_vvvvvxv == 1) + if (add_php_after_cancel_vvvvvxy == 1) { jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show(); } @@ -389,11 +389,11 @@ function vvvvvxv(add_php_after_cancel_vvvvvxv) } } -// the vvvvvxw function -function vvvvvxw(add_php_batchcopy_vvvvvxw) +// the vvvvvxz function +function vvvvvxz(add_php_batchcopy_vvvvvxz) { // set the function logic - if (add_php_batchcopy_vvvvvxw == 1) + if (add_php_batchcopy_vvvvvxz == 1) { jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show(); } @@ -403,11 +403,11 @@ function vvvvvxw(add_php_batchcopy_vvvvvxw) } } -// the vvvvvxx function -function vvvvvxx(add_php_batchmove_vvvvvxx) +// the vvvvvya function +function vvvvvya(add_php_batchmove_vvvvvya) { // set the function logic - if (add_php_batchmove_vvvvvxx == 1) + if (add_php_batchmove_vvvvvya == 1) { jQuery('#jform_php_batchmove-lbl').closest('.control-group').show(); } @@ -417,11 +417,11 @@ function vvvvvxx(add_php_batchmove_vvvvvxx) } } -// the vvvvvxy function -function vvvvvxy(add_php_before_publish_vvvvvxy) +// the vvvvvyb function +function vvvvvyb(add_php_before_publish_vvvvvyb) { // set the function logic - if (add_php_before_publish_vvvvvxy == 1) + if (add_php_before_publish_vvvvvyb == 1) { jQuery('#jform_php_before_publish-lbl').closest('.control-group').show(); } @@ -431,11 +431,11 @@ function vvvvvxy(add_php_before_publish_vvvvvxy) } } -// the vvvvvxz function -function vvvvvxz(add_php_after_publish_vvvvvxz) +// the vvvvvyc function +function vvvvvyc(add_php_after_publish_vvvvvyc) { // set the function logic - if (add_php_after_publish_vvvvvxz == 1) + if (add_php_after_publish_vvvvvyc == 1) { jQuery('#jform_php_after_publish-lbl').closest('.control-group').show(); } @@ -445,11 +445,11 @@ function vvvvvxz(add_php_after_publish_vvvvvxz) } } -// the vvvvvya function -function vvvvvya(add_php_before_delete_vvvvvya) +// the vvvvvyd function +function vvvvvyd(add_php_before_delete_vvvvvyd) { // set the function logic - if (add_php_before_delete_vvvvvya == 1) + if (add_php_before_delete_vvvvvyd == 1) { jQuery('#jform_php_before_delete-lbl').closest('.control-group').show(); } @@ -459,11 +459,11 @@ function vvvvvya(add_php_before_delete_vvvvvya) } } -// the vvvvvyb function -function vvvvvyb(add_php_after_delete_vvvvvyb) +// the vvvvvye function +function vvvvvye(add_php_after_delete_vvvvvye) { // set the function logic - if (add_php_after_delete_vvvvvyb == 1) + if (add_php_after_delete_vvvvvye == 1) { jQuery('#jform_php_after_delete-lbl').closest('.control-group').show(); } @@ -473,11 +473,11 @@ function vvvvvyb(add_php_after_delete_vvvvvyb) } } -// the vvvvvyc function -function vvvvvyc(add_php_document_vvvvvyc) +// the vvvvvyf function +function vvvvvyf(add_php_document_vvvvvyf) { // set the function logic - if (add_php_document_vvvvvyc == 1) + if (add_php_document_vvvvvyf == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); } @@ -487,75 +487,75 @@ function vvvvvyc(add_php_document_vvvvvyc) } } -// the vvvvvyd function -function vvvvvyd(add_sql_vvvvvyd) +// the vvvvvyg function +function vvvvvyg(add_sql_vvvvvyg) { // set the function logic - if (add_sql_vvvvvyd == 1) + if (add_sql_vvvvvyg == 1) { jQuery('#jform_source').closest('.control-group').show(); // add required attribute to source field - if (jform_vvvvvydvwd_required) + if (jform_vvvvvygvwe_required) { updateFieldRequired('source',0); jQuery('#jform_source').prop('required','required'); jQuery('#jform_source').attr('aria-required',true); jQuery('#jform_source').addClass('required'); - jform_vvvvvydvwd_required = false; + jform_vvvvvygvwe_required = false; } } else { jQuery('#jform_source').closest('.control-group').hide(); // remove required attribute from source field - if (!jform_vvvvvydvwd_required) + if (!jform_vvvvvygvwe_required) { updateFieldRequired('source',1); jQuery('#jform_source').removeAttr('required'); jQuery('#jform_source').removeAttr('aria-required'); jQuery('#jform_source').removeClass('required'); - jform_vvvvvydvwd_required = true; + jform_vvvvvygvwe_required = true; } } } -// the vvvvvye function -function vvvvvye(source_vvvvvye,add_sql_vvvvvye) +// the vvvvvyh function +function vvvvvyh(source_vvvvvyh,add_sql_vvvvvyh) { // set the function logic - if (source_vvvvvye == 2 && add_sql_vvvvvye == 1) + if (source_vvvvvyh == 2 && add_sql_vvvvvyh == 1) { jQuery('#jform_sql').closest('.control-group').show(); // add required attribute to sql field - if (jform_vvvvvyevwe_required) + if (jform_vvvvvyhvwf_required) { updateFieldRequired('sql',0); jQuery('#jform_sql').prop('required','required'); jQuery('#jform_sql').attr('aria-required',true); jQuery('#jform_sql').addClass('required'); - jform_vvvvvyevwe_required = false; + jform_vvvvvyhvwf_required = false; } } else { jQuery('#jform_sql').closest('.control-group').hide(); // remove required attribute from sql field - if (!jform_vvvvvyevwe_required) + if (!jform_vvvvvyhvwf_required) { updateFieldRequired('sql',1); jQuery('#jform_sql').removeAttr('required'); jQuery('#jform_sql').removeAttr('aria-required'); jQuery('#jform_sql').removeClass('required'); - jform_vvvvvyevwe_required = true; + jform_vvvvvyhvwf_required = true; } } } -// the vvvvvyg function -function vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg) +// the vvvvvyj function +function vvvvvyj(source_vvvvvyj,add_sql_vvvvvyj) { // set the function logic - if (source_vvvvvyg == 1 && add_sql_vvvvvyg == 1) + if (source_vvvvvyj == 1 && add_sql_vvvvvyj == 1) { jQuery('#jform_addtables-lbl').closest('.control-group').show(); } @@ -565,165 +565,165 @@ function vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg) } } -// the vvvvvyi function -function vvvvvyi(add_custom_import_vvvvvyi) +// the vvvvvyl function +function vvvvvyl(add_custom_import_vvvvvyl) { // set the function logic - if (add_custom_import_vvvvvyi == 1) + if (add_custom_import_vvvvvyl == 1) { jQuery('#jform_html_import_view').closest('.control-group').show(); // add required attribute to html_import_view field - if (jform_vvvvvyivwf_required) + if (jform_vvvvvylvwg_required) { updateFieldRequired('html_import_view',0); jQuery('#jform_html_import_view').prop('required','required'); jQuery('#jform_html_import_view').attr('aria-required',true); jQuery('#jform_html_import_view').addClass('required'); - jform_vvvvvyivwf_required = false; + jform_vvvvvylvwg_required = false; } jQuery('.note_advanced_import').closest('.control-group').show(); jQuery('#jform_php_import_display').closest('.control-group').show(); // add required attribute to php_import_display field - if (jform_vvvvvyivwg_required) + if (jform_vvvvvylvwh_required) { updateFieldRequired('php_import_display',0); jQuery('#jform_php_import_display').prop('required','required'); jQuery('#jform_php_import_display').attr('aria-required',true); jQuery('#jform_php_import_display').addClass('required'); - jform_vvvvvyivwg_required = false; + jform_vvvvvylvwh_required = false; } jQuery('#jform_php_import_ext').closest('.control-group').show(); // add required attribute to php_import_ext field - if (jform_vvvvvyivwh_required) + if (jform_vvvvvylvwi_required) { updateFieldRequired('php_import_ext',0); jQuery('#jform_php_import_ext').prop('required','required'); jQuery('#jform_php_import_ext').attr('aria-required',true); jQuery('#jform_php_import_ext').addClass('required'); - jform_vvvvvyivwh_required = false; + jform_vvvvvylvwi_required = false; } jQuery('#jform_php_import_headers').closest('.control-group').show(); // add required attribute to php_import_headers field - if (jform_vvvvvyivwi_required) + if (jform_vvvvvylvwj_required) { updateFieldRequired('php_import_headers',0); jQuery('#jform_php_import_headers').prop('required','required'); jQuery('#jform_php_import_headers').attr('aria-required',true); jQuery('#jform_php_import_headers').addClass('required'); - jform_vvvvvyivwi_required = false; + jform_vvvvvylvwj_required = false; } jQuery('#jform_php_import').closest('.control-group').show(); // add required attribute to php_import field - if (jform_vvvvvyivwj_required) + if (jform_vvvvvylvwk_required) { updateFieldRequired('php_import',0); jQuery('#jform_php_import').prop('required','required'); jQuery('#jform_php_import').attr('aria-required',true); jQuery('#jform_php_import').addClass('required'); - jform_vvvvvyivwj_required = false; + jform_vvvvvylvwk_required = false; } jQuery('#jform_php_import_save').closest('.control-group').show(); // add required attribute to php_import_save field - if (jform_vvvvvyivwk_required) + if (jform_vvvvvylvwl_required) { updateFieldRequired('php_import_save',0); jQuery('#jform_php_import_save').prop('required','required'); jQuery('#jform_php_import_save').attr('aria-required',true); jQuery('#jform_php_import_save').addClass('required'); - jform_vvvvvyivwk_required = false; + jform_vvvvvylvwl_required = false; } jQuery('#jform_php_import_setdata').closest('.control-group').show(); // add required attribute to php_import_setdata field - if (jform_vvvvvyivwl_required) + if (jform_vvvvvylvwm_required) { updateFieldRequired('php_import_setdata',0); jQuery('#jform_php_import_setdata').prop('required','required'); jQuery('#jform_php_import_setdata').attr('aria-required',true); jQuery('#jform_php_import_setdata').addClass('required'); - jform_vvvvvyivwl_required = false; + jform_vvvvvylvwm_required = false; } } else { jQuery('#jform_html_import_view').closest('.control-group').hide(); // remove required attribute from html_import_view field - if (!jform_vvvvvyivwf_required) + if (!jform_vvvvvylvwg_required) { updateFieldRequired('html_import_view',1); jQuery('#jform_html_import_view').removeAttr('required'); jQuery('#jform_html_import_view').removeAttr('aria-required'); jQuery('#jform_html_import_view').removeClass('required'); - jform_vvvvvyivwf_required = true; + jform_vvvvvylvwg_required = true; } jQuery('.note_advanced_import').closest('.control-group').hide(); jQuery('#jform_php_import_display').closest('.control-group').hide(); // remove required attribute from php_import_display field - if (!jform_vvvvvyivwg_required) + if (!jform_vvvvvylvwh_required) { updateFieldRequired('php_import_display',1); jQuery('#jform_php_import_display').removeAttr('required'); jQuery('#jform_php_import_display').removeAttr('aria-required'); jQuery('#jform_php_import_display').removeClass('required'); - jform_vvvvvyivwg_required = true; + jform_vvvvvylvwh_required = true; } jQuery('#jform_php_import_ext').closest('.control-group').hide(); // remove required attribute from php_import_ext field - if (!jform_vvvvvyivwh_required) + if (!jform_vvvvvylvwi_required) { updateFieldRequired('php_import_ext',1); jQuery('#jform_php_import_ext').removeAttr('required'); jQuery('#jform_php_import_ext').removeAttr('aria-required'); jQuery('#jform_php_import_ext').removeClass('required'); - jform_vvvvvyivwh_required = true; + jform_vvvvvylvwi_required = true; } jQuery('#jform_php_import_headers').closest('.control-group').hide(); // remove required attribute from php_import_headers field - if (!jform_vvvvvyivwi_required) + if (!jform_vvvvvylvwj_required) { updateFieldRequired('php_import_headers',1); jQuery('#jform_php_import_headers').removeAttr('required'); jQuery('#jform_php_import_headers').removeAttr('aria-required'); jQuery('#jform_php_import_headers').removeClass('required'); - jform_vvvvvyivwi_required = true; + jform_vvvvvylvwj_required = true; } jQuery('#jform_php_import').closest('.control-group').hide(); // remove required attribute from php_import field - if (!jform_vvvvvyivwj_required) + if (!jform_vvvvvylvwk_required) { updateFieldRequired('php_import',1); jQuery('#jform_php_import').removeAttr('required'); jQuery('#jform_php_import').removeAttr('aria-required'); jQuery('#jform_php_import').removeClass('required'); - jform_vvvvvyivwj_required = true; + jform_vvvvvylvwk_required = true; } jQuery('#jform_php_import_save').closest('.control-group').hide(); // remove required attribute from php_import_save field - if (!jform_vvvvvyivwk_required) + if (!jform_vvvvvylvwl_required) { updateFieldRequired('php_import_save',1); jQuery('#jform_php_import_save').removeAttr('required'); jQuery('#jform_php_import_save').removeAttr('aria-required'); jQuery('#jform_php_import_save').removeClass('required'); - jform_vvvvvyivwk_required = true; + jform_vvvvvylvwl_required = true; } jQuery('#jform_php_import_setdata').closest('.control-group').hide(); // remove required attribute from php_import_setdata field - if (!jform_vvvvvyivwl_required) + if (!jform_vvvvvylvwm_required) { updateFieldRequired('php_import_setdata',1); jQuery('#jform_php_import_setdata').removeAttr('required'); jQuery('#jform_php_import_setdata').removeAttr('aria-required'); jQuery('#jform_php_import_setdata').removeClass('required'); - jform_vvvvvyivwl_required = true; + jform_vvvvvylvwm_required = true; } } } -// the vvvvvyj function -function vvvvvyj(add_custom_import_vvvvvyj) +// the vvvvvym function +function vvvvvym(add_custom_import_vvvvvym) { // set the function logic - if (add_custom_import_vvvvvyj == 0) + if (add_custom_import_vvvvvym == 0) { jQuery('.note_beginner_import').closest('.control-group').show(); } @@ -733,11 +733,11 @@ function vvvvvyj(add_custom_import_vvvvvyj) } } -// the vvvvvyk function -function vvvvvyk(add_custom_button_vvvvvyk) +// the vvvvvyn function +function vvvvvyn(add_custom_button_vvvvvyn) { // set the function logic - if (add_custom_button_vvvvvyk == 1) + if (add_custom_button_vvvvvyn == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); diff --git a/admin/models/forms/class_extends.xml b/admin/models/forms/class_extends.xml index 7f418a370..7fa36c691 100644 --- a/admin/models/forms/class_extends.xml +++ b/admin/models/forms/class_extends.xml @@ -127,9 +127,9 @@ label="COM_COMPONENTBUILDER_CLASS_EXTENDS_HEAD_LABEL" description="COM_COMPONENTBUILDER_CLASS_EXTENDS_HEAD_DESCRIPTION" width="100%" - height="450px" + height="100px" cols="15" - rows="30" + rows="10" buttons="no" syntax="php" editor="codemirror|none" diff --git a/admin/models/forms/class_method.js b/admin/models/forms/class_method.js index 3c23c163e..93c07c6a6 100644 --- a/admin/models/forms/class_method.js +++ b/admin/models/forms/class_method.js @@ -9,29 +9,29 @@ */ // Some Global Values -jform_vvvvwaovxe_required = false; +jform_vvvvwarvxf_required = false; // Initial Script jQuery(document).ready(function() { - var extension_type_vvvvwao = jQuery("#jform_extension_type").val(); - vvvvwao(extension_type_vvvvwao); + var extension_type_vvvvwar = jQuery("#jform_extension_type").val(); + vvvvwar(extension_type_vvvvwar); }); -// the vvvvwao function -function vvvvwao(extension_type_vvvvwao) +// the vvvvwar function +function vvvvwar(extension_type_vvvvwar) { - if (isSet(extension_type_vvvvwao) && extension_type_vvvvwao.constructor !== Array) + if (isSet(extension_type_vvvvwar) && extension_type_vvvvwar.constructor !== Array) { - var temp_vvvvwao = extension_type_vvvvwao; - var extension_type_vvvvwao = []; - extension_type_vvvvwao.push(temp_vvvvwao); + var temp_vvvvwar = extension_type_vvvvwar; + var extension_type_vvvvwar = []; + extension_type_vvvvwar.push(temp_vvvvwar); } - else if (!isSet(extension_type_vvvvwao)) + else if (!isSet(extension_type_vvvvwar)) { - var extension_type_vvvvwao = []; + var extension_type_vvvvwar = []; } - var extension_type = extension_type_vvvvwao.some(extension_type_vvvvwao_SomeFunc); + var extension_type = extension_type_vvvvwar.some(extension_type_vvvvwar_SomeFunc); // set this function logic @@ -39,35 +39,35 @@ function vvvvwao(extension_type_vvvvwao) { jQuery('#jform_joomla_plugin_group').closest('.control-group').show(); // add required attribute to joomla_plugin_group field - if (jform_vvvvwaovxe_required) + if (jform_vvvvwarvxf_required) { updateFieldRequired('joomla_plugin_group',0); jQuery('#jform_joomla_plugin_group').prop('required','required'); jQuery('#jform_joomla_plugin_group').attr('aria-required',true); jQuery('#jform_joomla_plugin_group').addClass('required'); - jform_vvvvwaovxe_required = false; + jform_vvvvwarvxf_required = false; } } else { jQuery('#jform_joomla_plugin_group').closest('.control-group').hide(); // remove required attribute from joomla_plugin_group field - if (!jform_vvvvwaovxe_required) + if (!jform_vvvvwarvxf_required) { updateFieldRequired('joomla_plugin_group',1); jQuery('#jform_joomla_plugin_group').removeAttr('required'); jQuery('#jform_joomla_plugin_group').removeAttr('aria-required'); jQuery('#jform_joomla_plugin_group').removeClass('required'); - jform_vvvvwaovxe_required = true; + jform_vvvvwarvxf_required = true; } } } -// the vvvvwao Some function -function extension_type_vvvvwao_SomeFunc(extension_type_vvvvwao) +// the vvvvwar Some function +function extension_type_vvvvwar_SomeFunc(extension_type_vvvvwar) { // set the function logic - if (extension_type_vvvvwao == 'plugins' || extension_type_vvvvwao == 'plugin') + if (extension_type_vvvvwar == 'plugins' || extension_type_vvvvwar == 'plugin') { return true; } diff --git a/admin/models/forms/class_property.js b/admin/models/forms/class_property.js index b3f18db20..71cc40a9b 100644 --- a/admin/models/forms/class_property.js +++ b/admin/models/forms/class_property.js @@ -9,29 +9,29 @@ */ // Some Global Values -jform_vvvvwanvxd_required = false; +jform_vvvvwaqvxe_required = false; // Initial Script jQuery(document).ready(function() { - var extension_type_vvvvwan = jQuery("#jform_extension_type").val(); - vvvvwan(extension_type_vvvvwan); + var extension_type_vvvvwaq = jQuery("#jform_extension_type").val(); + vvvvwaq(extension_type_vvvvwaq); }); -// the vvvvwan function -function vvvvwan(extension_type_vvvvwan) +// the vvvvwaq function +function vvvvwaq(extension_type_vvvvwaq) { - if (isSet(extension_type_vvvvwan) && extension_type_vvvvwan.constructor !== Array) + if (isSet(extension_type_vvvvwaq) && extension_type_vvvvwaq.constructor !== Array) { - var temp_vvvvwan = extension_type_vvvvwan; - var extension_type_vvvvwan = []; - extension_type_vvvvwan.push(temp_vvvvwan); + var temp_vvvvwaq = extension_type_vvvvwaq; + var extension_type_vvvvwaq = []; + extension_type_vvvvwaq.push(temp_vvvvwaq); } - else if (!isSet(extension_type_vvvvwan)) + else if (!isSet(extension_type_vvvvwaq)) { - var extension_type_vvvvwan = []; + var extension_type_vvvvwaq = []; } - var extension_type = extension_type_vvvvwan.some(extension_type_vvvvwan_SomeFunc); + var extension_type = extension_type_vvvvwaq.some(extension_type_vvvvwaq_SomeFunc); // set this function logic @@ -39,35 +39,35 @@ function vvvvwan(extension_type_vvvvwan) { jQuery('#jform_joomla_plugin_group').closest('.control-group').show(); // add required attribute to joomla_plugin_group field - if (jform_vvvvwanvxd_required) + if (jform_vvvvwaqvxe_required) { updateFieldRequired('joomla_plugin_group',0); jQuery('#jform_joomla_plugin_group').prop('required','required'); jQuery('#jform_joomla_plugin_group').attr('aria-required',true); jQuery('#jform_joomla_plugin_group').addClass('required'); - jform_vvvvwanvxd_required = false; + jform_vvvvwaqvxe_required = false; } } else { jQuery('#jform_joomla_plugin_group').closest('.control-group').hide(); // remove required attribute from joomla_plugin_group field - if (!jform_vvvvwanvxd_required) + if (!jform_vvvvwaqvxe_required) { updateFieldRequired('joomla_plugin_group',1); jQuery('#jform_joomla_plugin_group').removeAttr('required'); jQuery('#jform_joomla_plugin_group').removeAttr('aria-required'); jQuery('#jform_joomla_plugin_group').removeClass('required'); - jform_vvvvwanvxd_required = true; + jform_vvvvwaqvxe_required = true; } } } -// the vvvvwan Some function -function extension_type_vvvvwan_SomeFunc(extension_type_vvvvwan) +// the vvvvwaq Some function +function extension_type_vvvvwaq_SomeFunc(extension_type_vvvvwaq) { // set the function logic - if (extension_type_vvvvwan == 'plugins' || extension_type_vvvvwan == 'plugin') + if (extension_type_vvvvwaq == 'plugins' || extension_type_vvvvwaq == 'plugin') { return true; } diff --git a/admin/models/forms/custom_admin_view.js b/admin/models/forms/custom_admin_view.js index e457b475f..ca422ca4e 100644 --- a/admin/models/forms/custom_admin_view.js +++ b/admin/models/forms/custom_admin_view.js @@ -11,42 +11,42 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvyl = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvyl(add_php_view_vvvvvyl); + var add_php_view_vvvvvyo = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvvyo(add_php_view_vvvvvyo); - var add_php_jview_display_vvvvvym = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); - vvvvvym(add_php_jview_display_vvvvvym); + var add_php_jview_display_vvvvvyp = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); + vvvvvyp(add_php_jview_display_vvvvvyp); - var add_php_jview_vvvvvyn = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); - vvvvvyn(add_php_jview_vvvvvyn); + var add_php_jview_vvvvvyq = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); + vvvvvyq(add_php_jview_vvvvvyq); - var add_php_document_vvvvvyo = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvyo(add_php_document_vvvvvyo); + var add_php_document_vvvvvyr = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvyr(add_php_document_vvvvvyr); - var add_css_document_vvvvvyp = jQuery("#jform_add_css_document input[type='radio']:checked").val(); - vvvvvyp(add_css_document_vvvvvyp); + var add_css_document_vvvvvys = jQuery("#jform_add_css_document input[type='radio']:checked").val(); + vvvvvys(add_css_document_vvvvvys); - var add_javascript_file_vvvvvyq = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); - vvvvvyq(add_javascript_file_vvvvvyq); + var add_javascript_file_vvvvvyt = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); + vvvvvyt(add_javascript_file_vvvvvyt); - var add_js_document_vvvvvyr = jQuery("#jform_add_js_document input[type='radio']:checked").val(); - vvvvvyr(add_js_document_vvvvvyr); + var add_js_document_vvvvvyu = jQuery("#jform_add_js_document input[type='radio']:checked").val(); + vvvvvyu(add_js_document_vvvvvyu); - var add_custom_button_vvvvvys = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvys(add_custom_button_vvvvvys); + var add_custom_button_vvvvvyv = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvyv(add_custom_button_vvvvvyv); - var add_css_vvvvvyt = jQuery("#jform_add_css input[type='radio']:checked").val(); - vvvvvyt(add_css_vvvvvyt); + var add_css_vvvvvyw = jQuery("#jform_add_css input[type='radio']:checked").val(); + vvvvvyw(add_css_vvvvvyw); - var add_php_ajax_vvvvvyu = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvyu(add_php_ajax_vvvvvyu); + var add_php_ajax_vvvvvyx = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvyx(add_php_ajax_vvvvvyx); }); -// the vvvvvyl function -function vvvvvyl(add_php_view_vvvvvyl) +// the vvvvvyo function +function vvvvvyo(add_php_view_vvvvvyo) { // set the function logic - if (add_php_view_vvvvvyl == 1) + if (add_php_view_vvvvvyo == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } @@ -56,11 +56,11 @@ function vvvvvyl(add_php_view_vvvvvyl) } } -// the vvvvvym function -function vvvvvym(add_php_jview_display_vvvvvym) +// the vvvvvyp function +function vvvvvyp(add_php_jview_display_vvvvvyp) { // set the function logic - if (add_php_jview_display_vvvvvym == 1) + if (add_php_jview_display_vvvvvyp == 1) { jQuery('#jform_php_jview_display-lbl').closest('.control-group').show(); } @@ -70,11 +70,11 @@ function vvvvvym(add_php_jview_display_vvvvvym) } } -// the vvvvvyn function -function vvvvvyn(add_php_jview_vvvvvyn) +// the vvvvvyq function +function vvvvvyq(add_php_jview_vvvvvyq) { // set the function logic - if (add_php_jview_vvvvvyn == 1) + if (add_php_jview_vvvvvyq == 1) { jQuery('#jform_php_jview-lbl').closest('.control-group').show(); } @@ -84,11 +84,11 @@ function vvvvvyn(add_php_jview_vvvvvyn) } } -// the vvvvvyo function -function vvvvvyo(add_php_document_vvvvvyo) +// the vvvvvyr function +function vvvvvyr(add_php_document_vvvvvyr) { // set the function logic - if (add_php_document_vvvvvyo == 1) + if (add_php_document_vvvvvyr == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); } @@ -98,11 +98,11 @@ function vvvvvyo(add_php_document_vvvvvyo) } } -// the vvvvvyp function -function vvvvvyp(add_css_document_vvvvvyp) +// the vvvvvys function +function vvvvvys(add_css_document_vvvvvys) { // set the function logic - if (add_css_document_vvvvvyp == 1) + if (add_css_document_vvvvvys == 1) { jQuery('#jform_css_document-lbl').closest('.control-group').show(); } @@ -112,11 +112,11 @@ function vvvvvyp(add_css_document_vvvvvyp) } } -// the vvvvvyq function -function vvvvvyq(add_javascript_file_vvvvvyq) +// the vvvvvyt function +function vvvvvyt(add_javascript_file_vvvvvyt) { // set the function logic - if (add_javascript_file_vvvvvyq == 1) + if (add_javascript_file_vvvvvyt == 1) { jQuery('#jform_javascript_file-lbl').closest('.control-group').show(); } @@ -126,11 +126,11 @@ function vvvvvyq(add_javascript_file_vvvvvyq) } } -// the vvvvvyr function -function vvvvvyr(add_js_document_vvvvvyr) +// the vvvvvyu function +function vvvvvyu(add_js_document_vvvvvyu) { // set the function logic - if (add_js_document_vvvvvyr == 1) + if (add_js_document_vvvvvyu == 1) { jQuery('#jform_js_document-lbl').closest('.control-group').show(); } @@ -140,11 +140,11 @@ function vvvvvyr(add_js_document_vvvvvyr) } } -// the vvvvvys function -function vvvvvys(add_custom_button_vvvvvys) +// the vvvvvyv function +function vvvvvyv(add_custom_button_vvvvvyv) { // set the function logic - if (add_custom_button_vvvvvys == 1) + if (add_custom_button_vvvvvyv == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); @@ -158,11 +158,11 @@ function vvvvvys(add_custom_button_vvvvvys) } } -// the vvvvvyt function -function vvvvvyt(add_css_vvvvvyt) +// the vvvvvyw function +function vvvvvyw(add_css_vvvvvyw) { // set the function logic - if (add_css_vvvvvyt == 1) + if (add_css_vvvvvyw == 1) { jQuery('#jform_css-lbl').closest('.control-group').show(); } @@ -172,11 +172,11 @@ function vvvvvyt(add_css_vvvvvyt) } } -// the vvvvvyu function -function vvvvvyu(add_php_ajax_vvvvvyu) +// the vvvvvyx function +function vvvvvyx(add_php_ajax_vvvvvyx) { // set the function logic - if (add_php_ajax_vvvvvyu == 1) + if (add_php_ajax_vvvvvyx == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); diff --git a/admin/models/forms/custom_code.js b/admin/models/forms/custom_code.js index ab700d592..a2c1d6ace 100644 --- a/admin/models/forms/custom_code.js +++ b/admin/models/forms/custom_code.js @@ -9,44 +9,44 @@ */ // Some Global Values -jform_vvvvwajvwz_required = false; -jform_vvvvwakvxa_required = false; -jform_vvvvwakvxb_required = false; -jform_vvvvwakvxc_required = false; +jform_vvvvwamvxa_required = false; +jform_vvvvwanvxb_required = false; +jform_vvvvwanvxc_required = false; +jform_vvvvwanvxd_required = false; // Initial Script jQuery(document).ready(function() { - var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwaj(target_vvvvwaj); - - var target_vvvvwak = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwak(target_vvvvwak); - - var target_vvvvwal = jQuery("#jform_target input[type='radio']:checked").val(); - var type_vvvvwal = jQuery("#jform_type input[type='radio']:checked").val(); - vvvvwal(target_vvvvwal,type_vvvvwal); - - var type_vvvvwam = jQuery("#jform_type input[type='radio']:checked").val(); var target_vvvvwam = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwam(type_vvvvwam,target_vvvvwam); + vvvvwam(target_vvvvwam); + + var target_vvvvwan = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwan(target_vvvvwan); + + var target_vvvvwao = jQuery("#jform_target input[type='radio']:checked").val(); + var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val(); + vvvvwao(target_vvvvwao,type_vvvvwao); + + var type_vvvvwap = jQuery("#jform_type input[type='radio']:checked").val(); + var target_vvvvwap = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwap(type_vvvvwap,target_vvvvwap); }); -// the vvvvwaj function -function vvvvwaj(target_vvvvwaj) +// the vvvvwam function +function vvvvwam(target_vvvvwam) { // set the function logic - if (target_vvvvwaj == 2) + if (target_vvvvwam == 2) { jQuery('#jform_function_name').closest('.control-group').show(); // add required attribute to function_name field - if (jform_vvvvwajvwz_required) + if (jform_vvvvwamvxa_required) { updateFieldRequired('function_name',0); jQuery('#jform_function_name').prop('required','required'); jQuery('#jform_function_name').attr('aria-required',true); jQuery('#jform_function_name').addClass('required'); - jform_vvvvwajvwz_required = false; + jform_vvvvwamvxa_required = false; } jQuery('.note_jcb_placeholder').closest('.control-group').show(); jQuery('#jform_system_name').closest('.control-group').show(); @@ -55,102 +55,102 @@ function vvvvwaj(target_vvvvwaj) { jQuery('#jform_function_name').closest('.control-group').hide(); // remove required attribute from function_name field - if (!jform_vvvvwajvwz_required) + if (!jform_vvvvwamvxa_required) { updateFieldRequired('function_name',1); jQuery('#jform_function_name').removeAttr('required'); jQuery('#jform_function_name').removeAttr('aria-required'); jQuery('#jform_function_name').removeClass('required'); - jform_vvvvwajvwz_required = true; + jform_vvvvwamvxa_required = true; } jQuery('.note_jcb_placeholder').closest('.control-group').hide(); jQuery('#jform_system_name').closest('.control-group').hide(); } } -// the vvvvwak function -function vvvvwak(target_vvvvwak) +// the vvvvwan function +function vvvvwan(target_vvvvwan) { // set the function logic - if (target_vvvvwak == 1) + if (target_vvvvwan == 1) { jQuery('#jform_component').closest('.control-group').show(); // add required attribute to component field - if (jform_vvvvwakvxa_required) + if (jform_vvvvwanvxb_required) { updateFieldRequired('component',0); jQuery('#jform_component').prop('required','required'); jQuery('#jform_component').attr('aria-required',true); jQuery('#jform_component').addClass('required'); - jform_vvvvwakvxa_required = false; + jform_vvvvwanvxb_required = false; } jQuery('#jform_path').closest('.control-group').show(); // add required attribute to path field - if (jform_vvvvwakvxb_required) + if (jform_vvvvwanvxc_required) { updateFieldRequired('path',0); jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').addClass('required'); - jform_vvvvwakvxb_required = false; + jform_vvvvwanvxc_required = false; } jQuery('#jform_from_line').closest('.control-group').show(); jQuery('#jform_hashtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); jQuery('#jform_type').closest('.control-group').show(); // add required attribute to type field - if (jform_vvvvwakvxc_required) + if (jform_vvvvwanvxd_required) { updateFieldRequired('type',0); jQuery('#jform_type').prop('required','required'); jQuery('#jform_type').attr('aria-required',true); jQuery('#jform_type').addClass('required'); - jform_vvvvwakvxc_required = false; + jform_vvvvwanvxd_required = false; } } else { jQuery('#jform_component').closest('.control-group').hide(); // remove required attribute from component field - if (!jform_vvvvwakvxa_required) + if (!jform_vvvvwanvxb_required) { updateFieldRequired('component',1); jQuery('#jform_component').removeAttr('required'); jQuery('#jform_component').removeAttr('aria-required'); jQuery('#jform_component').removeClass('required'); - jform_vvvvwakvxa_required = true; + jform_vvvvwanvxb_required = true; } jQuery('#jform_path').closest('.control-group').hide(); // remove required attribute from path field - if (!jform_vvvvwakvxb_required) + if (!jform_vvvvwanvxc_required) { updateFieldRequired('path',1); jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeClass('required'); - jform_vvvvwakvxb_required = true; + jform_vvvvwanvxc_required = true; } jQuery('#jform_from_line').closest('.control-group').hide(); jQuery('#jform_hashtarget').closest('.control-group').hide(); jQuery('#jform_to_line').closest('.control-group').hide(); jQuery('#jform_type').closest('.control-group').hide(); // remove required attribute from type field - if (!jform_vvvvwakvxc_required) + if (!jform_vvvvwanvxd_required) { updateFieldRequired('type',1); jQuery('#jform_type').removeAttr('required'); jQuery('#jform_type').removeAttr('aria-required'); jQuery('#jform_type').removeClass('required'); - jform_vvvvwakvxc_required = true; + jform_vvvvwanvxd_required = true; } } } -// the vvvvwal function -function vvvvwal(target_vvvvwal,type_vvvvwal) +// the vvvvwao function +function vvvvwao(target_vvvvwao,type_vvvvwao) { // set the function logic - if (target_vvvvwal == 1 && type_vvvvwal == 1) + if (target_vvvvwao == 1 && type_vvvvwao == 1) { jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); @@ -162,11 +162,11 @@ function vvvvwal(target_vvvvwal,type_vvvvwal) } } -// the vvvvwam function -function vvvvwam(type_vvvvwam,target_vvvvwam) +// the vvvvwap function +function vvvvwap(type_vvvvwap,target_vvvvwap) { // set the function logic - if (type_vvvvwam == 1 && target_vvvvwam == 1) + if (type_vvvvwap == 1 && target_vvvvwap == 1) { jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); diff --git a/admin/models/forms/dynamic_get.js b/admin/models/forms/dynamic_get.js index b9eea9c07..afb2548da 100644 --- a/admin/models/forms/dynamic_get.js +++ b/admin/models/forms/dynamic_get.js @@ -9,34 +9,25 @@ */ // Some Global Values -jform_vvvvvzivwm_required = false; -jform_vvvvvzkvwn_required = false; -jform_vvvvvzlvwo_required = false; -jform_vvvvvzmvwp_required = false; -jform_vvvvvznvwq_required = false; -jform_vvvvvzyvwr_required = false; -jform_vvvvvzyvws_required = false; -jform_vvvvwadvwt_required = false; -jform_vvvvwadvwu_required = false; -jform_vvvvwadvwv_required = false; -jform_vvvvwaevww_required = false; -jform_vvvvwafvwx_required = false; -jform_vvvvwagvwy_required = false; +jform_vvvvvzlvwn_required = false; +jform_vvvvvznvwo_required = false; +jform_vvvvvzovwp_required = false; +jform_vvvvvzpvwq_required = false; +jform_vvvvvzqvwr_required = false; +jform_vvvvwabvws_required = false; +jform_vvvvwabvwt_required = false; +jform_vvvvwagvwu_required = false; +jform_vvvvwagvwv_required = false; +jform_vvvvwagvww_required = false; +jform_vvvvwahvwx_required = false; +jform_vvvvwaivwy_required = false; +jform_vvvvwajvwz_required = false; // Initial Script jQuery(document).ready(function() { - var gettype_vvvvvzi = jQuery("#jform_gettype").val(); - vvvvvzi(gettype_vvvvvzi); - - var main_source_vvvvvzj = jQuery("#jform_main_source").val(); - vvvvvzj(main_source_vvvvvzj); - - var main_source_vvvvvzk = jQuery("#jform_main_source").val(); - vvvvvzk(main_source_vvvvvzk); - - var main_source_vvvvvzl = jQuery("#jform_main_source").val(); - vvvvvzl(main_source_vvvvvzl); + var gettype_vvvvvzl = jQuery("#jform_gettype").val(); + vvvvvzl(gettype_vvvvvzl); var main_source_vvvvvzm = jQuery("#jform_main_source").val(); vvvvvzm(main_source_vvvvvzm); @@ -44,77 +35,86 @@ jQuery(document).ready(function() var main_source_vvvvvzn = jQuery("#jform_main_source").val(); vvvvvzn(main_source_vvvvvzn); - var addcalculation_vvvvvzo = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - vvvvvzo(addcalculation_vvvvvzo); + var main_source_vvvvvzo = jQuery("#jform_main_source").val(); + vvvvvzo(main_source_vvvvvzo); - var addcalculation_vvvvvzp = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvvzp = jQuery("#jform_gettype").val(); - vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp); + var main_source_vvvvvzp = jQuery("#jform_main_source").val(); + vvvvvzp(main_source_vvvvvzp); - var addcalculation_vvvvvzq = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvvzq = jQuery("#jform_gettype").val(); - vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq); + var main_source_vvvvvzq = jQuery("#jform_main_source").val(); + vvvvvzq(main_source_vvvvvzq); - var main_source_vvvvvzt = jQuery("#jform_main_source").val(); - vvvvvzt(main_source_vvvvvzt); + var addcalculation_vvvvvzr = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + vvvvvzr(addcalculation_vvvvvzr); - var main_source_vvvvvzu = jQuery("#jform_main_source").val(); - vvvvvzu(main_source_vvvvvzu); + var addcalculation_vvvvvzs = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvvzs = jQuery("#jform_gettype").val(); + vvvvvzs(addcalculation_vvvvvzs,gettype_vvvvvzs); - var add_php_before_getitem_vvvvvzv = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); - var gettype_vvvvvzv = jQuery("#jform_gettype").val(); - vvvvvzv(add_php_before_getitem_vvvvvzv,gettype_vvvvvzv); + var addcalculation_vvvvvzt = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvvzt = jQuery("#jform_gettype").val(); + vvvvvzt(addcalculation_vvvvvzt,gettype_vvvvvzt); - var add_php_after_getitem_vvvvvzw = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); - var gettype_vvvvvzw = jQuery("#jform_gettype").val(); - vvvvvzw(add_php_after_getitem_vvvvvzw,gettype_vvvvvzw); + var main_source_vvvvvzw = jQuery("#jform_main_source").val(); + vvvvvzw(main_source_vvvvvzw); + var main_source_vvvvvzx = jQuery("#jform_main_source").val(); + vvvvvzx(main_source_vvvvvzx); + + var add_php_before_getitem_vvvvvzy = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); var gettype_vvvvvzy = jQuery("#jform_gettype").val(); - vvvvvzy(gettype_vvvvvzy); + vvvvvzy(add_php_before_getitem_vvvvvzy,gettype_vvvvvzy); - var add_php_getlistquery_vvvvvzz = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + var add_php_after_getitem_vvvvvzz = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); var gettype_vvvvvzz = jQuery("#jform_gettype").val(); - vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz); + vvvvvzz(add_php_after_getitem_vvvvvzz,gettype_vvvvvzz); - var add_php_before_getitems_vvvvwaa = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); - var gettype_vvvvwaa = jQuery("#jform_gettype").val(); - vvvvwaa(add_php_before_getitems_vvvvwaa,gettype_vvvvwaa); - - var add_php_after_getitems_vvvvwab = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); var gettype_vvvvwab = jQuery("#jform_gettype").val(); - vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab); + vvvvwab(gettype_vvvvwab); + var add_php_getlistquery_vvvvwac = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + var gettype_vvvvwac = jQuery("#jform_gettype").val(); + vvvvwac(add_php_getlistquery_vvvvwac,gettype_vvvvwac); + + var add_php_before_getitems_vvvvwad = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var gettype_vvvvwad = jQuery("#jform_gettype").val(); - vvvvwad(gettype_vvvvwad); + vvvvwad(add_php_before_getitems_vvvvwad,gettype_vvvvwad); + var add_php_after_getitems_vvvvwae = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); var gettype_vvvvwae = jQuery("#jform_gettype").val(); - vvvvwae(gettype_vvvvwae); - - var gettype_vvvvwaf = jQuery("#jform_gettype").val(); - vvvvwaf(gettype_vvvvwaf); + vvvvwae(add_php_after_getitems_vvvvwae,gettype_vvvvwae); var gettype_vvvvwag = jQuery("#jform_gettype").val(); - var add_php_router_parse_vvvvwag = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); - vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag); + vvvvwag(gettype_vvvvwag); + + var gettype_vvvvwah = jQuery("#jform_gettype").val(); + vvvvwah(gettype_vvvvwah); var gettype_vvvvwai = jQuery("#jform_gettype").val(); vvvvwai(gettype_vvvvwai); + + var gettype_vvvvwaj = jQuery("#jform_gettype").val(); + var add_php_router_parse_vvvvwaj = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); + vvvvwaj(gettype_vvvvwaj,add_php_router_parse_vvvvwaj); + + var gettype_vvvvwal = jQuery("#jform_gettype").val(); + vvvvwal(gettype_vvvvwal); }); -// the vvvvvzi function -function vvvvvzi(gettype_vvvvvzi) +// the vvvvvzl function +function vvvvvzl(gettype_vvvvvzl) { - if (isSet(gettype_vvvvvzi) && gettype_vvvvvzi.constructor !== Array) + if (isSet(gettype_vvvvvzl) && gettype_vvvvvzl.constructor !== Array) { - var temp_vvvvvzi = gettype_vvvvvzi; - var gettype_vvvvvzi = []; - gettype_vvvvvzi.push(temp_vvvvvzi); + var temp_vvvvvzl = gettype_vvvvvzl; + var gettype_vvvvvzl = []; + gettype_vvvvvzl.push(temp_vvvvvzl); } - else if (!isSet(gettype_vvvvvzi)) + else if (!isSet(gettype_vvvvvzl)) { - var gettype_vvvvvzi = []; + var gettype_vvvvvzl = []; } - var gettype = gettype_vvvvvzi.some(gettype_vvvvvzi_SomeFunc); + var gettype = gettype_vvvvvzl.some(gettype_vvvvvzl_SomeFunc); // set this function logic @@ -122,185 +122,35 @@ function vvvvvzi(gettype_vvvvvzi) { jQuery('#jform_getcustom').closest('.control-group').show(); // add required attribute to getcustom field - if (jform_vvvvvzivwm_required) + if (jform_vvvvvzlvwn_required) { updateFieldRequired('getcustom',0); jQuery('#jform_getcustom').prop('required','required'); jQuery('#jform_getcustom').attr('aria-required',true); jQuery('#jform_getcustom').addClass('required'); - jform_vvvvvzivwm_required = false; + jform_vvvvvzlvwn_required = false; } } else { jQuery('#jform_getcustom').closest('.control-group').hide(); // remove required attribute from getcustom field - if (!jform_vvvvvzivwm_required) + if (!jform_vvvvvzlvwn_required) { updateFieldRequired('getcustom',1); jQuery('#jform_getcustom').removeAttr('required'); jQuery('#jform_getcustom').removeAttr('aria-required'); jQuery('#jform_getcustom').removeClass('required'); - jform_vvvvvzivwm_required = true; - } - } -} - -// the vvvvvzi Some function -function gettype_vvvvvzi_SomeFunc(gettype_vvvvvzi) -{ - // set the function logic - if (gettype_vvvvvzi == 3 || gettype_vvvvvzi == 4) - { - return true; - } - return false; -} - -// the vvvvvzj function -function vvvvvzj(main_source_vvvvvzj) -{ - if (isSet(main_source_vvvvvzj) && main_source_vvvvvzj.constructor !== Array) - { - var temp_vvvvvzj = main_source_vvvvvzj; - var main_source_vvvvvzj = []; - main_source_vvvvvzj.push(temp_vvvvvzj); - } - else if (!isSet(main_source_vvvvvzj)) - { - var main_source_vvvvvzj = []; - } - var main_source = main_source_vvvvvzj.some(main_source_vvvvvzj_SomeFunc); - - - // set this function logic - if (main_source) - { - jQuery('#jform_select_all').closest('.control-group').show(); - } - else - { - jQuery('#jform_select_all').closest('.control-group').hide(); - } -} - -// the vvvvvzj Some function -function main_source_vvvvvzj_SomeFunc(main_source_vvvvvzj) -{ - // set the function logic - if (main_source_vvvvvzj == 1 || main_source_vvvvvzj == 2) - { - return true; - } - return false; -} - -// the vvvvvzk function -function vvvvvzk(main_source_vvvvvzk) -{ - if (isSet(main_source_vvvvvzk) && main_source_vvvvvzk.constructor !== Array) - { - var temp_vvvvvzk = main_source_vvvvvzk; - var main_source_vvvvvzk = []; - main_source_vvvvvzk.push(temp_vvvvvzk); - } - else if (!isSet(main_source_vvvvvzk)) - { - var main_source_vvvvvzk = []; - } - var main_source = main_source_vvvvvzk.some(main_source_vvvvvzk_SomeFunc); - - - // set this function logic - if (main_source) - { - jQuery('#jform_view_table_main').closest('.control-group').show(); - // add required attribute to view_table_main field - if (jform_vvvvvzkvwn_required) - { - updateFieldRequired('view_table_main',0); - jQuery('#jform_view_table_main').prop('required','required'); - jQuery('#jform_view_table_main').attr('aria-required',true); - jQuery('#jform_view_table_main').addClass('required'); - jform_vvvvvzkvwn_required = false; - } - } - else - { - jQuery('#jform_view_table_main').closest('.control-group').hide(); - // remove required attribute from view_table_main field - if (!jform_vvvvvzkvwn_required) - { - updateFieldRequired('view_table_main',1); - jQuery('#jform_view_table_main').removeAttr('required'); - jQuery('#jform_view_table_main').removeAttr('aria-required'); - jQuery('#jform_view_table_main').removeClass('required'); - jform_vvvvvzkvwn_required = true; - } - } -} - -// the vvvvvzk Some function -function main_source_vvvvvzk_SomeFunc(main_source_vvvvvzk) -{ - // set the function logic - if (main_source_vvvvvzk == 1) - { - return true; - } - return false; -} - -// the vvvvvzl function -function vvvvvzl(main_source_vvvvvzl) -{ - if (isSet(main_source_vvvvvzl) && main_source_vvvvvzl.constructor !== Array) - { - var temp_vvvvvzl = main_source_vvvvvzl; - var main_source_vvvvvzl = []; - main_source_vvvvvzl.push(temp_vvvvvzl); - } - else if (!isSet(main_source_vvvvvzl)) - { - var main_source_vvvvvzl = []; - } - var main_source = main_source_vvvvvzl.some(main_source_vvvvvzl_SomeFunc); - - - // set this function logic - if (main_source) - { - jQuery('#jform_view_selection').closest('.control-group').show(); - // add required attribute to view_selection field - if (jform_vvvvvzlvwo_required) - { - updateFieldRequired('view_selection',0); - jQuery('#jform_view_selection').prop('required','required'); - jQuery('#jform_view_selection').attr('aria-required',true); - jQuery('#jform_view_selection').addClass('required'); - jform_vvvvvzlvwo_required = false; - } - } - else - { - jQuery('#jform_view_selection').closest('.control-group').hide(); - // remove required attribute from view_selection field - if (!jform_vvvvvzlvwo_required) - { - updateFieldRequired('view_selection',1); - jQuery('#jform_view_selection').removeAttr('required'); - jQuery('#jform_view_selection').removeAttr('aria-required'); - jQuery('#jform_view_selection').removeClass('required'); - jform_vvvvvzlvwo_required = true; + jform_vvvvvzlvwn_required = true; } } } // the vvvvvzl Some function -function main_source_vvvvvzl_SomeFunc(main_source_vvvvvzl) +function gettype_vvvvvzl_SomeFunc(gettype_vvvvvzl) { // set the function logic - if (main_source_vvvvvzl == 1) + if (gettype_vvvvvzl == 3 || gettype_vvvvvzl == 4) { return true; } @@ -326,29 +176,11 @@ function vvvvvzm(main_source_vvvvvzm) // set this function logic if (main_source) { - jQuery('#jform_db_table_main').closest('.control-group').show(); - // add required attribute to db_table_main field - if (jform_vvvvvzmvwp_required) - { - updateFieldRequired('db_table_main',0); - jQuery('#jform_db_table_main').prop('required','required'); - jQuery('#jform_db_table_main').attr('aria-required',true); - jQuery('#jform_db_table_main').addClass('required'); - jform_vvvvvzmvwp_required = false; - } + jQuery('#jform_select_all').closest('.control-group').show(); } else { - jQuery('#jform_db_table_main').closest('.control-group').hide(); - // remove required attribute from db_table_main field - if (!jform_vvvvvzmvwp_required) - { - updateFieldRequired('db_table_main',1); - jQuery('#jform_db_table_main').removeAttr('required'); - jQuery('#jform_db_table_main').removeAttr('aria-required'); - jQuery('#jform_db_table_main').removeClass('required'); - jform_vvvvvzmvwp_required = true; - } + jQuery('#jform_select_all').closest('.control-group').hide(); } } @@ -356,7 +188,7 @@ function vvvvvzm(main_source_vvvvvzm) function main_source_vvvvvzm_SomeFunc(main_source_vvvvvzm) { // set the function logic - if (main_source_vvvvvzm == 2) + if (main_source_vvvvvzm == 1 || main_source_vvvvvzm == 2) { return true; } @@ -382,28 +214,28 @@ function vvvvvzn(main_source_vvvvvzn) // set this function logic if (main_source) { - jQuery('#jform_db_selection').closest('.control-group').show(); - // add required attribute to db_selection field - if (jform_vvvvvznvwq_required) + jQuery('#jform_view_table_main').closest('.control-group').show(); + // add required attribute to view_table_main field + if (jform_vvvvvznvwo_required) { - updateFieldRequired('db_selection',0); - jQuery('#jform_db_selection').prop('required','required'); - jQuery('#jform_db_selection').attr('aria-required',true); - jQuery('#jform_db_selection').addClass('required'); - jform_vvvvvznvwq_required = false; + updateFieldRequired('view_table_main',0); + jQuery('#jform_view_table_main').prop('required','required'); + jQuery('#jform_view_table_main').attr('aria-required',true); + jQuery('#jform_view_table_main').addClass('required'); + jform_vvvvvznvwo_required = false; } } else { - jQuery('#jform_db_selection').closest('.control-group').hide(); - // remove required attribute from db_selection field - if (!jform_vvvvvznvwq_required) + jQuery('#jform_view_table_main').closest('.control-group').hide(); + // remove required attribute from view_table_main field + if (!jform_vvvvvznvwo_required) { - updateFieldRequired('db_selection',1); - jQuery('#jform_db_selection').removeAttr('required'); - jQuery('#jform_db_selection').removeAttr('aria-required'); - jQuery('#jform_db_selection').removeClass('required'); - jform_vvvvvznvwq_required = true; + updateFieldRequired('view_table_main',1); + jQuery('#jform_view_table_main').removeAttr('required'); + jQuery('#jform_view_table_main').removeAttr('aria-required'); + jQuery('#jform_view_table_main').removeClass('required'); + jform_vvvvvznvwo_required = true; } } } @@ -412,7 +244,7 @@ function vvvvvzn(main_source_vvvvvzn) function main_source_vvvvvzn_SomeFunc(main_source_vvvvvzn) { // set the function logic - if (main_source_vvvvvzn == 2) + if (main_source_vvvvvzn == 1) { return true; } @@ -420,10 +252,178 @@ function main_source_vvvvvzn_SomeFunc(main_source_vvvvvzn) } // the vvvvvzo function -function vvvvvzo(addcalculation_vvvvvzo) +function vvvvvzo(main_source_vvvvvzo) +{ + if (isSet(main_source_vvvvvzo) && main_source_vvvvvzo.constructor !== Array) + { + var temp_vvvvvzo = main_source_vvvvvzo; + var main_source_vvvvvzo = []; + main_source_vvvvvzo.push(temp_vvvvvzo); + } + else if (!isSet(main_source_vvvvvzo)) + { + var main_source_vvvvvzo = []; + } + var main_source = main_source_vvvvvzo.some(main_source_vvvvvzo_SomeFunc); + + + // set this function logic + if (main_source) + { + jQuery('#jform_view_selection').closest('.control-group').show(); + // add required attribute to view_selection field + if (jform_vvvvvzovwp_required) + { + updateFieldRequired('view_selection',0); + jQuery('#jform_view_selection').prop('required','required'); + jQuery('#jform_view_selection').attr('aria-required',true); + jQuery('#jform_view_selection').addClass('required'); + jform_vvvvvzovwp_required = false; + } + } + else + { + jQuery('#jform_view_selection').closest('.control-group').hide(); + // remove required attribute from view_selection field + if (!jform_vvvvvzovwp_required) + { + updateFieldRequired('view_selection',1); + jQuery('#jform_view_selection').removeAttr('required'); + jQuery('#jform_view_selection').removeAttr('aria-required'); + jQuery('#jform_view_selection').removeClass('required'); + jform_vvvvvzovwp_required = true; + } + } +} + +// the vvvvvzo Some function +function main_source_vvvvvzo_SomeFunc(main_source_vvvvvzo) { // set the function logic - if (addcalculation_vvvvvzo == 1) + if (main_source_vvvvvzo == 1) + { + return true; + } + return false; +} + +// the vvvvvzp function +function vvvvvzp(main_source_vvvvvzp) +{ + if (isSet(main_source_vvvvvzp) && main_source_vvvvvzp.constructor !== Array) + { + var temp_vvvvvzp = main_source_vvvvvzp; + var main_source_vvvvvzp = []; + main_source_vvvvvzp.push(temp_vvvvvzp); + } + else if (!isSet(main_source_vvvvvzp)) + { + var main_source_vvvvvzp = []; + } + var main_source = main_source_vvvvvzp.some(main_source_vvvvvzp_SomeFunc); + + + // set this function logic + if (main_source) + { + jQuery('#jform_db_table_main').closest('.control-group').show(); + // add required attribute to db_table_main field + if (jform_vvvvvzpvwq_required) + { + updateFieldRequired('db_table_main',0); + jQuery('#jform_db_table_main').prop('required','required'); + jQuery('#jform_db_table_main').attr('aria-required',true); + jQuery('#jform_db_table_main').addClass('required'); + jform_vvvvvzpvwq_required = false; + } + } + else + { + jQuery('#jform_db_table_main').closest('.control-group').hide(); + // remove required attribute from db_table_main field + if (!jform_vvvvvzpvwq_required) + { + updateFieldRequired('db_table_main',1); + jQuery('#jform_db_table_main').removeAttr('required'); + jQuery('#jform_db_table_main').removeAttr('aria-required'); + jQuery('#jform_db_table_main').removeClass('required'); + jform_vvvvvzpvwq_required = true; + } + } +} + +// the vvvvvzp Some function +function main_source_vvvvvzp_SomeFunc(main_source_vvvvvzp) +{ + // set the function logic + if (main_source_vvvvvzp == 2) + { + return true; + } + return false; +} + +// the vvvvvzq function +function vvvvvzq(main_source_vvvvvzq) +{ + if (isSet(main_source_vvvvvzq) && main_source_vvvvvzq.constructor !== Array) + { + var temp_vvvvvzq = main_source_vvvvvzq; + var main_source_vvvvvzq = []; + main_source_vvvvvzq.push(temp_vvvvvzq); + } + else if (!isSet(main_source_vvvvvzq)) + { + var main_source_vvvvvzq = []; + } + var main_source = main_source_vvvvvzq.some(main_source_vvvvvzq_SomeFunc); + + + // set this function logic + if (main_source) + { + jQuery('#jform_db_selection').closest('.control-group').show(); + // add required attribute to db_selection field + if (jform_vvvvvzqvwr_required) + { + updateFieldRequired('db_selection',0); + jQuery('#jform_db_selection').prop('required','required'); + jQuery('#jform_db_selection').attr('aria-required',true); + jQuery('#jform_db_selection').addClass('required'); + jform_vvvvvzqvwr_required = false; + } + } + else + { + jQuery('#jform_db_selection').closest('.control-group').hide(); + // remove required attribute from db_selection field + if (!jform_vvvvvzqvwr_required) + { + updateFieldRequired('db_selection',1); + jQuery('#jform_db_selection').removeAttr('required'); + jQuery('#jform_db_selection').removeAttr('aria-required'); + jQuery('#jform_db_selection').removeClass('required'); + jform_vvvvvzqvwr_required = true; + } + } +} + +// the vvvvvzq Some function +function main_source_vvvvvzq_SomeFunc(main_source_vvvvvzq) +{ + // set the function logic + if (main_source_vvvvvzq == 2) + { + return true; + } + return false; +} + +// the vvvvvzr function +function vvvvvzr(addcalculation_vvvvvzr) +{ + // set the function logic + if (addcalculation_vvvvvzr == 1) { jQuery('#jform_php_calculation-lbl').closest('.control-group').show(); } @@ -433,32 +433,32 @@ function vvvvvzo(addcalculation_vvvvvzo) } } -// the vvvvvzp function -function vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp) +// the vvvvvzs function +function vvvvvzs(addcalculation_vvvvvzs,gettype_vvvvvzs) { - if (isSet(addcalculation_vvvvvzp) && addcalculation_vvvvvzp.constructor !== Array) + if (isSet(addcalculation_vvvvvzs) && addcalculation_vvvvvzs.constructor !== Array) { - var temp_vvvvvzp = addcalculation_vvvvvzp; - var addcalculation_vvvvvzp = []; - addcalculation_vvvvvzp.push(temp_vvvvvzp); + var temp_vvvvvzs = addcalculation_vvvvvzs; + var addcalculation_vvvvvzs = []; + addcalculation_vvvvvzs.push(temp_vvvvvzs); } - else if (!isSet(addcalculation_vvvvvzp)) + else if (!isSet(addcalculation_vvvvvzs)) { - var addcalculation_vvvvvzp = []; + var addcalculation_vvvvvzs = []; } - var addcalculation = addcalculation_vvvvvzp.some(addcalculation_vvvvvzp_SomeFunc); + var addcalculation = addcalculation_vvvvvzs.some(addcalculation_vvvvvzs_SomeFunc); - if (isSet(gettype_vvvvvzp) && gettype_vvvvvzp.constructor !== Array) + if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array) { - var temp_vvvvvzp = gettype_vvvvvzp; - var gettype_vvvvvzp = []; - gettype_vvvvvzp.push(temp_vvvvvzp); + var temp_vvvvvzs = gettype_vvvvvzs; + var gettype_vvvvvzs = []; + gettype_vvvvvzs.push(temp_vvvvvzs); } - else if (!isSet(gettype_vvvvvzp)) + else if (!isSet(gettype_vvvvvzs)) { - var gettype_vvvvvzp = []; + var gettype_vvvvvzs = []; } - var gettype = gettype_vvvvvzp.some(gettype_vvvvvzp_SomeFunc); + var gettype = gettype_vvvvvzs.some(gettype_vvvvvzs_SomeFunc); // set this function logic @@ -472,54 +472,54 @@ function vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp) } } -// the vvvvvzp Some function -function addcalculation_vvvvvzp_SomeFunc(addcalculation_vvvvvzp) +// the vvvvvzs Some function +function addcalculation_vvvvvzs_SomeFunc(addcalculation_vvvvvzs) { // set the function logic - if (addcalculation_vvvvvzp == 1) + if (addcalculation_vvvvvzs == 1) { return true; } return false; } -// the vvvvvzp Some function -function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp) +// the vvvvvzs Some function +function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs) { // set the function logic - if (gettype_vvvvvzp == 1 || gettype_vvvvvzp == 3) + if (gettype_vvvvvzs == 1 || gettype_vvvvvzs == 3) { return true; } return false; } -// the vvvvvzq function -function vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq) +// the vvvvvzt function +function vvvvvzt(addcalculation_vvvvvzt,gettype_vvvvvzt) { - if (isSet(addcalculation_vvvvvzq) && addcalculation_vvvvvzq.constructor !== Array) + if (isSet(addcalculation_vvvvvzt) && addcalculation_vvvvvzt.constructor !== Array) { - var temp_vvvvvzq = addcalculation_vvvvvzq; - var addcalculation_vvvvvzq = []; - addcalculation_vvvvvzq.push(temp_vvvvvzq); + var temp_vvvvvzt = addcalculation_vvvvvzt; + var addcalculation_vvvvvzt = []; + addcalculation_vvvvvzt.push(temp_vvvvvzt); } - else if (!isSet(addcalculation_vvvvvzq)) + else if (!isSet(addcalculation_vvvvvzt)) { - var addcalculation_vvvvvzq = []; + var addcalculation_vvvvvzt = []; } - var addcalculation = addcalculation_vvvvvzq.some(addcalculation_vvvvvzq_SomeFunc); + var addcalculation = addcalculation_vvvvvzt.some(addcalculation_vvvvvzt_SomeFunc); - if (isSet(gettype_vvvvvzq) && gettype_vvvvvzq.constructor !== Array) + if (isSet(gettype_vvvvvzt) && gettype_vvvvvzt.constructor !== Array) { - var temp_vvvvvzq = gettype_vvvvvzq; - var gettype_vvvvvzq = []; - gettype_vvvvvzq.push(temp_vvvvvzq); + var temp_vvvvvzt = gettype_vvvvvzt; + var gettype_vvvvvzt = []; + gettype_vvvvvzt.push(temp_vvvvvzt); } - else if (!isSet(gettype_vvvvvzq)) + else if (!isSet(gettype_vvvvvzt)) { - var gettype_vvvvvzq = []; + var gettype_vvvvvzt = []; } - var gettype = gettype_vvvvvzq.some(gettype_vvvvvzq_SomeFunc); + var gettype = gettype_vvvvvzt.some(gettype_vvvvvzt_SomeFunc); // set this function logic @@ -533,42 +533,42 @@ function vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq) } } -// the vvvvvzq Some function -function addcalculation_vvvvvzq_SomeFunc(addcalculation_vvvvvzq) +// the vvvvvzt Some function +function addcalculation_vvvvvzt_SomeFunc(addcalculation_vvvvvzt) { // set the function logic - if (addcalculation_vvvvvzq == 1) + if (addcalculation_vvvvvzt == 1) { return true; } return false; } -// the vvvvvzq Some function -function gettype_vvvvvzq_SomeFunc(gettype_vvvvvzq) +// the vvvvvzt Some function +function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt) { // set the function logic - if (gettype_vvvvvzq == 2 || gettype_vvvvvzq == 4) + if (gettype_vvvvvzt == 2 || gettype_vvvvvzt == 4) { return true; } return false; } -// the vvvvvzt function -function vvvvvzt(main_source_vvvvvzt) +// the vvvvvzw function +function vvvvvzw(main_source_vvvvvzw) { - if (isSet(main_source_vvvvvzt) && main_source_vvvvvzt.constructor !== Array) + if (isSet(main_source_vvvvvzw) && main_source_vvvvvzw.constructor !== Array) { - var temp_vvvvvzt = main_source_vvvvvzt; - var main_source_vvvvvzt = []; - main_source_vvvvvzt.push(temp_vvvvvzt); + var temp_vvvvvzw = main_source_vvvvvzw; + var main_source_vvvvvzw = []; + main_source_vvvvvzw.push(temp_vvvvvzw); } - else if (!isSet(main_source_vvvvvzt)) + else if (!isSet(main_source_vvvvvzw)) { - var main_source_vvvvvzt = []; + var main_source_vvvvvzw = []; } - var main_source = main_source_vvvvvzt.some(main_source_vvvvvzt_SomeFunc); + var main_source = main_source_vvvvvzw.some(main_source_vvvvvzw_SomeFunc); // set this function logic @@ -582,31 +582,31 @@ function vvvvvzt(main_source_vvvvvzt) } } -// the vvvvvzt Some function -function main_source_vvvvvzt_SomeFunc(main_source_vvvvvzt) +// the vvvvvzw Some function +function main_source_vvvvvzw_SomeFunc(main_source_vvvvvzw) { // set the function logic - if (main_source_vvvvvzt == 3) + if (main_source_vvvvvzw == 3) { return true; } return false; } -// the vvvvvzu function -function vvvvvzu(main_source_vvvvvzu) +// the vvvvvzx function +function vvvvvzx(main_source_vvvvvzx) { - if (isSet(main_source_vvvvvzu) && main_source_vvvvvzu.constructor !== Array) + if (isSet(main_source_vvvvvzx) && main_source_vvvvvzx.constructor !== Array) { - var temp_vvvvvzu = main_source_vvvvvzu; - var main_source_vvvvvzu = []; - main_source_vvvvvzu.push(temp_vvvvvzu); + var temp_vvvvvzx = main_source_vvvvvzx; + var main_source_vvvvvzx = []; + main_source_vvvvvzx.push(temp_vvvvvzx); } - else if (!isSet(main_source_vvvvvzu)) + else if (!isSet(main_source_vvvvvzx)) { - var main_source_vvvvvzu = []; + var main_source_vvvvvzx = []; } - var main_source = main_source_vvvvvzu.some(main_source_vvvvvzu_SomeFunc); + var main_source = main_source_vvvvvzx.some(main_source_vvvvvzx_SomeFunc); // set this function logic @@ -632,133 +632,11 @@ function vvvvvzu(main_source_vvvvvzu) } } -// the vvvvvzu Some function -function main_source_vvvvvzu_SomeFunc(main_source_vvvvvzu) +// the vvvvvzx Some function +function main_source_vvvvvzx_SomeFunc(main_source_vvvvvzx) { // set the function logic - if (main_source_vvvvvzu == 1 || main_source_vvvvvzu == 2) - { - return true; - } - return false; -} - -// the vvvvvzv function -function vvvvvzv(add_php_before_getitem_vvvvvzv,gettype_vvvvvzv) -{ - if (isSet(add_php_before_getitem_vvvvvzv) && add_php_before_getitem_vvvvvzv.constructor !== Array) - { - var temp_vvvvvzv = add_php_before_getitem_vvvvvzv; - var add_php_before_getitem_vvvvvzv = []; - add_php_before_getitem_vvvvvzv.push(temp_vvvvvzv); - } - else if (!isSet(add_php_before_getitem_vvvvvzv)) - { - var add_php_before_getitem_vvvvvzv = []; - } - var add_php_before_getitem = add_php_before_getitem_vvvvvzv.some(add_php_before_getitem_vvvvvzv_SomeFunc); - - if (isSet(gettype_vvvvvzv) && gettype_vvvvvzv.constructor !== Array) - { - var temp_vvvvvzv = gettype_vvvvvzv; - var gettype_vvvvvzv = []; - gettype_vvvvvzv.push(temp_vvvvvzv); - } - else if (!isSet(gettype_vvvvvzv)) - { - var gettype_vvvvvzv = []; - } - var gettype = gettype_vvvvvzv.some(gettype_vvvvvzv_SomeFunc); - - - // set this function logic - if (add_php_before_getitem && gettype) - { - jQuery('#jform_php_before_getitem-lbl').closest('.control-group').show(); - } - else - { - jQuery('#jform_php_before_getitem-lbl').closest('.control-group').hide(); - } -} - -// the vvvvvzv Some function -function add_php_before_getitem_vvvvvzv_SomeFunc(add_php_before_getitem_vvvvvzv) -{ - // set the function logic - if (add_php_before_getitem_vvvvvzv == 1) - { - return true; - } - return false; -} - -// the vvvvvzv Some function -function gettype_vvvvvzv_SomeFunc(gettype_vvvvvzv) -{ - // set the function logic - if (gettype_vvvvvzv == 1 || gettype_vvvvvzv == 3) - { - return true; - } - return false; -} - -// the vvvvvzw function -function vvvvvzw(add_php_after_getitem_vvvvvzw,gettype_vvvvvzw) -{ - if (isSet(add_php_after_getitem_vvvvvzw) && add_php_after_getitem_vvvvvzw.constructor !== Array) - { - var temp_vvvvvzw = add_php_after_getitem_vvvvvzw; - var add_php_after_getitem_vvvvvzw = []; - add_php_after_getitem_vvvvvzw.push(temp_vvvvvzw); - } - else if (!isSet(add_php_after_getitem_vvvvvzw)) - { - var add_php_after_getitem_vvvvvzw = []; - } - var add_php_after_getitem = add_php_after_getitem_vvvvvzw.some(add_php_after_getitem_vvvvvzw_SomeFunc); - - if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array) - { - var temp_vvvvvzw = gettype_vvvvvzw; - var gettype_vvvvvzw = []; - gettype_vvvvvzw.push(temp_vvvvvzw); - } - else if (!isSet(gettype_vvvvvzw)) - { - var gettype_vvvvvzw = []; - } - var gettype = gettype_vvvvvzw.some(gettype_vvvvvzw_SomeFunc); - - - // set this function logic - if (add_php_after_getitem && gettype) - { - jQuery('#jform_php_after_getitem-lbl').closest('.control-group').show(); - } - else - { - jQuery('#jform_php_after_getitem-lbl').closest('.control-group').hide(); - } -} - -// the vvvvvzw Some function -function add_php_after_getitem_vvvvvzw_SomeFunc(add_php_after_getitem_vvvvvzw) -{ - // set the function logic - if (add_php_after_getitem_vvvvvzw == 1) - { - return true; - } - return false; -} - -// the vvvvvzw Some function -function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw) -{ - // set the function logic - if (gettype_vvvvvzw == 1 || gettype_vvvvvzw == 3) + if (main_source_vvvvvzx == 1 || main_source_vvvvvzx == 2) { return true; } @@ -766,8 +644,20 @@ function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw) } // the vvvvvzy function -function vvvvvzy(gettype_vvvvvzy) +function vvvvvzy(add_php_before_getitem_vvvvvzy,gettype_vvvvvzy) { + if (isSet(add_php_before_getitem_vvvvvzy) && add_php_before_getitem_vvvvvzy.constructor !== Array) + { + var temp_vvvvvzy = add_php_before_getitem_vvvvvzy; + var add_php_before_getitem_vvvvvzy = []; + add_php_before_getitem_vvvvvzy.push(temp_vvvvvzy); + } + else if (!isSet(add_php_before_getitem_vvvvvzy)) + { + var add_php_before_getitem_vvvvvzy = []; + } + var add_php_before_getitem = add_php_before_getitem_vvvvvzy.some(add_php_before_getitem_vvvvvzy_SomeFunc); + if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array) { var temp_vvvvvzy = gettype_vvvvvzy; @@ -782,54 +672,27 @@ function vvvvvzy(gettype_vvvvvzy) // set this function logic - if (gettype) + if (add_php_before_getitem && gettype) { - jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); - // add required attribute to add_php_after_getitem field - if (jform_vvvvvzyvwr_required) - { - updateFieldRequired('add_php_after_getitem',0); - jQuery('#jform_add_php_after_getitem').prop('required','required'); - jQuery('#jform_add_php_after_getitem').attr('aria-required',true); - jQuery('#jform_add_php_after_getitem').addClass('required'); - jform_vvvvvzyvwr_required = false; - } - jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); - // add required attribute to add_php_before_getitem field - if (jform_vvvvvzyvws_required) - { - updateFieldRequired('add_php_before_getitem',0); - jQuery('#jform_add_php_before_getitem').prop('required','required'); - jQuery('#jform_add_php_before_getitem').attr('aria-required',true); - jQuery('#jform_add_php_before_getitem').addClass('required'); - jform_vvvvvzyvws_required = false; - } + jQuery('#jform_php_before_getitem-lbl').closest('.control-group').show(); } else { - jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); - // remove required attribute from add_php_after_getitem field - if (!jform_vvvvvzyvwr_required) - { - updateFieldRequired('add_php_after_getitem',1); - jQuery('#jform_add_php_after_getitem').removeAttr('required'); - jQuery('#jform_add_php_after_getitem').removeAttr('aria-required'); - jQuery('#jform_add_php_after_getitem').removeClass('required'); - jform_vvvvvzyvwr_required = true; - } - jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); - // remove required attribute from add_php_before_getitem field - if (!jform_vvvvvzyvws_required) - { - updateFieldRequired('add_php_before_getitem',1); - jQuery('#jform_add_php_before_getitem').removeAttr('required'); - jQuery('#jform_add_php_before_getitem').removeAttr('aria-required'); - jQuery('#jform_add_php_before_getitem').removeClass('required'); - jform_vvvvvzyvws_required = true; - } + jQuery('#jform_php_before_getitem-lbl').closest('.control-group').hide(); } } +// the vvvvvzy Some function +function add_php_before_getitem_vvvvvzy_SomeFunc(add_php_before_getitem_vvvvvzy) +{ + // set the function logic + if (add_php_before_getitem_vvvvvzy == 1) + { + return true; + } + return false; +} + // the vvvvvzy Some function function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy) { @@ -842,19 +705,19 @@ function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy) } // the vvvvvzz function -function vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz) +function vvvvvzz(add_php_after_getitem_vvvvvzz,gettype_vvvvvzz) { - if (isSet(add_php_getlistquery_vvvvvzz) && add_php_getlistquery_vvvvvzz.constructor !== Array) + if (isSet(add_php_after_getitem_vvvvvzz) && add_php_after_getitem_vvvvvzz.constructor !== Array) { - var temp_vvvvvzz = add_php_getlistquery_vvvvvzz; - var add_php_getlistquery_vvvvvzz = []; - add_php_getlistquery_vvvvvzz.push(temp_vvvvvzz); + var temp_vvvvvzz = add_php_after_getitem_vvvvvzz; + var add_php_after_getitem_vvvvvzz = []; + add_php_after_getitem_vvvvvzz.push(temp_vvvvvzz); } - else if (!isSet(add_php_getlistquery_vvvvvzz)) + else if (!isSet(add_php_after_getitem_vvvvvzz)) { - var add_php_getlistquery_vvvvvzz = []; + var add_php_after_getitem_vvvvvzz = []; } - var add_php_getlistquery = add_php_getlistquery_vvvvvzz.some(add_php_getlistquery_vvvvvzz_SomeFunc); + var add_php_after_getitem = add_php_after_getitem_vvvvvzz.some(add_php_after_getitem_vvvvvzz_SomeFunc); if (isSet(gettype_vvvvvzz) && gettype_vvvvvzz.constructor !== Array) { @@ -870,21 +733,21 @@ function vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz) // set this function logic - if (add_php_getlistquery && gettype) + if (add_php_after_getitem && gettype) { - jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); + jQuery('#jform_php_after_getitem-lbl').closest('.control-group').show(); } else { - jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide(); + jQuery('#jform_php_after_getitem-lbl').closest('.control-group').hide(); } } // the vvvvvzz Some function -function add_php_getlistquery_vvvvvzz_SomeFunc(add_php_getlistquery_vvvvvzz) +function add_php_after_getitem_vvvvvzz_SomeFunc(add_php_after_getitem_vvvvvzz) { // set the function logic - if (add_php_getlistquery_vvvvvzz == 1) + if (add_php_after_getitem_vvvvvzz == 1) { return true; } @@ -895,68 +758,7 @@ function add_php_getlistquery_vvvvvzz_SomeFunc(add_php_getlistquery_vvvvvzz) function gettype_vvvvvzz_SomeFunc(gettype_vvvvvzz) { // set the function logic - if (gettype_vvvvvzz == 2 || gettype_vvvvvzz == 4) - { - return true; - } - return false; -} - -// the vvvvwaa function -function vvvvwaa(add_php_before_getitems_vvvvwaa,gettype_vvvvwaa) -{ - if (isSet(add_php_before_getitems_vvvvwaa) && add_php_before_getitems_vvvvwaa.constructor !== Array) - { - var temp_vvvvwaa = add_php_before_getitems_vvvvwaa; - var add_php_before_getitems_vvvvwaa = []; - add_php_before_getitems_vvvvwaa.push(temp_vvvvwaa); - } - else if (!isSet(add_php_before_getitems_vvvvwaa)) - { - var add_php_before_getitems_vvvvwaa = []; - } - var add_php_before_getitems = add_php_before_getitems_vvvvwaa.some(add_php_before_getitems_vvvvwaa_SomeFunc); - - if (isSet(gettype_vvvvwaa) && gettype_vvvvwaa.constructor !== Array) - { - var temp_vvvvwaa = gettype_vvvvwaa; - var gettype_vvvvwaa = []; - gettype_vvvvwaa.push(temp_vvvvwaa); - } - else if (!isSet(gettype_vvvvwaa)) - { - var gettype_vvvvwaa = []; - } - var gettype = gettype_vvvvwaa.some(gettype_vvvvwaa_SomeFunc); - - - // set this function logic - if (add_php_before_getitems && gettype) - { - jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show(); - } - else - { - jQuery('#jform_php_before_getitems-lbl').closest('.control-group').hide(); - } -} - -// the vvvvwaa Some function -function add_php_before_getitems_vvvvwaa_SomeFunc(add_php_before_getitems_vvvvwaa) -{ - // set the function logic - if (add_php_before_getitems_vvvvwaa == 1) - { - return true; - } - return false; -} - -// the vvvvwaa Some function -function gettype_vvvvwaa_SomeFunc(gettype_vvvvwaa) -{ - // set the function logic - if (gettype_vvvvwaa == 2 || gettype_vvvvwaa == 4) + if (gettype_vvvvvzz == 1 || gettype_vvvvvzz == 3) { return true; } @@ -964,20 +766,8 @@ function gettype_vvvvwaa_SomeFunc(gettype_vvvvwaa) } // the vvvvwab function -function vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab) +function vvvvwab(gettype_vvvvwab) { - if (isSet(add_php_after_getitems_vvvvwab) && add_php_after_getitems_vvvvwab.constructor !== Array) - { - var temp_vvvvwab = add_php_after_getitems_vvvvwab; - var add_php_after_getitems_vvvvwab = []; - add_php_after_getitems_vvvvwab.push(temp_vvvvwab); - } - else if (!isSet(add_php_after_getitems_vvvvwab)) - { - var add_php_after_getitems_vvvvwab = []; - } - var add_php_after_getitems = add_php_after_getitems_vvvvwab.some(add_php_after_getitems_vvvvwab_SomeFunc); - if (isSet(gettype_vvvvwab) && gettype_vvvvwab.constructor !== Array) { var temp_vvvvwab = gettype_vvvvwab; @@ -992,32 +782,120 @@ function vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab) // set this function logic - if (add_php_after_getitems && gettype) + if (gettype) { - jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show(); + jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); + // add required attribute to add_php_after_getitem field + if (jform_vvvvwabvws_required) + { + updateFieldRequired('add_php_after_getitem',0); + jQuery('#jform_add_php_after_getitem').prop('required','required'); + jQuery('#jform_add_php_after_getitem').attr('aria-required',true); + jQuery('#jform_add_php_after_getitem').addClass('required'); + jform_vvvvwabvws_required = false; + } + jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); + // add required attribute to add_php_before_getitem field + if (jform_vvvvwabvwt_required) + { + updateFieldRequired('add_php_before_getitem',0); + jQuery('#jform_add_php_before_getitem').prop('required','required'); + jQuery('#jform_add_php_before_getitem').attr('aria-required',true); + jQuery('#jform_add_php_before_getitem').addClass('required'); + jform_vvvvwabvwt_required = false; + } } else { - jQuery('#jform_php_after_getitems-lbl').closest('.control-group').hide(); + jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); + // remove required attribute from add_php_after_getitem field + if (!jform_vvvvwabvws_required) + { + updateFieldRequired('add_php_after_getitem',1); + jQuery('#jform_add_php_after_getitem').removeAttr('required'); + jQuery('#jform_add_php_after_getitem').removeAttr('aria-required'); + jQuery('#jform_add_php_after_getitem').removeClass('required'); + jform_vvvvwabvws_required = true; + } + jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); + // remove required attribute from add_php_before_getitem field + if (!jform_vvvvwabvwt_required) + { + updateFieldRequired('add_php_before_getitem',1); + jQuery('#jform_add_php_before_getitem').removeAttr('required'); + jQuery('#jform_add_php_before_getitem').removeAttr('aria-required'); + jQuery('#jform_add_php_before_getitem').removeClass('required'); + jform_vvvvwabvwt_required = true; + } } } -// the vvvvwab Some function -function add_php_after_getitems_vvvvwab_SomeFunc(add_php_after_getitems_vvvvwab) -{ - // set the function logic - if (add_php_after_getitems_vvvvwab == 1) - { - return true; - } - return false; -} - // the vvvvwab Some function function gettype_vvvvwab_SomeFunc(gettype_vvvvwab) { // set the function logic - if (gettype_vvvvwab == 2 || gettype_vvvvwab == 4) + if (gettype_vvvvwab == 1 || gettype_vvvvwab == 3) + { + return true; + } + return false; +} + +// the vvvvwac function +function vvvvwac(add_php_getlistquery_vvvvwac,gettype_vvvvwac) +{ + if (isSet(add_php_getlistquery_vvvvwac) && add_php_getlistquery_vvvvwac.constructor !== Array) + { + var temp_vvvvwac = add_php_getlistquery_vvvvwac; + var add_php_getlistquery_vvvvwac = []; + add_php_getlistquery_vvvvwac.push(temp_vvvvwac); + } + else if (!isSet(add_php_getlistquery_vvvvwac)) + { + var add_php_getlistquery_vvvvwac = []; + } + var add_php_getlistquery = add_php_getlistquery_vvvvwac.some(add_php_getlistquery_vvvvwac_SomeFunc); + + if (isSet(gettype_vvvvwac) && gettype_vvvvwac.constructor !== Array) + { + var temp_vvvvwac = gettype_vvvvwac; + var gettype_vvvvwac = []; + gettype_vvvvwac.push(temp_vvvvwac); + } + else if (!isSet(gettype_vvvvwac)) + { + var gettype_vvvvwac = []; + } + var gettype = gettype_vvvvwac.some(gettype_vvvvwac_SomeFunc); + + + // set this function logic + if (add_php_getlistquery && gettype) + { + jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide(); + } +} + +// the vvvvwac Some function +function add_php_getlistquery_vvvvwac_SomeFunc(add_php_getlistquery_vvvvwac) +{ + // set the function logic + if (add_php_getlistquery_vvvvwac == 1) + { + return true; + } + return false; +} + +// the vvvvwac Some function +function gettype_vvvvwac_SomeFunc(gettype_vvvvwac) +{ + // set the function logic + if (gettype_vvvvwac == 2 || gettype_vvvvwac == 4) { return true; } @@ -1025,8 +903,20 @@ function gettype_vvvvwab_SomeFunc(gettype_vvvvwab) } // the vvvvwad function -function vvvvwad(gettype_vvvvwad) +function vvvvwad(add_php_before_getitems_vvvvwad,gettype_vvvvwad) { + if (isSet(add_php_before_getitems_vvvvwad) && add_php_before_getitems_vvvvwad.constructor !== Array) + { + var temp_vvvvwad = add_php_before_getitems_vvvvwad; + var add_php_before_getitems_vvvvwad = []; + add_php_before_getitems_vvvvwad.push(temp_vvvvwad); + } + else if (!isSet(add_php_before_getitems_vvvvwad)) + { + var add_php_before_getitems_vvvvwad = []; + } + var add_php_before_getitems = add_php_before_getitems_vvvvwad.some(add_php_before_getitems_vvvvwad_SomeFunc); + if (isSet(gettype_vvvvwad) && gettype_vvvvwad.constructor !== Array) { var temp_vvvvwad = gettype_vvvvwad; @@ -1041,74 +931,27 @@ function vvvvwad(gettype_vvvvwad) // set this function logic - if (gettype) + if (add_php_before_getitems && gettype) { - jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); - // add required attribute to add_php_after_getitems field - if (jform_vvvvwadvwt_required) - { - updateFieldRequired('add_php_after_getitems',0); - jQuery('#jform_add_php_after_getitems').prop('required','required'); - jQuery('#jform_add_php_after_getitems').attr('aria-required',true); - jQuery('#jform_add_php_after_getitems').addClass('required'); - jform_vvvvwadvwt_required = false; - } - jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); - // add required attribute to add_php_before_getitems field - if (jform_vvvvwadvwu_required) - { - updateFieldRequired('add_php_before_getitems',0); - jQuery('#jform_add_php_before_getitems').prop('required','required'); - jQuery('#jform_add_php_before_getitems').attr('aria-required',true); - jQuery('#jform_add_php_before_getitems').addClass('required'); - jform_vvvvwadvwu_required = false; - } - jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); - // add required attribute to add_php_getlistquery field - if (jform_vvvvwadvwv_required) - { - updateFieldRequired('add_php_getlistquery',0); - jQuery('#jform_add_php_getlistquery').prop('required','required'); - jQuery('#jform_add_php_getlistquery').attr('aria-required',true); - jQuery('#jform_add_php_getlistquery').addClass('required'); - jform_vvvvwadvwv_required = false; - } + jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show(); } else { - jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); - // remove required attribute from add_php_after_getitems field - if (!jform_vvvvwadvwt_required) - { - updateFieldRequired('add_php_after_getitems',1); - jQuery('#jform_add_php_after_getitems').removeAttr('required'); - jQuery('#jform_add_php_after_getitems').removeAttr('aria-required'); - jQuery('#jform_add_php_after_getitems').removeClass('required'); - jform_vvvvwadvwt_required = true; - } - jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); - // remove required attribute from add_php_before_getitems field - if (!jform_vvvvwadvwu_required) - { - updateFieldRequired('add_php_before_getitems',1); - jQuery('#jform_add_php_before_getitems').removeAttr('required'); - jQuery('#jform_add_php_before_getitems').removeAttr('aria-required'); - jQuery('#jform_add_php_before_getitems').removeClass('required'); - jform_vvvvwadvwu_required = true; - } - jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); - // remove required attribute from add_php_getlistquery field - if (!jform_vvvvwadvwv_required) - { - updateFieldRequired('add_php_getlistquery',1); - jQuery('#jform_add_php_getlistquery').removeAttr('required'); - jQuery('#jform_add_php_getlistquery').removeAttr('aria-required'); - jQuery('#jform_add_php_getlistquery').removeClass('required'); - jform_vvvvwadvwv_required = true; - } + jQuery('#jform_php_before_getitems-lbl').closest('.control-group').hide(); } } +// the vvvvwad Some function +function add_php_before_getitems_vvvvwad_SomeFunc(add_php_before_getitems_vvvvwad) +{ + // set the function logic + if (add_php_before_getitems_vvvvwad == 1) + { + return true; + } + return false; +} + // the vvvvwad Some function function gettype_vvvvwad_SomeFunc(gettype_vvvvwad) { @@ -1121,8 +964,20 @@ function gettype_vvvvwad_SomeFunc(gettype_vvvvwad) } // the vvvvwae function -function vvvvwae(gettype_vvvvwae) +function vvvvwae(add_php_after_getitems_vvvvwae,gettype_vvvvwae) { + if (isSet(add_php_after_getitems_vvvvwae) && add_php_after_getitems_vvvvwae.constructor !== Array) + { + var temp_vvvvwae = add_php_after_getitems_vvvvwae; + var add_php_after_getitems_vvvvwae = []; + add_php_after_getitems_vvvvwae.push(temp_vvvvwae); + } + else if (!isSet(add_php_after_getitems_vvvvwae)) + { + var add_php_after_getitems_vvvvwae = []; + } + var add_php_after_getitems = add_php_after_getitems_vvvvwae.some(add_php_after_getitems_vvvvwae_SomeFunc); + if (isSet(gettype_vvvvwae) && gettype_vvvvwae.constructor !== Array) { var temp_vvvvwae = gettype_vvvvwae; @@ -1137,95 +992,32 @@ function vvvvwae(gettype_vvvvwae) // set this function logic - if (gettype) + if (add_php_after_getitems && gettype) { - jQuery('#jform_pagination').closest('.control-group').show(); - // add required attribute to pagination field - if (jform_vvvvwaevww_required) - { - updateFieldRequired('pagination',0); - jQuery('#jform_pagination').prop('required','required'); - jQuery('#jform_pagination').attr('aria-required',true); - jQuery('#jform_pagination').addClass('required'); - jform_vvvvwaevww_required = false; - } + jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show(); } else { - jQuery('#jform_pagination').closest('.control-group').hide(); - // remove required attribute from pagination field - if (!jform_vvvvwaevww_required) - { - updateFieldRequired('pagination',1); - jQuery('#jform_pagination').removeAttr('required'); - jQuery('#jform_pagination').removeAttr('aria-required'); - jQuery('#jform_pagination').removeClass('required'); - jform_vvvvwaevww_required = true; - } + jQuery('#jform_php_after_getitems-lbl').closest('.control-group').hide(); } } // the vvvvwae Some function -function gettype_vvvvwae_SomeFunc(gettype_vvvvwae) +function add_php_after_getitems_vvvvwae_SomeFunc(add_php_after_getitems_vvvvwae) { // set the function logic - if (gettype_vvvvwae == 2) + if (add_php_after_getitems_vvvvwae == 1) { return true; } return false; } -// the vvvvwaf function -function vvvvwaf(gettype_vvvvwaf) -{ - if (isSet(gettype_vvvvwaf) && gettype_vvvvwaf.constructor !== Array) - { - var temp_vvvvwaf = gettype_vvvvwaf; - var gettype_vvvvwaf = []; - gettype_vvvvwaf.push(temp_vvvvwaf); - } - else if (!isSet(gettype_vvvvwaf)) - { - var gettype_vvvvwaf = []; - } - var gettype = gettype_vvvvwaf.some(gettype_vvvvwaf_SomeFunc); - - - // set this function logic - if (gettype) - { - jQuery('#jform_add_php_router_parse').closest('.control-group').show(); - // add required attribute to add_php_router_parse field - if (jform_vvvvwafvwx_required) - { - updateFieldRequired('add_php_router_parse',0); - jQuery('#jform_add_php_router_parse').prop('required','required'); - jQuery('#jform_add_php_router_parse').attr('aria-required',true); - jQuery('#jform_add_php_router_parse').addClass('required'); - jform_vvvvwafvwx_required = false; - } - } - else - { - jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); - // remove required attribute from add_php_router_parse field - if (!jform_vvvvwafvwx_required) - { - updateFieldRequired('add_php_router_parse',1); - jQuery('#jform_add_php_router_parse').removeAttr('required'); - jQuery('#jform_add_php_router_parse').removeAttr('aria-required'); - jQuery('#jform_add_php_router_parse').removeClass('required'); - jform_vvvvwafvwx_required = true; - } - } -} - -// the vvvvwaf Some function -function gettype_vvvvwaf_SomeFunc(gettype_vvvvwaf) +// the vvvvwae Some function +function gettype_vvvvwae_SomeFunc(gettype_vvvvwae) { // set the function logic - if (gettype_vvvvwaf == 1 || gettype_vvvvwaf == 2) + if (gettype_vvvvwae == 2 || gettype_vvvvwae == 4) { return true; } @@ -1233,7 +1025,7 @@ function gettype_vvvvwaf_SomeFunc(gettype_vvvvwaf) } // the vvvvwag function -function vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag) +function vvvvwag(gettype_vvvvwag) { if (isSet(gettype_vvvvwag) && gettype_vvvvwag.constructor !== Array) { @@ -1247,44 +1039,72 @@ function vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag) } var gettype = gettype_vvvvwag.some(gettype_vvvvwag_SomeFunc); - if (isSet(add_php_router_parse_vvvvwag) && add_php_router_parse_vvvvwag.constructor !== Array) - { - var temp_vvvvwag = add_php_router_parse_vvvvwag; - var add_php_router_parse_vvvvwag = []; - add_php_router_parse_vvvvwag.push(temp_vvvvwag); - } - else if (!isSet(add_php_router_parse_vvvvwag)) - { - var add_php_router_parse_vvvvwag = []; - } - var add_php_router_parse = add_php_router_parse_vvvvwag.some(add_php_router_parse_vvvvwag_SomeFunc); - // set this function logic - if (gettype && add_php_router_parse) + if (gettype) { - jQuery('#jform_php_router_parse').closest('.control-group').show(); - // add required attribute to php_router_parse field - if (jform_vvvvwagvwy_required) + jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); + // add required attribute to add_php_after_getitems field + if (jform_vvvvwagvwu_required) { - updateFieldRequired('php_router_parse',0); - jQuery('#jform_php_router_parse').prop('required','required'); - jQuery('#jform_php_router_parse').attr('aria-required',true); - jQuery('#jform_php_router_parse').addClass('required'); - jform_vvvvwagvwy_required = false; + updateFieldRequired('add_php_after_getitems',0); + jQuery('#jform_add_php_after_getitems').prop('required','required'); + jQuery('#jform_add_php_after_getitems').attr('aria-required',true); + jQuery('#jform_add_php_after_getitems').addClass('required'); + jform_vvvvwagvwu_required = false; + } + jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); + // add required attribute to add_php_before_getitems field + if (jform_vvvvwagvwv_required) + { + updateFieldRequired('add_php_before_getitems',0); + jQuery('#jform_add_php_before_getitems').prop('required','required'); + jQuery('#jform_add_php_before_getitems').attr('aria-required',true); + jQuery('#jform_add_php_before_getitems').addClass('required'); + jform_vvvvwagvwv_required = false; + } + jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); + // add required attribute to add_php_getlistquery field + if (jform_vvvvwagvww_required) + { + updateFieldRequired('add_php_getlistquery',0); + jQuery('#jform_add_php_getlistquery').prop('required','required'); + jQuery('#jform_add_php_getlistquery').attr('aria-required',true); + jQuery('#jform_add_php_getlistquery').addClass('required'); + jform_vvvvwagvww_required = false; } } else { - jQuery('#jform_php_router_parse').closest('.control-group').hide(); - // remove required attribute from php_router_parse field - if (!jform_vvvvwagvwy_required) + jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); + // remove required attribute from add_php_after_getitems field + if (!jform_vvvvwagvwu_required) { - updateFieldRequired('php_router_parse',1); - jQuery('#jform_php_router_parse').removeAttr('required'); - jQuery('#jform_php_router_parse').removeAttr('aria-required'); - jQuery('#jform_php_router_parse').removeClass('required'); - jform_vvvvwagvwy_required = true; + updateFieldRequired('add_php_after_getitems',1); + jQuery('#jform_add_php_after_getitems').removeAttr('required'); + jQuery('#jform_add_php_after_getitems').removeAttr('aria-required'); + jQuery('#jform_add_php_after_getitems').removeClass('required'); + jform_vvvvwagvwu_required = true; + } + jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); + // remove required attribute from add_php_before_getitems field + if (!jform_vvvvwagvwv_required) + { + updateFieldRequired('add_php_before_getitems',1); + jQuery('#jform_add_php_before_getitems').removeAttr('required'); + jQuery('#jform_add_php_before_getitems').removeAttr('aria-required'); + jQuery('#jform_add_php_before_getitems').removeClass('required'); + jform_vvvvwagvwv_required = true; + } + jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); + // remove required attribute from add_php_getlistquery field + if (!jform_vvvvwagvww_required) + { + updateFieldRequired('add_php_getlistquery',1); + jQuery('#jform_add_php_getlistquery').removeAttr('required'); + jQuery('#jform_add_php_getlistquery').removeAttr('aria-required'); + jQuery('#jform_add_php_getlistquery').removeClass('required'); + jform_vvvvwagvww_required = true; } } } @@ -1293,18 +1113,63 @@ function vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag) function gettype_vvvvwag_SomeFunc(gettype_vvvvwag) { // set the function logic - if (gettype_vvvvwag == 1 || gettype_vvvvwag == 2) + if (gettype_vvvvwag == 2 || gettype_vvvvwag == 4) { return true; } return false; } -// the vvvvwag Some function -function add_php_router_parse_vvvvwag_SomeFunc(add_php_router_parse_vvvvwag) +// the vvvvwah function +function vvvvwah(gettype_vvvvwah) +{ + if (isSet(gettype_vvvvwah) && gettype_vvvvwah.constructor !== Array) + { + var temp_vvvvwah = gettype_vvvvwah; + var gettype_vvvvwah = []; + gettype_vvvvwah.push(temp_vvvvwah); + } + else if (!isSet(gettype_vvvvwah)) + { + var gettype_vvvvwah = []; + } + var gettype = gettype_vvvvwah.some(gettype_vvvvwah_SomeFunc); + + + // set this function logic + if (gettype) + { + jQuery('#jform_pagination').closest('.control-group').show(); + // add required attribute to pagination field + if (jform_vvvvwahvwx_required) + { + updateFieldRequired('pagination',0); + jQuery('#jform_pagination').prop('required','required'); + jQuery('#jform_pagination').attr('aria-required',true); + jQuery('#jform_pagination').addClass('required'); + jform_vvvvwahvwx_required = false; + } + } + else + { + jQuery('#jform_pagination').closest('.control-group').hide(); + // remove required attribute from pagination field + if (!jform_vvvvwahvwx_required) + { + updateFieldRequired('pagination',1); + jQuery('#jform_pagination').removeAttr('required'); + jQuery('#jform_pagination').removeAttr('aria-required'); + jQuery('#jform_pagination').removeClass('required'); + jform_vvvvwahvwx_required = true; + } + } +} + +// the vvvvwah Some function +function gettype_vvvvwah_SomeFunc(gettype_vvvvwah) { // set the function logic - if (add_php_router_parse_vvvvwag == 1) + if (gettype_vvvvwah == 2) { return true; } @@ -1327,6 +1192,141 @@ function vvvvwai(gettype_vvvvwai) var gettype = gettype_vvvvwai.some(gettype_vvvvwai_SomeFunc); + // set this function logic + if (gettype) + { + jQuery('#jform_add_php_router_parse').closest('.control-group').show(); + // add required attribute to add_php_router_parse field + if (jform_vvvvwaivwy_required) + { + updateFieldRequired('add_php_router_parse',0); + jQuery('#jform_add_php_router_parse').prop('required','required'); + jQuery('#jform_add_php_router_parse').attr('aria-required',true); + jQuery('#jform_add_php_router_parse').addClass('required'); + jform_vvvvwaivwy_required = false; + } + } + else + { + jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); + // remove required attribute from add_php_router_parse field + if (!jform_vvvvwaivwy_required) + { + updateFieldRequired('add_php_router_parse',1); + jQuery('#jform_add_php_router_parse').removeAttr('required'); + jQuery('#jform_add_php_router_parse').removeAttr('aria-required'); + jQuery('#jform_add_php_router_parse').removeClass('required'); + jform_vvvvwaivwy_required = true; + } + } +} + +// the vvvvwai Some function +function gettype_vvvvwai_SomeFunc(gettype_vvvvwai) +{ + // set the function logic + if (gettype_vvvvwai == 1 || gettype_vvvvwai == 2) + { + return true; + } + return false; +} + +// the vvvvwaj function +function vvvvwaj(gettype_vvvvwaj,add_php_router_parse_vvvvwaj) +{ + if (isSet(gettype_vvvvwaj) && gettype_vvvvwaj.constructor !== Array) + { + var temp_vvvvwaj = gettype_vvvvwaj; + var gettype_vvvvwaj = []; + gettype_vvvvwaj.push(temp_vvvvwaj); + } + else if (!isSet(gettype_vvvvwaj)) + { + var gettype_vvvvwaj = []; + } + var gettype = gettype_vvvvwaj.some(gettype_vvvvwaj_SomeFunc); + + if (isSet(add_php_router_parse_vvvvwaj) && add_php_router_parse_vvvvwaj.constructor !== Array) + { + var temp_vvvvwaj = add_php_router_parse_vvvvwaj; + var add_php_router_parse_vvvvwaj = []; + add_php_router_parse_vvvvwaj.push(temp_vvvvwaj); + } + else if (!isSet(add_php_router_parse_vvvvwaj)) + { + var add_php_router_parse_vvvvwaj = []; + } + var add_php_router_parse = add_php_router_parse_vvvvwaj.some(add_php_router_parse_vvvvwaj_SomeFunc); + + + // set this function logic + if (gettype && add_php_router_parse) + { + jQuery('#jform_php_router_parse').closest('.control-group').show(); + // add required attribute to php_router_parse field + if (jform_vvvvwajvwz_required) + { + updateFieldRequired('php_router_parse',0); + jQuery('#jform_php_router_parse').prop('required','required'); + jQuery('#jform_php_router_parse').attr('aria-required',true); + jQuery('#jform_php_router_parse').addClass('required'); + jform_vvvvwajvwz_required = false; + } + } + else + { + jQuery('#jform_php_router_parse').closest('.control-group').hide(); + // remove required attribute from php_router_parse field + if (!jform_vvvvwajvwz_required) + { + updateFieldRequired('php_router_parse',1); + jQuery('#jform_php_router_parse').removeAttr('required'); + jQuery('#jform_php_router_parse').removeAttr('aria-required'); + jQuery('#jform_php_router_parse').removeClass('required'); + jform_vvvvwajvwz_required = true; + } + } +} + +// the vvvvwaj Some function +function gettype_vvvvwaj_SomeFunc(gettype_vvvvwaj) +{ + // set the function logic + if (gettype_vvvvwaj == 1 || gettype_vvvvwaj == 2) + { + return true; + } + return false; +} + +// the vvvvwaj Some function +function add_php_router_parse_vvvvwaj_SomeFunc(add_php_router_parse_vvvvwaj) +{ + // set the function logic + if (add_php_router_parse_vvvvwaj == 1) + { + return true; + } + return false; +} + +// the vvvvwal function +function vvvvwal(gettype_vvvvwal) +{ + if (isSet(gettype_vvvvwal) && gettype_vvvvwal.constructor !== Array) + { + var temp_vvvvwal = gettype_vvvvwal; + var gettype_vvvvwal = []; + gettype_vvvvwal.push(temp_vvvvwal); + } + else if (!isSet(gettype_vvvvwal)) + { + var gettype_vvvvwal = []; + } + var gettype = gettype_vvvvwal.some(gettype_vvvvwal_SomeFunc); + + // set this function logic if (gettype) { @@ -1338,11 +1338,11 @@ function vvvvwai(gettype_vvvvwai) } } -// the vvvvwai Some function -function gettype_vvvvwai_SomeFunc(gettype_vvvvwai) +// the vvvvwal Some function +function gettype_vvvvwal_SomeFunc(gettype_vvvvwal) { // set the function logic - if (gettype_vvvvwai == 1) + if (gettype_vvvvwal == 1) { return true; } diff --git a/admin/models/forms/field.js b/admin/models/forms/field.js index 9aa9a6970..6ae2f6468 100644 --- a/admin/models/forms/field.js +++ b/admin/models/forms/field.js @@ -9,57 +9,57 @@ */ // Some Global Values -jform_vvvvwaxvxh_required = false; -jform_vvvvwayvxi_required = false; -jform_vvvvwazvxj_required = false; -jform_vvvvwbavxk_required = false; +jform_vvvvwbavxi_required = false; +jform_vvvvwbbvxj_required = false; +jform_vvvvwbcvxk_required = false; +jform_vvvvwbdvxl_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwax = jQuery("#jform_datalenght").val(); - vvvvwax(datalenght_vvvvwax); + var datalenght_vvvvwba = jQuery("#jform_datalenght").val(); + vvvvwba(datalenght_vvvvwba); - var datadefault_vvvvway = jQuery("#jform_datadefault").val(); - vvvvway(datadefault_vvvvway); + var datadefault_vvvvwbb = jQuery("#jform_datadefault").val(); + vvvvwbb(datadefault_vvvvwbb); - var datatype_vvvvwaz = jQuery("#jform_datatype").val(); - vvvvwaz(datatype_vvvvwaz); + var datatype_vvvvwbc = jQuery("#jform_datatype").val(); + vvvvwbc(datatype_vvvvwbc); - var datatype_vvvvwba = jQuery("#jform_datatype").val(); - vvvvwba(datatype_vvvvwba); + var datatype_vvvvwbd = jQuery("#jform_datatype").val(); + vvvvwbd(datatype_vvvvwbd); - var store_vvvvwbb = jQuery("#jform_store").val(); - var datatype_vvvvwbb = jQuery("#jform_datatype").val(); - vvvvwbb(store_vvvvwbb,datatype_vvvvwbb); + var store_vvvvwbe = jQuery("#jform_store").val(); + var datatype_vvvvwbe = jQuery("#jform_datatype").val(); + vvvvwbe(store_vvvvwbe,datatype_vvvvwbe); - var add_css_view_vvvvwbd = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvwbd(add_css_view_vvvvwbd); + var add_css_view_vvvvwbg = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvwbg(add_css_view_vvvvwbg); - var add_css_views_vvvvwbe = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvwbe(add_css_views_vvvvwbe); + var add_css_views_vvvvwbh = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvwbh(add_css_views_vvvvwbh); - var add_javascript_view_footer_vvvvwbf = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvwbf(add_javascript_view_footer_vvvvwbf); + var add_javascript_view_footer_vvvvwbi = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvwbi(add_javascript_view_footer_vvvvwbi); - var add_javascript_views_footer_vvvvwbg = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvwbg(add_javascript_views_footer_vvvvwbg); + var add_javascript_views_footer_vvvvwbj = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvwbj(add_javascript_views_footer_vvvvwbj); }); -// the vvvvwax function -function vvvvwax(datalenght_vvvvwax) +// the vvvvwba function +function vvvvwba(datalenght_vvvvwba) { - if (isSet(datalenght_vvvvwax) && datalenght_vvvvwax.constructor !== Array) + if (isSet(datalenght_vvvvwba) && datalenght_vvvvwba.constructor !== Array) { - var temp_vvvvwax = datalenght_vvvvwax; - var datalenght_vvvvwax = []; - datalenght_vvvvwax.push(temp_vvvvwax); + var temp_vvvvwba = datalenght_vvvvwba; + var datalenght_vvvvwba = []; + datalenght_vvvvwba.push(temp_vvvvwba); } - else if (!isSet(datalenght_vvvvwax)) + else if (!isSet(datalenght_vvvvwba)) { - var datalenght_vvvvwax = []; + var datalenght_vvvvwba = []; } - var datalenght = datalenght_vvvvwax.some(datalenght_vvvvwax_SomeFunc); + var datalenght = datalenght_vvvvwba.some(datalenght_vvvvwba_SomeFunc); // set this function logic @@ -67,55 +67,55 @@ function vvvvwax(datalenght_vvvvwax) { jQuery('#jform_datalenght_other').closest('.control-group').show(); // add required attribute to datalenght_other field - if (jform_vvvvwaxvxh_required) + if (jform_vvvvwbavxi_required) { updateFieldRequired('datalenght_other',0); jQuery('#jform_datalenght_other').prop('required','required'); jQuery('#jform_datalenght_other').attr('aria-required',true); jQuery('#jform_datalenght_other').addClass('required'); - jform_vvvvwaxvxh_required = false; + jform_vvvvwbavxi_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); // remove required attribute from datalenght_other field - if (!jform_vvvvwaxvxh_required) + if (!jform_vvvvwbavxi_required) { updateFieldRequired('datalenght_other',1); jQuery('#jform_datalenght_other').removeAttr('required'); jQuery('#jform_datalenght_other').removeAttr('aria-required'); jQuery('#jform_datalenght_other').removeClass('required'); - jform_vvvvwaxvxh_required = true; + jform_vvvvwbavxi_required = true; } } } -// the vvvvwax Some function -function datalenght_vvvvwax_SomeFunc(datalenght_vvvvwax) +// the vvvvwba Some function +function datalenght_vvvvwba_SomeFunc(datalenght_vvvvwba) { // set the function logic - if (datalenght_vvvvwax == 'Other') + if (datalenght_vvvvwba == 'Other') { return true; } return false; } -// the vvvvway function -function vvvvway(datadefault_vvvvway) +// the vvvvwbb function +function vvvvwbb(datadefault_vvvvwbb) { - if (isSet(datadefault_vvvvway) && datadefault_vvvvway.constructor !== Array) + if (isSet(datadefault_vvvvwbb) && datadefault_vvvvwbb.constructor !== Array) { - var temp_vvvvway = datadefault_vvvvway; - var datadefault_vvvvway = []; - datadefault_vvvvway.push(temp_vvvvway); + var temp_vvvvwbb = datadefault_vvvvwbb; + var datadefault_vvvvwbb = []; + datadefault_vvvvwbb.push(temp_vvvvwbb); } - else if (!isSet(datadefault_vvvvway)) + else if (!isSet(datadefault_vvvvwbb)) { - var datadefault_vvvvway = []; + var datadefault_vvvvwbb = []; } - var datadefault = datadefault_vvvvway.some(datadefault_vvvvway_SomeFunc); + var datadefault = datadefault_vvvvwbb.some(datadefault_vvvvwbb_SomeFunc); // set this function logic @@ -123,55 +123,55 @@ function vvvvway(datadefault_vvvvway) { jQuery('#jform_datadefault_other').closest('.control-group').show(); // add required attribute to datadefault_other field - if (jform_vvvvwayvxi_required) + if (jform_vvvvwbbvxj_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_vvvvwayvxi_required = false; + jform_vvvvwbbvxj_required = false; } } else { jQuery('#jform_datadefault_other').closest('.control-group').hide(); // remove required attribute from datadefault_other field - if (!jform_vvvvwayvxi_required) + if (!jform_vvvvwbbvxj_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_vvvvwayvxi_required = true; + jform_vvvvwbbvxj_required = true; } } } -// the vvvvway Some function -function datadefault_vvvvway_SomeFunc(datadefault_vvvvway) +// the vvvvwbb Some function +function datadefault_vvvvwbb_SomeFunc(datadefault_vvvvwbb) { // set the function logic - if (datadefault_vvvvway == 'Other') + if (datadefault_vvvvwbb == 'Other') { return true; } return false; } -// the vvvvwaz function -function vvvvwaz(datatype_vvvvwaz) +// the vvvvwbc function +function vvvvwbc(datatype_vvvvwbc) { - if (isSet(datatype_vvvvwaz) && datatype_vvvvwaz.constructor !== Array) + if (isSet(datatype_vvvvwbc) && datatype_vvvvwbc.constructor !== Array) { - var temp_vvvvwaz = datatype_vvvvwaz; - var datatype_vvvvwaz = []; - datatype_vvvvwaz.push(temp_vvvvwaz); + var temp_vvvvwbc = datatype_vvvvwbc; + var datatype_vvvvwbc = []; + datatype_vvvvwbc.push(temp_vvvvwbc); } - else if (!isSet(datatype_vvvvwaz)) + else if (!isSet(datatype_vvvvwbc)) { - var datatype_vvvvwaz = []; + var datatype_vvvvwbc = []; } - var datatype = datatype_vvvvwaz.some(datatype_vvvvwaz_SomeFunc); + var datatype = datatype_vvvvwbc.some(datatype_vvvvwbc_SomeFunc); // set this function logic @@ -181,13 +181,13 @@ function vvvvwaz(datatype_vvvvwaz) jQuery('#jform_datalenght').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show(); // add required attribute to indexes field - if (jform_vvvvwazvxj_required) + if (jform_vvvvwbcvxk_required) { updateFieldRequired('indexes',0); jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_indexes').addClass('required'); - jform_vvvvwazvxj_required = false; + jform_vvvvwbcvxk_required = false; } } else @@ -196,42 +196,42 @@ function vvvvwaz(datatype_vvvvwaz) jQuery('#jform_datalenght').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide(); // remove required attribute from indexes field - if (!jform_vvvvwazvxj_required) + if (!jform_vvvvwbcvxk_required) { updateFieldRequired('indexes',1); jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwazvxj_required = true; + jform_vvvvwbcvxk_required = true; } } } -// the vvvvwaz Some function -function datatype_vvvvwaz_SomeFunc(datatype_vvvvwaz) +// the vvvvwbc Some function +function datatype_vvvvwbc_SomeFunc(datatype_vvvvwbc) { // set the function logic - if (datatype_vvvvwaz == 'CHAR' || datatype_vvvvwaz == 'VARCHAR' || datatype_vvvvwaz == 'DATETIME' || datatype_vvvvwaz == 'DATE' || datatype_vvvvwaz == 'TIME' || datatype_vvvvwaz == 'INT' || datatype_vvvvwaz == 'TINYINT' || datatype_vvvvwaz == 'BIGINT' || datatype_vvvvwaz == 'FLOAT' || datatype_vvvvwaz == 'DECIMAL' || datatype_vvvvwaz == 'DOUBLE') + if (datatype_vvvvwbc == 'CHAR' || datatype_vvvvwbc == 'VARCHAR' || datatype_vvvvwbc == 'DATETIME' || datatype_vvvvwbc == 'DATE' || datatype_vvvvwbc == 'TIME' || datatype_vvvvwbc == 'INT' || datatype_vvvvwbc == 'TINYINT' || datatype_vvvvwbc == 'BIGINT' || datatype_vvvvwbc == 'FLOAT' || datatype_vvvvwbc == 'DECIMAL' || datatype_vvvvwbc == 'DOUBLE') { return true; } return false; } -// the vvvvwba function -function vvvvwba(datatype_vvvvwba) +// the vvvvwbd function +function vvvvwbd(datatype_vvvvwbd) { - if (isSet(datatype_vvvvwba) && datatype_vvvvwba.constructor !== Array) + if (isSet(datatype_vvvvwbd) && datatype_vvvvwbd.constructor !== Array) { - var temp_vvvvwba = datatype_vvvvwba; - var datatype_vvvvwba = []; - datatype_vvvvwba.push(temp_vvvvwba); + var temp_vvvvwbd = datatype_vvvvwbd; + var datatype_vvvvwbd = []; + datatype_vvvvwbd.push(temp_vvvvwbd); } - else if (!isSet(datatype_vvvvwba)) + else if (!isSet(datatype_vvvvwbd)) { - var datatype_vvvvwba = []; + var datatype_vvvvwbd = []; } - var datatype = datatype_vvvvwba.some(datatype_vvvvwba_SomeFunc); + var datatype = datatype_vvvvwbd.some(datatype_vvvvwbd_SomeFunc); // set this function logic @@ -239,67 +239,67 @@ function vvvvwba(datatype_vvvvwba) { jQuery('#jform_store').closest('.control-group').show(); // add required attribute to store field - if (jform_vvvvwbavxk_required) + if (jform_vvvvwbdvxl_required) { updateFieldRequired('store',0); jQuery('#jform_store').prop('required','required'); jQuery('#jform_store').attr('aria-required',true); jQuery('#jform_store').addClass('required'); - jform_vvvvwbavxk_required = false; + jform_vvvvwbdvxl_required = false; } } else { jQuery('#jform_store').closest('.control-group').hide(); // remove required attribute from store field - if (!jform_vvvvwbavxk_required) + if (!jform_vvvvwbdvxl_required) { updateFieldRequired('store',1); jQuery('#jform_store').removeAttr('required'); jQuery('#jform_store').removeAttr('aria-required'); jQuery('#jform_store').removeClass('required'); - jform_vvvvwbavxk_required = true; + jform_vvvvwbdvxl_required = true; } } } -// the vvvvwba Some function -function datatype_vvvvwba_SomeFunc(datatype_vvvvwba) +// the vvvvwbd Some function +function datatype_vvvvwbd_SomeFunc(datatype_vvvvwbd) { // set the function logic - if (datatype_vvvvwba == 'CHAR' || datatype_vvvvwba == 'VARCHAR' || datatype_vvvvwba == 'TEXT' || datatype_vvvvwba == 'MEDIUMTEXT' || datatype_vvvvwba == 'LONGTEXT' || datatype_vvvvwba == 'BLOB' || datatype_vvvvwba == 'TINYBLOB' || datatype_vvvvwba == 'MEDIUMBLOB' || datatype_vvvvwba == 'LONGBLOB') + if (datatype_vvvvwbd == 'CHAR' || datatype_vvvvwbd == 'VARCHAR' || datatype_vvvvwbd == 'TEXT' || datatype_vvvvwbd == 'MEDIUMTEXT' || datatype_vvvvwbd == 'LONGTEXT' || datatype_vvvvwbd == 'BLOB' || datatype_vvvvwbd == 'TINYBLOB' || datatype_vvvvwbd == 'MEDIUMBLOB' || datatype_vvvvwbd == 'LONGBLOB') { return true; } return false; } -// the vvvvwbb function -function vvvvwbb(store_vvvvwbb,datatype_vvvvwbb) +// the vvvvwbe function +function vvvvwbe(store_vvvvwbe,datatype_vvvvwbe) { - if (isSet(store_vvvvwbb) && store_vvvvwbb.constructor !== Array) + if (isSet(store_vvvvwbe) && store_vvvvwbe.constructor !== Array) { - var temp_vvvvwbb = store_vvvvwbb; - var store_vvvvwbb = []; - store_vvvvwbb.push(temp_vvvvwbb); + var temp_vvvvwbe = store_vvvvwbe; + var store_vvvvwbe = []; + store_vvvvwbe.push(temp_vvvvwbe); } - else if (!isSet(store_vvvvwbb)) + else if (!isSet(store_vvvvwbe)) { - var store_vvvvwbb = []; + var store_vvvvwbe = []; } - var store = store_vvvvwbb.some(store_vvvvwbb_SomeFunc); + var store = store_vvvvwbe.some(store_vvvvwbe_SomeFunc); - if (isSet(datatype_vvvvwbb) && datatype_vvvvwbb.constructor !== Array) + if (isSet(datatype_vvvvwbe) && datatype_vvvvwbe.constructor !== Array) { - var temp_vvvvwbb = datatype_vvvvwbb; - var datatype_vvvvwbb = []; - datatype_vvvvwbb.push(temp_vvvvwbb); + var temp_vvvvwbe = datatype_vvvvwbe; + var datatype_vvvvwbe = []; + datatype_vvvvwbe.push(temp_vvvvwbe); } - else if (!isSet(datatype_vvvvwbb)) + else if (!isSet(datatype_vvvvwbe)) { - var datatype_vvvvwbb = []; + var datatype_vvvvwbe = []; } - var datatype = datatype_vvvvwbb.some(datatype_vvvvwbb_SomeFunc); + var datatype = datatype_vvvvwbe.some(datatype_vvvvwbe_SomeFunc); // set this function logic @@ -313,33 +313,33 @@ function vvvvwbb(store_vvvvwbb,datatype_vvvvwbb) } } -// the vvvvwbb Some function -function store_vvvvwbb_SomeFunc(store_vvvvwbb) +// the vvvvwbe Some function +function store_vvvvwbe_SomeFunc(store_vvvvwbe) { // set the function logic - if (store_vvvvwbb == 4) + if (store_vvvvwbe == 4) { return true; } return false; } -// the vvvvwbb Some function -function datatype_vvvvwbb_SomeFunc(datatype_vvvvwbb) +// the vvvvwbe Some function +function datatype_vvvvwbe_SomeFunc(datatype_vvvvwbe) { // set the function logic - if (datatype_vvvvwbb == 'CHAR' || datatype_vvvvwbb == 'VARCHAR' || datatype_vvvvwbb == 'TEXT' || datatype_vvvvwbb == 'MEDIUMTEXT' || datatype_vvvvwbb == 'LONGTEXT' || datatype_vvvvwbb == 'BLOB' || datatype_vvvvwbb == 'TINYBLOB' || datatype_vvvvwbb == 'MEDIUMBLOB' || datatype_vvvvwbb == 'LONGBLOB') + if (datatype_vvvvwbe == 'CHAR' || datatype_vvvvwbe == 'VARCHAR' || datatype_vvvvwbe == 'TEXT' || datatype_vvvvwbe == 'MEDIUMTEXT' || datatype_vvvvwbe == 'LONGTEXT' || datatype_vvvvwbe == 'BLOB' || datatype_vvvvwbe == 'TINYBLOB' || datatype_vvvvwbe == 'MEDIUMBLOB' || datatype_vvvvwbe == 'LONGBLOB') { return true; } return false; } -// the vvvvwbd function -function vvvvwbd(add_css_view_vvvvwbd) +// the vvvvwbg function +function vvvvwbg(add_css_view_vvvvwbg) { // set the function logic - if (add_css_view_vvvvwbd == 1) + if (add_css_view_vvvvwbg == 1) { jQuery('#jform_css_view-lbl').closest('.control-group').show(); } @@ -349,11 +349,11 @@ function vvvvwbd(add_css_view_vvvvwbd) } } -// the vvvvwbe function -function vvvvwbe(add_css_views_vvvvwbe) +// the vvvvwbh function +function vvvvwbh(add_css_views_vvvvwbh) { // set the function logic - if (add_css_views_vvvvwbe == 1) + if (add_css_views_vvvvwbh == 1) { jQuery('#jform_css_views-lbl').closest('.control-group').show(); } @@ -363,11 +363,11 @@ function vvvvwbe(add_css_views_vvvvwbe) } } -// the vvvvwbf function -function vvvvwbf(add_javascript_view_footer_vvvvwbf) +// the vvvvwbi function +function vvvvwbi(add_javascript_view_footer_vvvvwbi) { // set the function logic - if (add_javascript_view_footer_vvvvwbf == 1) + if (add_javascript_view_footer_vvvvwbi == 1) { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); } @@ -377,11 +377,11 @@ function vvvvwbf(add_javascript_view_footer_vvvvwbf) } } -// the vvvvwbg function -function vvvvwbg(add_javascript_views_footer_vvvvwbg) +// the vvvvwbj function +function vvvvwbj(add_javascript_views_footer_vvvvwbj) { // set the function logic - if (add_javascript_views_footer_vvvvwbg == 1) + if (add_javascript_views_footer_vvvvwbj == 1) { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); } diff --git a/admin/models/forms/fieldtype.js b/admin/models/forms/fieldtype.js index 27bb8c29a..31671ac67 100644 --- a/admin/models/forms/fieldtype.js +++ b/admin/models/forms/fieldtype.js @@ -9,82 +9,82 @@ */ // Some Global Values -jform_vvvvwbhvxl_required = false; -jform_vvvvwbjvxm_required = false; -jform_vvvvwblvxn_required = false; -jform_vvvvwbmvxo_required = false; -jform_vvvvwbnvxp_required = false; -jform_vvvvwbsvxq_required = false; -jform_vvvvwbsvxr_required = false; +jform_vvvvwbkvxm_required = false; +jform_vvvvwbmvxn_required = false; +jform_vvvvwbovxo_required = false; +jform_vvvvwbpvxp_required = false; +jform_vvvvwbqvxq_required = false; +jform_vvvvwbvvxr_required = false; +jform_vvvvwbvvxs_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwbh = jQuery("#jform_datalenght").val(); - var has_defaults_vvvvwbh = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbh(datalenght_vvvvwbh,has_defaults_vvvvwbh); - - var datadefault_vvvvwbj = jQuery("#jform_datadefault").val(); - var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbj(datadefault_vvvvwbj,has_defaults_vvvvwbj); - - var datatype_vvvvwbl = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbl(datatype_vvvvwbl,has_defaults_vvvvwbl); + var datalenght_vvvvwbk = jQuery("#jform_datalenght").val(); + var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbk(datalenght_vvvvwbk,has_defaults_vvvvwbk); + var datadefault_vvvvwbm = jQuery("#jform_datadefault").val(); var has_defaults_vvvvwbm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - var datatype_vvvvwbm = jQuery("#jform_datatype").val(); - vvvvwbm(has_defaults_vvvvwbm,datatype_vvvvwbm); + vvvvwbm(datadefault_vvvvwbm,has_defaults_vvvvwbm); - var datatype_vvvvwbn = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwbn = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbn(datatype_vvvvwbn,has_defaults_vvvvwbn); + var datatype_vvvvwbo = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwbo = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbo(datatype_vvvvwbo,has_defaults_vvvvwbo); - var store_vvvvwbp = jQuery("#jform_store").val(); - var datatype_vvvvwbp = jQuery("#jform_datatype").val(); var has_defaults_vvvvwbp = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbp(store_vvvvwbp,datatype_vvvvwbp,has_defaults_vvvvwbp); + var datatype_vvvvwbp = jQuery("#jform_datatype").val(); + vvvvwbp(has_defaults_vvvvwbp,datatype_vvvvwbp); var datatype_vvvvwbq = jQuery("#jform_datatype").val(); - var store_vvvvwbq = jQuery("#jform_store").val(); var has_defaults_vvvvwbq = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbq(datatype_vvvvwbq,store_vvvvwbq,has_defaults_vvvvwbq); - - var has_defaults_vvvvwbr = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - var store_vvvvwbr = jQuery("#jform_store").val(); - var datatype_vvvvwbr = jQuery("#jform_datatype").val(); - vvvvwbr(has_defaults_vvvvwbr,store_vvvvwbr,datatype_vvvvwbr); + vvvvwbq(datatype_vvvvwbq,has_defaults_vvvvwbq); + var store_vvvvwbs = jQuery("#jform_store").val(); + var datatype_vvvvwbs = jQuery("#jform_datatype").val(); var has_defaults_vvvvwbs = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbs(has_defaults_vvvvwbs); + vvvvwbs(store_vvvvwbs,datatype_vvvvwbs,has_defaults_vvvvwbs); + + var datatype_vvvvwbt = jQuery("#jform_datatype").val(); + var store_vvvvwbt = jQuery("#jform_store").val(); + var has_defaults_vvvvwbt = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbt(datatype_vvvvwbt,store_vvvvwbt,has_defaults_vvvvwbt); + + var has_defaults_vvvvwbu = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + var store_vvvvwbu = jQuery("#jform_store").val(); + var datatype_vvvvwbu = jQuery("#jform_datatype").val(); + vvvvwbu(has_defaults_vvvvwbu,store_vvvvwbu,datatype_vvvvwbu); + + var has_defaults_vvvvwbv = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbv(has_defaults_vvvvwbv); }); -// the vvvvwbh function -function vvvvwbh(datalenght_vvvvwbh,has_defaults_vvvvwbh) +// the vvvvwbk function +function vvvvwbk(datalenght_vvvvwbk,has_defaults_vvvvwbk) { - if (isSet(datalenght_vvvvwbh) && datalenght_vvvvwbh.constructor !== Array) + if (isSet(datalenght_vvvvwbk) && datalenght_vvvvwbk.constructor !== Array) { - var temp_vvvvwbh = datalenght_vvvvwbh; - var datalenght_vvvvwbh = []; - datalenght_vvvvwbh.push(temp_vvvvwbh); + var temp_vvvvwbk = datalenght_vvvvwbk; + var datalenght_vvvvwbk = []; + datalenght_vvvvwbk.push(temp_vvvvwbk); } - else if (!isSet(datalenght_vvvvwbh)) + else if (!isSet(datalenght_vvvvwbk)) { - var datalenght_vvvvwbh = []; + var datalenght_vvvvwbk = []; } - var datalenght = datalenght_vvvvwbh.some(datalenght_vvvvwbh_SomeFunc); + var datalenght = datalenght_vvvvwbk.some(datalenght_vvvvwbk_SomeFunc); - if (isSet(has_defaults_vvvvwbh) && has_defaults_vvvvwbh.constructor !== Array) + if (isSet(has_defaults_vvvvwbk) && has_defaults_vvvvwbk.constructor !== Array) { - var temp_vvvvwbh = has_defaults_vvvvwbh; - var has_defaults_vvvvwbh = []; - has_defaults_vvvvwbh.push(temp_vvvvwbh); + var temp_vvvvwbk = has_defaults_vvvvwbk; + var has_defaults_vvvvwbk = []; + has_defaults_vvvvwbk.push(temp_vvvvwbk); } - else if (!isSet(has_defaults_vvvvwbh)) + else if (!isSet(has_defaults_vvvvwbk)) { - var has_defaults_vvvvwbh = []; + var has_defaults_vvvvwbk = []; } - var has_defaults = has_defaults_vvvvwbh.some(has_defaults_vvvvwbh_SomeFunc); + var has_defaults = has_defaults_vvvvwbk.some(has_defaults_vvvvwbk_SomeFunc); // set this function logic @@ -92,208 +92,46 @@ function vvvvwbh(datalenght_vvvvwbh,has_defaults_vvvvwbh) { jQuery('#jform_datalenght_other').closest('.control-group').show(); // add required attribute to datalenght_other field - if (jform_vvvvwbhvxl_required) + if (jform_vvvvwbkvxm_required) { updateFieldRequired('datalenght_other',0); jQuery('#jform_datalenght_other').prop('required','required'); jQuery('#jform_datalenght_other').attr('aria-required',true); jQuery('#jform_datalenght_other').addClass('required'); - jform_vvvvwbhvxl_required = false; + jform_vvvvwbkvxm_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); // remove required attribute from datalenght_other field - if (!jform_vvvvwbhvxl_required) + if (!jform_vvvvwbkvxm_required) { updateFieldRequired('datalenght_other',1); jQuery('#jform_datalenght_other').removeAttr('required'); jQuery('#jform_datalenght_other').removeAttr('aria-required'); jQuery('#jform_datalenght_other').removeClass('required'); - jform_vvvvwbhvxl_required = true; + jform_vvvvwbkvxm_required = true; } } } -// the vvvvwbh Some function -function datalenght_vvvvwbh_SomeFunc(datalenght_vvvvwbh) +// the vvvvwbk Some function +function datalenght_vvvvwbk_SomeFunc(datalenght_vvvvwbk) { // set the function logic - if (datalenght_vvvvwbh == 'Other') + if (datalenght_vvvvwbk == 'Other') { return true; } return false; } -// the vvvvwbh Some function -function has_defaults_vvvvwbh_SomeFunc(has_defaults_vvvvwbh) +// the vvvvwbk Some function +function has_defaults_vvvvwbk_SomeFunc(has_defaults_vvvvwbk) { // set the function logic - if (has_defaults_vvvvwbh == 1) - { - return true; - } - return false; -} - -// the vvvvwbj function -function vvvvwbj(datadefault_vvvvwbj,has_defaults_vvvvwbj) -{ - if (isSet(datadefault_vvvvwbj) && datadefault_vvvvwbj.constructor !== Array) - { - var temp_vvvvwbj = datadefault_vvvvwbj; - var datadefault_vvvvwbj = []; - datadefault_vvvvwbj.push(temp_vvvvwbj); - } - else if (!isSet(datadefault_vvvvwbj)) - { - var datadefault_vvvvwbj = []; - } - var datadefault = datadefault_vvvvwbj.some(datadefault_vvvvwbj_SomeFunc); - - if (isSet(has_defaults_vvvvwbj) && has_defaults_vvvvwbj.constructor !== Array) - { - var temp_vvvvwbj = has_defaults_vvvvwbj; - var has_defaults_vvvvwbj = []; - has_defaults_vvvvwbj.push(temp_vvvvwbj); - } - else if (!isSet(has_defaults_vvvvwbj)) - { - var has_defaults_vvvvwbj = []; - } - var has_defaults = has_defaults_vvvvwbj.some(has_defaults_vvvvwbj_SomeFunc); - - - // set this function logic - if (datadefault && has_defaults) - { - jQuery('#jform_datadefault_other').closest('.control-group').show(); - // add required attribute to datadefault_other field - if (jform_vvvvwbjvxm_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_vvvvwbjvxm_required = false; - } - } - else - { - jQuery('#jform_datadefault_other').closest('.control-group').hide(); - // remove required attribute from datadefault_other field - if (!jform_vvvvwbjvxm_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_vvvvwbjvxm_required = true; - } - } -} - -// the vvvvwbj Some function -function datadefault_vvvvwbj_SomeFunc(datadefault_vvvvwbj) -{ - // set the function logic - if (datadefault_vvvvwbj == 'Other') - { - return true; - } - return false; -} - -// the vvvvwbj Some function -function has_defaults_vvvvwbj_SomeFunc(has_defaults_vvvvwbj) -{ - // set the function logic - if (has_defaults_vvvvwbj == 1) - { - return true; - } - return false; -} - -// the vvvvwbl function -function vvvvwbl(datatype_vvvvwbl,has_defaults_vvvvwbl) -{ - if (isSet(datatype_vvvvwbl) && datatype_vvvvwbl.constructor !== Array) - { - var temp_vvvvwbl = datatype_vvvvwbl; - var datatype_vvvvwbl = []; - datatype_vvvvwbl.push(temp_vvvvwbl); - } - else if (!isSet(datatype_vvvvwbl)) - { - var datatype_vvvvwbl = []; - } - var datatype = datatype_vvvvwbl.some(datatype_vvvvwbl_SomeFunc); - - if (isSet(has_defaults_vvvvwbl) && has_defaults_vvvvwbl.constructor !== Array) - { - var temp_vvvvwbl = has_defaults_vvvvwbl; - var has_defaults_vvvvwbl = []; - has_defaults_vvvvwbl.push(temp_vvvvwbl); - } - else if (!isSet(has_defaults_vvvvwbl)) - { - var has_defaults_vvvvwbl = []; - } - var has_defaults = has_defaults_vvvvwbl.some(has_defaults_vvvvwbl_SomeFunc); - - - // set this function logic - if (datatype && has_defaults) - { - jQuery('#jform_datadefault').closest('.control-group').show(); - jQuery('#jform_datalenght').closest('.control-group').show(); - jQuery('#jform_indexes').closest('.control-group').show(); - // add required attribute to indexes field - if (jform_vvvvwblvxn_required) - { - updateFieldRequired('indexes',0); - jQuery('#jform_indexes').prop('required','required'); - jQuery('#jform_indexes').attr('aria-required',true); - jQuery('#jform_indexes').addClass('required'); - jform_vvvvwblvxn_required = false; - } - } - else - { - jQuery('#jform_datadefault').closest('.control-group').hide(); - jQuery('#jform_datalenght').closest('.control-group').hide(); - jQuery('#jform_indexes').closest('.control-group').hide(); - // remove required attribute from indexes field - if (!jform_vvvvwblvxn_required) - { - updateFieldRequired('indexes',1); - jQuery('#jform_indexes').removeAttr('required'); - jQuery('#jform_indexes').removeAttr('aria-required'); - jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwblvxn_required = true; - } - } -} - -// the vvvvwbl Some function -function datatype_vvvvwbl_SomeFunc(datatype_vvvvwbl) -{ - // set the function logic - if (datatype_vvvvwbl == 'CHAR' || datatype_vvvvwbl == 'VARCHAR' || datatype_vvvvwbl == 'DATETIME' || datatype_vvvvwbl == 'DATE' || datatype_vvvvwbl == 'TIME' || datatype_vvvvwbl == 'INT' || datatype_vvvvwbl == 'TINYINT' || datatype_vvvvwbl == 'BIGINT' || datatype_vvvvwbl == 'FLOAT' || datatype_vvvvwbl == 'DECIMAL' || datatype_vvvvwbl == 'DOUBLE') - { - return true; - } - return false; -} - -// the vvvvwbl Some function -function has_defaults_vvvvwbl_SomeFunc(has_defaults_vvvvwbl) -{ - // set the function logic - if (has_defaults_vvvvwbl == 1) + if (has_defaults_vvvvwbk == 1) { return true; } @@ -301,8 +139,20 @@ function has_defaults_vvvvwbl_SomeFunc(has_defaults_vvvvwbl) } // the vvvvwbm function -function vvvvwbm(has_defaults_vvvvwbm,datatype_vvvvwbm) +function vvvvwbm(datadefault_vvvvwbm,has_defaults_vvvvwbm) { + if (isSet(datadefault_vvvvwbm) && datadefault_vvvvwbm.constructor !== Array) + { + var temp_vvvvwbm = datadefault_vvvvwbm; + var datadefault_vvvvwbm = []; + datadefault_vvvvwbm.push(temp_vvvvwbm); + } + else if (!isSet(datadefault_vvvvwbm)) + { + var datadefault_vvvvwbm = []; + } + var datadefault = datadefault_vvvvwbm.some(datadefault_vvvvwbm_SomeFunc); + if (isSet(has_defaults_vvvvwbm) && has_defaults_vvvvwbm.constructor !== Array) { var temp_vvvvwbm = has_defaults_vvvvwbm; @@ -315,52 +165,47 @@ function vvvvwbm(has_defaults_vvvvwbm,datatype_vvvvwbm) } var has_defaults = has_defaults_vvvvwbm.some(has_defaults_vvvvwbm_SomeFunc); - if (isSet(datatype_vvvvwbm) && datatype_vvvvwbm.constructor !== Array) - { - var temp_vvvvwbm = datatype_vvvvwbm; - var datatype_vvvvwbm = []; - datatype_vvvvwbm.push(temp_vvvvwbm); - } - else if (!isSet(datatype_vvvvwbm)) - { - var datatype_vvvvwbm = []; - } - var datatype = datatype_vvvvwbm.some(datatype_vvvvwbm_SomeFunc); - // set this function logic - if (has_defaults && datatype) + if (datadefault && has_defaults) { - jQuery('#jform_datadefault').closest('.control-group').show(); - jQuery('#jform_datalenght').closest('.control-group').show(); - jQuery('#jform_indexes').closest('.control-group').show(); - // add required attribute to indexes field - if (jform_vvvvwbmvxo_required) + jQuery('#jform_datadefault_other').closest('.control-group').show(); + // add required attribute to datadefault_other field + if (jform_vvvvwbmvxn_required) { - updateFieldRequired('indexes',0); - jQuery('#jform_indexes').prop('required','required'); - jQuery('#jform_indexes').attr('aria-required',true); - jQuery('#jform_indexes').addClass('required'); - jform_vvvvwbmvxo_required = false; + 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_vvvvwbmvxn_required = false; } } else { - jQuery('#jform_datadefault').closest('.control-group').hide(); - jQuery('#jform_datalenght').closest('.control-group').hide(); - jQuery('#jform_indexes').closest('.control-group').hide(); - // remove required attribute from indexes field - if (!jform_vvvvwbmvxo_required) + jQuery('#jform_datadefault_other').closest('.control-group').hide(); + // remove required attribute from datadefault_other field + if (!jform_vvvvwbmvxn_required) { - updateFieldRequired('indexes',1); - jQuery('#jform_indexes').removeAttr('required'); - jQuery('#jform_indexes').removeAttr('aria-required'); - jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwbmvxo_required = true; + updateFieldRequired('datadefault_other',1); + jQuery('#jform_datadefault_other').removeAttr('required'); + jQuery('#jform_datadefault_other').removeAttr('aria-required'); + jQuery('#jform_datadefault_other').removeClass('required'); + jform_vvvvwbmvxn_required = true; } } } +// the vvvvwbm Some function +function datadefault_vvvvwbm_SomeFunc(datadefault_vvvvwbm) +{ + // set the function logic + if (datadefault_vvvvwbm == 'Other') + { + return true; + } + return false; +} + // the vvvvwbm Some function function has_defaults_vvvvwbm_SomeFunc(has_defaults_vvvvwbm) { @@ -372,90 +217,83 @@ function has_defaults_vvvvwbm_SomeFunc(has_defaults_vvvvwbm) return false; } -// the vvvvwbm Some function -function datatype_vvvvwbm_SomeFunc(datatype_vvvvwbm) +// the vvvvwbo function +function vvvvwbo(datatype_vvvvwbo,has_defaults_vvvvwbo) { - // set the function logic - if (datatype_vvvvwbm == 'CHAR' || datatype_vvvvwbm == 'VARCHAR' || datatype_vvvvwbm == 'DATETIME' || datatype_vvvvwbm == 'DATE' || datatype_vvvvwbm == 'TIME' || datatype_vvvvwbm == 'INT' || datatype_vvvvwbm == 'TINYINT' || datatype_vvvvwbm == 'BIGINT' || datatype_vvvvwbm == 'FLOAT' || datatype_vvvvwbm == 'DECIMAL' || datatype_vvvvwbm == 'DOUBLE') + if (isSet(datatype_vvvvwbo) && datatype_vvvvwbo.constructor !== Array) { - return true; + var temp_vvvvwbo = datatype_vvvvwbo; + var datatype_vvvvwbo = []; + datatype_vvvvwbo.push(temp_vvvvwbo); } - return false; -} + else if (!isSet(datatype_vvvvwbo)) + { + var datatype_vvvvwbo = []; + } + var datatype = datatype_vvvvwbo.some(datatype_vvvvwbo_SomeFunc); -// the vvvvwbn function -function vvvvwbn(datatype_vvvvwbn,has_defaults_vvvvwbn) -{ - if (isSet(datatype_vvvvwbn) && datatype_vvvvwbn.constructor !== Array) + if (isSet(has_defaults_vvvvwbo) && has_defaults_vvvvwbo.constructor !== Array) { - var temp_vvvvwbn = datatype_vvvvwbn; - var datatype_vvvvwbn = []; - datatype_vvvvwbn.push(temp_vvvvwbn); + var temp_vvvvwbo = has_defaults_vvvvwbo; + var has_defaults_vvvvwbo = []; + has_defaults_vvvvwbo.push(temp_vvvvwbo); } - else if (!isSet(datatype_vvvvwbn)) + else if (!isSet(has_defaults_vvvvwbo)) { - var datatype_vvvvwbn = []; + var has_defaults_vvvvwbo = []; } - var datatype = datatype_vvvvwbn.some(datatype_vvvvwbn_SomeFunc); - - if (isSet(has_defaults_vvvvwbn) && has_defaults_vvvvwbn.constructor !== Array) - { - var temp_vvvvwbn = has_defaults_vvvvwbn; - var has_defaults_vvvvwbn = []; - has_defaults_vvvvwbn.push(temp_vvvvwbn); - } - else if (!isSet(has_defaults_vvvvwbn)) - { - var has_defaults_vvvvwbn = []; - } - var has_defaults = has_defaults_vvvvwbn.some(has_defaults_vvvvwbn_SomeFunc); + var has_defaults = has_defaults_vvvvwbo.some(has_defaults_vvvvwbo_SomeFunc); // set this function logic if (datatype && has_defaults) { - jQuery('#jform_store').closest('.control-group').show(); - // add required attribute to store field - if (jform_vvvvwbnvxp_required) + jQuery('#jform_datadefault').closest('.control-group').show(); + jQuery('#jform_datalenght').closest('.control-group').show(); + jQuery('#jform_indexes').closest('.control-group').show(); + // add required attribute to indexes field + if (jform_vvvvwbovxo_required) { - updateFieldRequired('store',0); - jQuery('#jform_store').prop('required','required'); - jQuery('#jform_store').attr('aria-required',true); - jQuery('#jform_store').addClass('required'); - jform_vvvvwbnvxp_required = false; + updateFieldRequired('indexes',0); + jQuery('#jform_indexes').prop('required','required'); + jQuery('#jform_indexes').attr('aria-required',true); + jQuery('#jform_indexes').addClass('required'); + jform_vvvvwbovxo_required = false; } } else { - jQuery('#jform_store').closest('.control-group').hide(); - // remove required attribute from store field - if (!jform_vvvvwbnvxp_required) + jQuery('#jform_datadefault').closest('.control-group').hide(); + jQuery('#jform_datalenght').closest('.control-group').hide(); + jQuery('#jform_indexes').closest('.control-group').hide(); + // remove required attribute from indexes field + if (!jform_vvvvwbovxo_required) { - updateFieldRequired('store',1); - jQuery('#jform_store').removeAttr('required'); - jQuery('#jform_store').removeAttr('aria-required'); - jQuery('#jform_store').removeClass('required'); - jform_vvvvwbnvxp_required = true; + updateFieldRequired('indexes',1); + jQuery('#jform_indexes').removeAttr('required'); + jQuery('#jform_indexes').removeAttr('aria-required'); + jQuery('#jform_indexes').removeClass('required'); + jform_vvvvwbovxo_required = true; } } } -// the vvvvwbn Some function -function datatype_vvvvwbn_SomeFunc(datatype_vvvvwbn) +// the vvvvwbo Some function +function datatype_vvvvwbo_SomeFunc(datatype_vvvvwbo) { // set the function logic - if (datatype_vvvvwbn == 'CHAR' || datatype_vvvvwbn == 'VARCHAR' || datatype_vvvvwbn == 'TEXT' || datatype_vvvvwbn == 'MEDIUMTEXT' || datatype_vvvvwbn == 'LONGTEXT' || datatype_vvvvwbn == 'BLOB' || datatype_vvvvwbn == 'TINYBLOB' || datatype_vvvvwbn == 'MEDIUMBLOB' || datatype_vvvvwbn == 'LONGBLOB') + if (datatype_vvvvwbo == 'CHAR' || datatype_vvvvwbo == 'VARCHAR' || datatype_vvvvwbo == 'DATETIME' || datatype_vvvvwbo == 'DATE' || datatype_vvvvwbo == 'TIME' || datatype_vvvvwbo == 'INT' || datatype_vvvvwbo == 'TINYINT' || datatype_vvvvwbo == 'BIGINT' || datatype_vvvvwbo == 'FLOAT' || datatype_vvvvwbo == 'DECIMAL' || datatype_vvvvwbo == 'DOUBLE') { return true; } return false; } -// the vvvvwbn Some function -function has_defaults_vvvvwbn_SomeFunc(has_defaults_vvvvwbn) +// the vvvvwbo Some function +function has_defaults_vvvvwbo_SomeFunc(has_defaults_vvvvwbo) { // set the function logic - if (has_defaults_vvvvwbn == 1) + if (has_defaults_vvvvwbo == 1) { return true; } @@ -463,19 +301,19 @@ function has_defaults_vvvvwbn_SomeFunc(has_defaults_vvvvwbn) } // the vvvvwbp function -function vvvvwbp(store_vvvvwbp,datatype_vvvvwbp,has_defaults_vvvvwbp) +function vvvvwbp(has_defaults_vvvvwbp,datatype_vvvvwbp) { - if (isSet(store_vvvvwbp) && store_vvvvwbp.constructor !== Array) + if (isSet(has_defaults_vvvvwbp) && has_defaults_vvvvwbp.constructor !== Array) { - var temp_vvvvwbp = store_vvvvwbp; - var store_vvvvwbp = []; - store_vvvvwbp.push(temp_vvvvwbp); + var temp_vvvvwbp = has_defaults_vvvvwbp; + var has_defaults_vvvvwbp = []; + has_defaults_vvvvwbp.push(temp_vvvvwbp); } - else if (!isSet(store_vvvvwbp)) + else if (!isSet(has_defaults_vvvvwbp)) { - var store_vvvvwbp = []; + var has_defaults_vvvvwbp = []; } - var store = store_vvvvwbp.some(store_vvvvwbp_SomeFunc); + var has_defaults = has_defaults_vvvvwbp.some(has_defaults_vvvvwbp_SomeFunc); if (isSet(datatype_vvvvwbp) && datatype_vvvvwbp.constructor !== Array) { @@ -489,52 +327,40 @@ function vvvvwbp(store_vvvvwbp,datatype_vvvvwbp,has_defaults_vvvvwbp) } var datatype = datatype_vvvvwbp.some(datatype_vvvvwbp_SomeFunc); - if (isSet(has_defaults_vvvvwbp) && has_defaults_vvvvwbp.constructor !== Array) - { - var temp_vvvvwbp = has_defaults_vvvvwbp; - var has_defaults_vvvvwbp = []; - has_defaults_vvvvwbp.push(temp_vvvvwbp); - } - else if (!isSet(has_defaults_vvvvwbp)) - { - var has_defaults_vvvvwbp = []; - } - var has_defaults = has_defaults_vvvvwbp.some(has_defaults_vvvvwbp_SomeFunc); - // set this function logic - if (store && datatype && has_defaults) + if (has_defaults && datatype) { - jQuery('.note_whmcs_encryption').closest('.control-group').show(); + jQuery('#jform_datadefault').closest('.control-group').show(); + jQuery('#jform_datalenght').closest('.control-group').show(); + jQuery('#jform_indexes').closest('.control-group').show(); + // add required attribute to indexes field + if (jform_vvvvwbpvxp_required) + { + updateFieldRequired('indexes',0); + jQuery('#jform_indexes').prop('required','required'); + jQuery('#jform_indexes').attr('aria-required',true); + jQuery('#jform_indexes').addClass('required'); + jform_vvvvwbpvxp_required = false; + } } else { - jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + jQuery('#jform_datadefault').closest('.control-group').hide(); + jQuery('#jform_datalenght').closest('.control-group').hide(); + jQuery('#jform_indexes').closest('.control-group').hide(); + // remove required attribute from indexes field + if (!jform_vvvvwbpvxp_required) + { + updateFieldRequired('indexes',1); + jQuery('#jform_indexes').removeAttr('required'); + jQuery('#jform_indexes').removeAttr('aria-required'); + jQuery('#jform_indexes').removeClass('required'); + jform_vvvvwbpvxp_required = true; + } } } -// the vvvvwbp Some function -function store_vvvvwbp_SomeFunc(store_vvvvwbp) -{ - // set the function logic - if (store_vvvvwbp == 4) - { - return true; - } - return false; -} - -// the vvvvwbp Some function -function datatype_vvvvwbp_SomeFunc(datatype_vvvvwbp) -{ - // set the function logic - if (datatype_vvvvwbp == 'CHAR' || datatype_vvvvwbp == 'VARCHAR' || datatype_vvvvwbp == 'TEXT' || datatype_vvvvwbp == 'MEDIUMTEXT' || datatype_vvvvwbp == 'LONGTEXT' || datatype_vvvvwbp == 'BLOB' || datatype_vvvvwbp == 'TINYBLOB' || datatype_vvvvwbp == 'MEDIUMBLOB' || datatype_vvvvwbp == 'LONGBLOB') - { - return true; - } - return false; -} - // the vvvvwbp Some function function has_defaults_vvvvwbp_SomeFunc(has_defaults_vvvvwbp) { @@ -546,8 +372,19 @@ function has_defaults_vvvvwbp_SomeFunc(has_defaults_vvvvwbp) return false; } +// the vvvvwbp Some function +function datatype_vvvvwbp_SomeFunc(datatype_vvvvwbp) +{ + // set the function logic + if (datatype_vvvvwbp == 'CHAR' || datatype_vvvvwbp == 'VARCHAR' || datatype_vvvvwbp == 'DATETIME' || datatype_vvvvwbp == 'DATE' || datatype_vvvvwbp == 'TIME' || datatype_vvvvwbp == 'INT' || datatype_vvvvwbp == 'TINYINT' || datatype_vvvvwbp == 'BIGINT' || datatype_vvvvwbp == 'FLOAT' || datatype_vvvvwbp == 'DECIMAL' || datatype_vvvvwbp == 'DOUBLE') + { + return true; + } + return false; +} + // the vvvvwbq function -function vvvvwbq(datatype_vvvvwbq,store_vvvvwbq,has_defaults_vvvvwbq) +function vvvvwbq(datatype_vvvvwbq,has_defaults_vvvvwbq) { if (isSet(datatype_vvvvwbq) && datatype_vvvvwbq.constructor !== Array) { @@ -561,18 +398,6 @@ function vvvvwbq(datatype_vvvvwbq,store_vvvvwbq,has_defaults_vvvvwbq) } var datatype = datatype_vvvvwbq.some(datatype_vvvvwbq_SomeFunc); - if (isSet(store_vvvvwbq) && store_vvvvwbq.constructor !== Array) - { - var temp_vvvvwbq = store_vvvvwbq; - var store_vvvvwbq = []; - store_vvvvwbq.push(temp_vvvvwbq); - } - else if (!isSet(store_vvvvwbq)) - { - var store_vvvvwbq = []; - } - var store = store_vvvvwbq.some(store_vvvvwbq_SomeFunc); - if (isSet(has_defaults_vvvvwbq) && has_defaults_vvvvwbq.constructor !== Array) { var temp_vvvvwbq = has_defaults_vvvvwbq; @@ -587,13 +412,31 @@ function vvvvwbq(datatype_vvvvwbq,store_vvvvwbq,has_defaults_vvvvwbq) // set this function logic - if (datatype && store && has_defaults) + if (datatype && has_defaults) { - jQuery('.note_whmcs_encryption').closest('.control-group').show(); + jQuery('#jform_store').closest('.control-group').show(); + // add required attribute to store field + if (jform_vvvvwbqvxq_required) + { + updateFieldRequired('store',0); + jQuery('#jform_store').prop('required','required'); + jQuery('#jform_store').attr('aria-required',true); + jQuery('#jform_store').addClass('required'); + jform_vvvvwbqvxq_required = false; + } } else { - jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + jQuery('#jform_store').closest('.control-group').hide(); + // remove required attribute from store field + if (!jform_vvvvwbqvxq_required) + { + updateFieldRequired('store',1); + jQuery('#jform_store').removeAttr('required'); + jQuery('#jform_store').removeAttr('aria-required'); + jQuery('#jform_store').removeClass('required'); + jform_vvvvwbqvxq_required = true; + } } } @@ -608,17 +451,6 @@ function datatype_vvvvwbq_SomeFunc(datatype_vvvvwbq) return false; } -// the vvvvwbq Some function -function store_vvvvwbq_SomeFunc(store_vvvvwbq) -{ - // set the function logic - if (store_vvvvwbq == 4) - { - return true; - } - return false; -} - // the vvvvwbq Some function function has_defaults_vvvvwbq_SomeFunc(has_defaults_vvvvwbq) { @@ -630,44 +462,212 @@ function has_defaults_vvvvwbq_SomeFunc(has_defaults_vvvvwbq) return false; } -// the vvvvwbr function -function vvvvwbr(has_defaults_vvvvwbr,store_vvvvwbr,datatype_vvvvwbr) +// the vvvvwbs function +function vvvvwbs(store_vvvvwbs,datatype_vvvvwbs,has_defaults_vvvvwbs) { - if (isSet(has_defaults_vvvvwbr) && has_defaults_vvvvwbr.constructor !== Array) + if (isSet(store_vvvvwbs) && store_vvvvwbs.constructor !== Array) { - var temp_vvvvwbr = has_defaults_vvvvwbr; - var has_defaults_vvvvwbr = []; - has_defaults_vvvvwbr.push(temp_vvvvwbr); + var temp_vvvvwbs = store_vvvvwbs; + var store_vvvvwbs = []; + store_vvvvwbs.push(temp_vvvvwbs); } - else if (!isSet(has_defaults_vvvvwbr)) + else if (!isSet(store_vvvvwbs)) { - var has_defaults_vvvvwbr = []; + var store_vvvvwbs = []; } - var has_defaults = has_defaults_vvvvwbr.some(has_defaults_vvvvwbr_SomeFunc); + var store = store_vvvvwbs.some(store_vvvvwbs_SomeFunc); - if (isSet(store_vvvvwbr) && store_vvvvwbr.constructor !== Array) + if (isSet(datatype_vvvvwbs) && datatype_vvvvwbs.constructor !== Array) { - var temp_vvvvwbr = store_vvvvwbr; - var store_vvvvwbr = []; - store_vvvvwbr.push(temp_vvvvwbr); + var temp_vvvvwbs = datatype_vvvvwbs; + var datatype_vvvvwbs = []; + datatype_vvvvwbs.push(temp_vvvvwbs); } - else if (!isSet(store_vvvvwbr)) + else if (!isSet(datatype_vvvvwbs)) { - var store_vvvvwbr = []; + var datatype_vvvvwbs = []; } - var store = store_vvvvwbr.some(store_vvvvwbr_SomeFunc); + var datatype = datatype_vvvvwbs.some(datatype_vvvvwbs_SomeFunc); - if (isSet(datatype_vvvvwbr) && datatype_vvvvwbr.constructor !== Array) + if (isSet(has_defaults_vvvvwbs) && has_defaults_vvvvwbs.constructor !== Array) { - var temp_vvvvwbr = datatype_vvvvwbr; - var datatype_vvvvwbr = []; - datatype_vvvvwbr.push(temp_vvvvwbr); + var temp_vvvvwbs = has_defaults_vvvvwbs; + var has_defaults_vvvvwbs = []; + has_defaults_vvvvwbs.push(temp_vvvvwbs); } - else if (!isSet(datatype_vvvvwbr)) + else if (!isSet(has_defaults_vvvvwbs)) { - var datatype_vvvvwbr = []; + var has_defaults_vvvvwbs = []; } - var datatype = datatype_vvvvwbr.some(datatype_vvvvwbr_SomeFunc); + var has_defaults = has_defaults_vvvvwbs.some(has_defaults_vvvvwbs_SomeFunc); + + + // set this function logic + if (store && datatype && has_defaults) + { + jQuery('.note_whmcs_encryption').closest('.control-group').show(); + } + else + { + jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + } +} + +// the vvvvwbs Some function +function store_vvvvwbs_SomeFunc(store_vvvvwbs) +{ + // set the function logic + if (store_vvvvwbs == 4) + { + return true; + } + return false; +} + +// the vvvvwbs Some function +function datatype_vvvvwbs_SomeFunc(datatype_vvvvwbs) +{ + // set the function logic + if (datatype_vvvvwbs == 'CHAR' || datatype_vvvvwbs == 'VARCHAR' || datatype_vvvvwbs == 'TEXT' || datatype_vvvvwbs == 'MEDIUMTEXT' || datatype_vvvvwbs == 'LONGTEXT' || datatype_vvvvwbs == 'BLOB' || datatype_vvvvwbs == 'TINYBLOB' || datatype_vvvvwbs == 'MEDIUMBLOB' || datatype_vvvvwbs == 'LONGBLOB') + { + return true; + } + return false; +} + +// the vvvvwbs Some function +function has_defaults_vvvvwbs_SomeFunc(has_defaults_vvvvwbs) +{ + // set the function logic + if (has_defaults_vvvvwbs == 1) + { + return true; + } + return false; +} + +// the vvvvwbt function +function vvvvwbt(datatype_vvvvwbt,store_vvvvwbt,has_defaults_vvvvwbt) +{ + if (isSet(datatype_vvvvwbt) && datatype_vvvvwbt.constructor !== Array) + { + var temp_vvvvwbt = datatype_vvvvwbt; + var datatype_vvvvwbt = []; + datatype_vvvvwbt.push(temp_vvvvwbt); + } + else if (!isSet(datatype_vvvvwbt)) + { + var datatype_vvvvwbt = []; + } + var datatype = datatype_vvvvwbt.some(datatype_vvvvwbt_SomeFunc); + + if (isSet(store_vvvvwbt) && store_vvvvwbt.constructor !== Array) + { + var temp_vvvvwbt = store_vvvvwbt; + var store_vvvvwbt = []; + store_vvvvwbt.push(temp_vvvvwbt); + } + else if (!isSet(store_vvvvwbt)) + { + var store_vvvvwbt = []; + } + var store = store_vvvvwbt.some(store_vvvvwbt_SomeFunc); + + if (isSet(has_defaults_vvvvwbt) && has_defaults_vvvvwbt.constructor !== Array) + { + var temp_vvvvwbt = has_defaults_vvvvwbt; + var has_defaults_vvvvwbt = []; + has_defaults_vvvvwbt.push(temp_vvvvwbt); + } + else if (!isSet(has_defaults_vvvvwbt)) + { + var has_defaults_vvvvwbt = []; + } + var has_defaults = has_defaults_vvvvwbt.some(has_defaults_vvvvwbt_SomeFunc); + + + // set this function logic + if (datatype && store && has_defaults) + { + jQuery('.note_whmcs_encryption').closest('.control-group').show(); + } + else + { + jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + } +} + +// the vvvvwbt Some function +function datatype_vvvvwbt_SomeFunc(datatype_vvvvwbt) +{ + // set the function logic + if (datatype_vvvvwbt == 'CHAR' || datatype_vvvvwbt == 'VARCHAR' || datatype_vvvvwbt == 'TEXT' || datatype_vvvvwbt == 'MEDIUMTEXT' || datatype_vvvvwbt == 'LONGTEXT' || datatype_vvvvwbt == 'BLOB' || datatype_vvvvwbt == 'TINYBLOB' || datatype_vvvvwbt == 'MEDIUMBLOB' || datatype_vvvvwbt == 'LONGBLOB') + { + return true; + } + return false; +} + +// the vvvvwbt Some function +function store_vvvvwbt_SomeFunc(store_vvvvwbt) +{ + // set the function logic + if (store_vvvvwbt == 4) + { + return true; + } + return false; +} + +// the vvvvwbt Some function +function has_defaults_vvvvwbt_SomeFunc(has_defaults_vvvvwbt) +{ + // set the function logic + if (has_defaults_vvvvwbt == 1) + { + return true; + } + return false; +} + +// the vvvvwbu function +function vvvvwbu(has_defaults_vvvvwbu,store_vvvvwbu,datatype_vvvvwbu) +{ + if (isSet(has_defaults_vvvvwbu) && has_defaults_vvvvwbu.constructor !== Array) + { + var temp_vvvvwbu = has_defaults_vvvvwbu; + var has_defaults_vvvvwbu = []; + has_defaults_vvvvwbu.push(temp_vvvvwbu); + } + else if (!isSet(has_defaults_vvvvwbu)) + { + var has_defaults_vvvvwbu = []; + } + var has_defaults = has_defaults_vvvvwbu.some(has_defaults_vvvvwbu_SomeFunc); + + if (isSet(store_vvvvwbu) && store_vvvvwbu.constructor !== Array) + { + var temp_vvvvwbu = store_vvvvwbu; + var store_vvvvwbu = []; + store_vvvvwbu.push(temp_vvvvwbu); + } + else if (!isSet(store_vvvvwbu)) + { + var store_vvvvwbu = []; + } + var store = store_vvvvwbu.some(store_vvvvwbu_SomeFunc); + + if (isSet(datatype_vvvvwbu) && datatype_vvvvwbu.constructor !== Array) + { + var temp_vvvvwbu = datatype_vvvvwbu; + var datatype_vvvvwbu = []; + datatype_vvvvwbu.push(temp_vvvvwbu); + } + else if (!isSet(datatype_vvvvwbu)) + { + var datatype_vvvvwbu = []; + } + var datatype = datatype_vvvvwbu.some(datatype_vvvvwbu_SomeFunc); // set this function logic @@ -681,87 +681,87 @@ function vvvvwbr(has_defaults_vvvvwbr,store_vvvvwbr,datatype_vvvvwbr) } } -// the vvvvwbr Some function -function has_defaults_vvvvwbr_SomeFunc(has_defaults_vvvvwbr) +// the vvvvwbu Some function +function has_defaults_vvvvwbu_SomeFunc(has_defaults_vvvvwbu) { // set the function logic - if (has_defaults_vvvvwbr == 1) + if (has_defaults_vvvvwbu == 1) { return true; } return false; } -// the vvvvwbr Some function -function store_vvvvwbr_SomeFunc(store_vvvvwbr) +// the vvvvwbu Some function +function store_vvvvwbu_SomeFunc(store_vvvvwbu) { // set the function logic - if (store_vvvvwbr == 4) + if (store_vvvvwbu == 4) { return true; } return false; } -// the vvvvwbr Some function -function datatype_vvvvwbr_SomeFunc(datatype_vvvvwbr) +// the vvvvwbu Some function +function datatype_vvvvwbu_SomeFunc(datatype_vvvvwbu) { // set the function logic - if (datatype_vvvvwbr == 'CHAR' || datatype_vvvvwbr == 'VARCHAR' || datatype_vvvvwbr == 'TEXT' || datatype_vvvvwbr == 'MEDIUMTEXT' || datatype_vvvvwbr == 'LONGTEXT' || datatype_vvvvwbr == 'BLOB' || datatype_vvvvwbr == 'TINYBLOB' || datatype_vvvvwbr == 'MEDIUMBLOB' || datatype_vvvvwbr == 'LONGBLOB') + if (datatype_vvvvwbu == 'CHAR' || datatype_vvvvwbu == 'VARCHAR' || datatype_vvvvwbu == 'TEXT' || datatype_vvvvwbu == 'MEDIUMTEXT' || datatype_vvvvwbu == 'LONGTEXT' || datatype_vvvvwbu == 'BLOB' || datatype_vvvvwbu == 'TINYBLOB' || datatype_vvvvwbu == 'MEDIUMBLOB' || datatype_vvvvwbu == 'LONGBLOB') { return true; } return false; } -// the vvvvwbs function -function vvvvwbs(has_defaults_vvvvwbs) +// the vvvvwbv function +function vvvvwbv(has_defaults_vvvvwbv) { // set the function logic - if (has_defaults_vvvvwbs == 1) + if (has_defaults_vvvvwbv == 1) { jQuery('#jform_datatype').closest('.control-group').show(); // add required attribute to datatype field - if (jform_vvvvwbsvxq_required) + if (jform_vvvvwbvvxr_required) { updateFieldRequired('datatype',0); jQuery('#jform_datatype').prop('required','required'); jQuery('#jform_datatype').attr('aria-required',true); jQuery('#jform_datatype').addClass('required'); - jform_vvvvwbsvxq_required = false; + jform_vvvvwbvvxr_required = false; } jQuery('#jform_null_switch').closest('.control-group').show(); // add required attribute to null_switch field - if (jform_vvvvwbsvxr_required) + if (jform_vvvvwbvvxs_required) { updateFieldRequired('null_switch',0); jQuery('#jform_null_switch').prop('required','required'); jQuery('#jform_null_switch').attr('aria-required',true); jQuery('#jform_null_switch').addClass('required'); - jform_vvvvwbsvxr_required = false; + jform_vvvvwbvvxs_required = false; } } else { jQuery('#jform_datatype').closest('.control-group').hide(); // remove required attribute from datatype field - if (!jform_vvvvwbsvxq_required) + if (!jform_vvvvwbvvxr_required) { updateFieldRequired('datatype',1); jQuery('#jform_datatype').removeAttr('required'); jQuery('#jform_datatype').removeAttr('aria-required'); jQuery('#jform_datatype').removeClass('required'); - jform_vvvvwbsvxq_required = true; + jform_vvvvwbvvxr_required = true; } jQuery('#jform_null_switch').closest('.control-group').hide(); // remove required attribute from null_switch field - if (!jform_vvvvwbsvxr_required) + if (!jform_vvvvwbvvxs_required) { updateFieldRequired('null_switch',1); jQuery('#jform_null_switch').removeAttr('required'); jQuery('#jform_null_switch').removeAttr('aria-required'); jQuery('#jform_null_switch').removeClass('required'); - jform_vvvvwbsvxr_required = true; + jform_vvvvwbvvxs_required = true; } } } diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js index 70dc34927..78daca80f 100644 --- a/admin/models/forms/help_document.js +++ b/admin/models/forms/help_document.js @@ -9,112 +9,112 @@ */ // Some Global Values -jform_vvvvwcdvyd_required = false; -jform_vvvvwcevye_required = false; -jform_vvvvwcfvyf_required = false; -jform_vvvvwcgvyg_required = false; -jform_vvvvwcivyh_required = false; +jform_vvvvwcgvye_required = false; +jform_vvvvwchvyf_required = false; +jform_vvvvwcivyg_required = false; +jform_vvvvwcjvyh_required = false; +jform_vvvvwclvyi_required = false; // Initial Script jQuery(document).ready(function() { - var location_vvvvwcd = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwcd(location_vvvvwcd); + var location_vvvvwcg = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwcg(location_vvvvwcg); - var location_vvvvwce = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwce(location_vvvvwce); + var location_vvvvwch = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwch(location_vvvvwch); - var type_vvvvwcf = jQuery("#jform_type").val(); - vvvvwcf(type_vvvvwcf); + var type_vvvvwci = jQuery("#jform_type").val(); + vvvvwci(type_vvvvwci); - var type_vvvvwcg = jQuery("#jform_type").val(); - vvvvwcg(type_vvvvwcg); + var type_vvvvwcj = jQuery("#jform_type").val(); + vvvvwcj(type_vvvvwcj); - var type_vvvvwch = jQuery("#jform_type").val(); - vvvvwch(type_vvvvwch); + var type_vvvvwck = jQuery("#jform_type").val(); + vvvvwck(type_vvvvwck); - var target_vvvvwci = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwci(target_vvvvwci); + var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcl(target_vvvvwcl); }); -// the vvvvwcd function -function vvvvwcd(location_vvvvwcd) +// the vvvvwcg function +function vvvvwcg(location_vvvvwcg) { // set the function logic - if (location_vvvvwcd == 1) + if (location_vvvvwcg == 1) { jQuery('#jform_admin_view').closest('.control-group').show(); // add required attribute to admin_view field - if (jform_vvvvwcdvyd_required) + if (jform_vvvvwcgvye_required) { updateFieldRequired('admin_view',0); jQuery('#jform_admin_view').prop('required','required'); jQuery('#jform_admin_view').attr('aria-required',true); jQuery('#jform_admin_view').addClass('required'); - jform_vvvvwcdvyd_required = false; + jform_vvvvwcgvye_required = false; } } else { jQuery('#jform_admin_view').closest('.control-group').hide(); // remove required attribute from admin_view field - if (!jform_vvvvwcdvyd_required) + if (!jform_vvvvwcgvye_required) { updateFieldRequired('admin_view',1); jQuery('#jform_admin_view').removeAttr('required'); jQuery('#jform_admin_view').removeAttr('aria-required'); jQuery('#jform_admin_view').removeClass('required'); - jform_vvvvwcdvyd_required = true; + jform_vvvvwcgvye_required = true; } } } -// the vvvvwce function -function vvvvwce(location_vvvvwce) +// the vvvvwch function +function vvvvwch(location_vvvvwch) { // set the function logic - if (location_vvvvwce == 2) + if (location_vvvvwch == 2) { jQuery('#jform_site_view').closest('.control-group').show(); // add required attribute to site_view field - if (jform_vvvvwcevye_required) + if (jform_vvvvwchvyf_required) { updateFieldRequired('site_view',0); jQuery('#jform_site_view').prop('required','required'); jQuery('#jform_site_view').attr('aria-required',true); jQuery('#jform_site_view').addClass('required'); - jform_vvvvwcevye_required = false; + jform_vvvvwchvyf_required = false; } } else { jQuery('#jform_site_view').closest('.control-group').hide(); // remove required attribute from site_view field - if (!jform_vvvvwcevye_required) + if (!jform_vvvvwchvyf_required) { updateFieldRequired('site_view',1); jQuery('#jform_site_view').removeAttr('required'); jQuery('#jform_site_view').removeAttr('aria-required'); jQuery('#jform_site_view').removeClass('required'); - jform_vvvvwcevye_required = true; + jform_vvvvwchvyf_required = true; } } } -// the vvvvwcf function -function vvvvwcf(type_vvvvwcf) +// the vvvvwci function +function vvvvwci(type_vvvvwci) { - if (isSet(type_vvvvwcf) && type_vvvvwcf.constructor !== Array) + if (isSet(type_vvvvwci) && type_vvvvwci.constructor !== Array) { - var temp_vvvvwcf = type_vvvvwcf; - var type_vvvvwcf = []; - type_vvvvwcf.push(temp_vvvvwcf); + var temp_vvvvwci = type_vvvvwci; + var type_vvvvwci = []; + type_vvvvwci.push(temp_vvvvwci); } - else if (!isSet(type_vvvvwcf)) + else if (!isSet(type_vvvvwci)) { - var type_vvvvwcf = []; + var type_vvvvwci = []; } - var type = type_vvvvwcf.some(type_vvvvwcf_SomeFunc); + var type = type_vvvvwci.some(type_vvvvwci_SomeFunc); // set this function logic @@ -122,55 +122,55 @@ function vvvvwcf(type_vvvvwcf) { jQuery('#jform_url').closest('.control-group').show(); // add required attribute to url field - if (jform_vvvvwcfvyf_required) + if (jform_vvvvwcivyg_required) { updateFieldRequired('url',0); jQuery('#jform_url').prop('required','required'); jQuery('#jform_url').attr('aria-required',true); jQuery('#jform_url').addClass('required'); - jform_vvvvwcfvyf_required = false; + jform_vvvvwcivyg_required = false; } } else { jQuery('#jform_url').closest('.control-group').hide(); // remove required attribute from url field - if (!jform_vvvvwcfvyf_required) + if (!jform_vvvvwcivyg_required) { updateFieldRequired('url',1); jQuery('#jform_url').removeAttr('required'); jQuery('#jform_url').removeAttr('aria-required'); jQuery('#jform_url').removeClass('required'); - jform_vvvvwcfvyf_required = true; + jform_vvvvwcivyg_required = true; } } } -// the vvvvwcf Some function -function type_vvvvwcf_SomeFunc(type_vvvvwcf) +// the vvvvwci Some function +function type_vvvvwci_SomeFunc(type_vvvvwci) { // set the function logic - if (type_vvvvwcf == 3) + if (type_vvvvwci == 3) { return true; } return false; } -// the vvvvwcg function -function vvvvwcg(type_vvvvwcg) +// the vvvvwcj function +function vvvvwcj(type_vvvvwcj) { - if (isSet(type_vvvvwcg) && type_vvvvwcg.constructor !== Array) + if (isSet(type_vvvvwcj) && type_vvvvwcj.constructor !== Array) { - var temp_vvvvwcg = type_vvvvwcg; - var type_vvvvwcg = []; - type_vvvvwcg.push(temp_vvvvwcg); + var temp_vvvvwcj = type_vvvvwcj; + var type_vvvvwcj = []; + type_vvvvwcj.push(temp_vvvvwcj); } - else if (!isSet(type_vvvvwcg)) + else if (!isSet(type_vvvvwcj)) { - var type_vvvvwcg = []; + var type_vvvvwcj = []; } - var type = type_vvvvwcg.some(type_vvvvwcg_SomeFunc); + var type = type_vvvvwcj.some(type_vvvvwcj_SomeFunc); // set this function logic @@ -178,55 +178,55 @@ function vvvvwcg(type_vvvvwcg) { jQuery('#jform_article').closest('.control-group').show(); // add required attribute to article field - if (jform_vvvvwcgvyg_required) + if (jform_vvvvwcjvyh_required) { updateFieldRequired('article',0); jQuery('#jform_article').prop('required','required'); jQuery('#jform_article').attr('aria-required',true); jQuery('#jform_article').addClass('required'); - jform_vvvvwcgvyg_required = false; + jform_vvvvwcjvyh_required = false; } } else { jQuery('#jform_article').closest('.control-group').hide(); // remove required attribute from article field - if (!jform_vvvvwcgvyg_required) + if (!jform_vvvvwcjvyh_required) { updateFieldRequired('article',1); jQuery('#jform_article').removeAttr('required'); jQuery('#jform_article').removeAttr('aria-required'); jQuery('#jform_article').removeClass('required'); - jform_vvvvwcgvyg_required = true; + jform_vvvvwcjvyh_required = true; } } } -// the vvvvwcg Some function -function type_vvvvwcg_SomeFunc(type_vvvvwcg) +// the vvvvwcj Some function +function type_vvvvwcj_SomeFunc(type_vvvvwcj) { // set the function logic - if (type_vvvvwcg == 1) + if (type_vvvvwcj == 1) { return true; } return false; } -// the vvvvwch function -function vvvvwch(type_vvvvwch) +// the vvvvwck function +function vvvvwck(type_vvvvwck) { - if (isSet(type_vvvvwch) && type_vvvvwch.constructor !== Array) + if (isSet(type_vvvvwck) && type_vvvvwck.constructor !== Array) { - var temp_vvvvwch = type_vvvvwch; - var type_vvvvwch = []; - type_vvvvwch.push(temp_vvvvwch); + var temp_vvvvwck = type_vvvvwck; + var type_vvvvwck = []; + type_vvvvwck.push(temp_vvvvwck); } - else if (!isSet(type_vvvvwch)) + else if (!isSet(type_vvvvwck)) { - var type_vvvvwch = []; + var type_vvvvwck = []; } - var type = type_vvvvwch.some(type_vvvvwch_SomeFunc); + var type = type_vvvvwck.some(type_vvvvwck_SomeFunc); // set this function logic @@ -240,45 +240,45 @@ function vvvvwch(type_vvvvwch) } } -// the vvvvwch Some function -function type_vvvvwch_SomeFunc(type_vvvvwch) +// the vvvvwck Some function +function type_vvvvwck_SomeFunc(type_vvvvwck) { // set the function logic - if (type_vvvvwch == 2) + if (type_vvvvwck == 2) { return true; } return false; } -// the vvvvwci function -function vvvvwci(target_vvvvwci) +// the vvvvwcl function +function vvvvwcl(target_vvvvwcl) { // set the function logic - if (target_vvvvwci == 1) + if (target_vvvvwcl == 1) { jQuery('#jform_groups').closest('.control-group').show(); // add required attribute to groups field - if (jform_vvvvwcivyh_required) + if (jform_vvvvwclvyi_required) { updateFieldRequired('groups',0); jQuery('#jform_groups').prop('required','required'); jQuery('#jform_groups').attr('aria-required',true); jQuery('#jform_groups').addClass('required'); - jform_vvvvwcivyh_required = false; + jform_vvvvwclvyi_required = false; } } else { jQuery('#jform_groups').closest('.control-group').hide(); // remove required attribute from groups field - if (!jform_vvvvwcivyh_required) + if (!jform_vvvvwclvyi_required) { updateFieldRequired('groups',1); jQuery('#jform_groups').removeAttr('required'); jQuery('#jform_groups').removeAttr('aria-required'); jQuery('#jform_groups').removeClass('required'); - jform_vvvvwcivyh_required = true; + jform_vvvvwclvyi_required = true; } } } diff --git a/admin/models/forms/joomla_plugin.js b/admin/models/forms/joomla_plugin.js index 3ede6f498..b1af96344 100644 --- a/admin/models/forms/joomla_plugin.js +++ b/admin/models/forms/joomla_plugin.js @@ -8,6 +8,9 @@ * @license GNU General Public License version 2 or later; see LICENSE.txt */ +// Some Global Values +jform_vvvvvxevwd_required = false; + // Initial Script jQuery(document).ready(function() { @@ -18,6 +21,13 @@ jQuery(document).ready(function() var joomla_plugin_group_vvvvvxc = jQuery("#jform_joomla_plugin_group").val(); var class_extends_vvvvvxc = jQuery("#jform_class_extends").val(); vvvvvxc(joomla_plugin_group_vvvvvxc,class_extends_vvvvvxc); + + var class_extends_vvvvvxd = jQuery("#jform_class_extends").val(); + vvvvvxd(class_extends_vvvvvxd); + + var add_head_vvvvvxe = jQuery("#jform_add_head input[type='radio']:checked").val(); + var class_extends_vvvvvxe = jQuery("#jform_class_extends").val(); + vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe); }); // the vvvvvxb function @@ -150,6 +160,150 @@ function class_extends_vvvvvxc_SomeFunc(class_extends_vvvvvxc) return false; } +// the vvvvvxd function +function vvvvvxd(class_extends_vvvvvxd) +{ + if (isSet(class_extends_vvvvvxd) && class_extends_vvvvvxd.constructor !== Array) + { + var temp_vvvvvxd = class_extends_vvvvvxd; + var class_extends_vvvvvxd = []; + class_extends_vvvvvxd.push(temp_vvvvvxd); + } + else if (!isSet(class_extends_vvvvvxd)) + { + var class_extends_vvvvvxd = []; + } + var class_extends = class_extends_vvvvvxd.some(class_extends_vvvvvxd_SomeFunc); + + + // set this function logic + if (class_extends) + { + jQuery('#jform_add_head').closest('.control-group').show(); + } + else + { + jQuery('#jform_add_head').closest('.control-group').hide(); + } +} + +// the vvvvvxd Some function +function class_extends_vvvvvxd_SomeFunc(class_extends_vvvvvxd) +{ + // set the function logic + if (isSet(class_extends_vvvvvxd)) + { + return true; + } + return false; +} + +// the vvvvvxe function +function vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe) +{ + if (isSet(add_head_vvvvvxe) && add_head_vvvvvxe.constructor !== Array) + { + var temp_vvvvvxe = add_head_vvvvvxe; + var add_head_vvvvvxe = []; + add_head_vvvvvxe.push(temp_vvvvvxe); + } + else if (!isSet(add_head_vvvvvxe)) + { + var add_head_vvvvvxe = []; + } + var add_head = add_head_vvvvvxe.some(add_head_vvvvvxe_SomeFunc); + + if (isSet(class_extends_vvvvvxe) && class_extends_vvvvvxe.constructor !== Array) + { + var temp_vvvvvxe = class_extends_vvvvvxe; + var class_extends_vvvvvxe = []; + class_extends_vvvvvxe.push(temp_vvvvvxe); + } + else if (!isSet(class_extends_vvvvvxe)) + { + var class_extends_vvvvvxe = []; + } + var class_extends = class_extends_vvvvvxe.some(class_extends_vvvvvxe_SomeFunc); + + + // set this function logic + if (add_head && class_extends) + { + jQuery('#jform_head-lbl').closest('.control-group').show(); + // add required attribute to head field + if (jform_vvvvvxevwd_required) + { + updateFieldRequired('head',0); + jQuery('#jform_head').prop('required','required'); + jQuery('#jform_head').attr('aria-required',true); + jQuery('#jform_head').addClass('required'); + jform_vvvvvxevwd_required = false; + } + } + else + { + jQuery('#jform_head-lbl').closest('.control-group').hide(); + // remove required attribute from head field + if (!jform_vvvvvxevwd_required) + { + updateFieldRequired('head',1); + jQuery('#jform_head').removeAttr('required'); + jQuery('#jform_head').removeAttr('aria-required'); + jQuery('#jform_head').removeClass('required'); + jform_vvvvvxevwd_required = true; + } + } +} + +// the vvvvvxe Some function +function add_head_vvvvvxe_SomeFunc(add_head_vvvvvxe) +{ + // set the function logic + if (add_head_vvvvvxe == 1) + { + return true; + } + return false; +} + +// the vvvvvxe Some function +function class_extends_vvvvvxe_SomeFunc(class_extends_vvvvvxe) +{ + // set the function logic + if (isSet(class_extends_vvvvvxe)) + { + return true; + } + return false; +} + +// update required fields +function updateFieldRequired(name,status) +{ + var not_required = jQuery('#jform_not_required').val(); + + if(status == 1) + { + if (isSet(not_required) && not_required != 0) + { + not_required = not_required+','+name; + } + else + { + not_required = ','+name; + } + } + else + { + if (isSet(not_required) && not_required != 0) + { + not_required = not_required.replace(','+name,''); + } + } + + jQuery('#jform_not_required').val(not_required); +} + // the isSet function function isSet(val) { @@ -165,15 +319,8 @@ jQuery(document).ready(function() // get the linked details getLinked(); // load the active array values - buildSelectionArray('property'); - buildSelectionArray('method'); - // set joomla_plugin_group Array - selectionArray['joomla_plugin_group'] = {}; - jQuery("#jform_joomla_plugin_group option").each(function() { - var key = jQuery(this).val(); - var text = jQuery(this).text(); - selectionArray['joomla_plugin_group'][key] = text; - }); + buildSelectionMemory('property'); + buildSelectionMemory('method'); // load the active selection array values getClassCodeIds('joomla_plugin_group', 'jform_class_extends', false); getClassCodeIds('property', 'jform_joomla_plugin_group', false); @@ -184,6 +331,23 @@ jQuery(document).ready(function() rowWatcher(); }); +// set selection the options +selectionMemory = {'property':{},'method':{}}; +selectionActiveArray = {'property':{},'method':{}}; +selectedIdRemoved = {'property':'not','method':'not'}; + +function buildSelectionMemory(type) { + var i; + for (i = 0; i < 70; i++) { + // build ID + var id_check = 'jform_'+type+'_selection'+'__'+type+'_selection'+i+'__'+type; + // set memory + if (jQuery("#"+id_check).length) { + selectionMemory[type][id_check] = jQuery("#"+id_check+" option:selected").val(); + } + } +} + function getClassStuff_server(id, type, callingName){ var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax."+callingName+"&format=json&raw=true"); if(token.length > 0 && id > 0 && type.length > 0){ @@ -198,6 +362,30 @@ function getClassStuff_server(id, type, callingName){ }); } +function getClassHeaderCode(){ + // now get the values + var value = jQuery("#jform_class_extends option:selected").val(); + var add_value = jQuery("#jform_add_head input[type='radio']:checked").val(); + if (add_value == 1 && value > 0){ + // we first check local memory + var _result = jQuery.jStorage.get('extends_header_'+value, null); + if (_result) { + // now set the code + addCodeToEditor(_result, "jform_head", false); + } else { + // now get the code + getClassStuff_server(value, 'extends', 'getClassHeaderCode').done(function(result) { + if(result){ + // now set the code + addCodeToEditor(result, "jform_head", false); + // add result to local memory + jQuery.jStorage.set('extends_header_'+value, result, {TTL: expire}); + } + }); + } + } +} + function getClassCodeIds(type, target_field, reset_all){ // now get the value var value = jQuery('#'+target_field).val(); @@ -207,7 +395,7 @@ function getClassCodeIds(type, target_field, reset_all){ // reset the selection selectionActiveArray[type] = {}; // update the active array - jQuery.each( result, function(i, prop) { + jQuery.each(result, function(i, prop) { selectionActiveArray[type][prop] = selectionArray[type][prop]; }); // update the active field selection @@ -276,6 +464,7 @@ function resetAll(type) { } } Joomla.editors.instances['jform_main_class_code'].setValue(''); + selectionMemory = {'property':{},'method':{}}; } function getClassCode(field, type){ @@ -283,6 +472,31 @@ function getClassCode(field, type){ var id = jQuery(field).attr('id'); // now get the value var value = jQuery('#' + id).val(); + // check if we have a memory for this field, if true remove code of old selection and clear memory + if (selectionMemory[type].hasOwnProperty(id) && selectionMemory[type][id] > 0) { + // the old id to remove + var old_value = selectionMemory[type][id]; + // remove the code // we first check local memory + var _result = jQuery.jStorage.get('code_4_'+type+'_'+old_value, null); + if (_result) { + // now remove the code + if (removeCodeFromEditor(_result)) { + selectionMemory[type][id] = 0; + } + } else { + // now get the code + getClassStuff_server(old_value, type, 'getClassCode').done(function(result) { + if(result){ + // now remove the code + if (removeCodeFromEditor(result)) { + selectionMemory[type][id] = 0; + } + // add result to local memory + jQuery.jStorage.set('code_4_'+type+'_'+old_value, result, {TTL: expire}); + } + }); + } + } if (propertyIsSet(value, id, type)) { // reset the selection jQuery('#'+id).val(''); @@ -294,69 +508,81 @@ function getClassCode(field, type){ selectedIdRemoved[type] = id; // do a dynamic update (to remove what was already used) selectionDynamicUpdate(type); - // now get the code - getClassStuff_server(value, type, 'getClassCode').done(function(result) { - if(result){ - if (Joomla.editors.instances.hasOwnProperty("jform_main_class_code")) { - var old_result = Joomla.editors.instances['jform_main_class_code'].getValue(); - if (old_result.length > 0) { - // make sure not to load the same string twice - if (old_result.indexOf(result) !== -1) { - // reset the selection - jQuery('#'+id).val(''); - jQuery('#'+id).trigger("liszt:updated"); - // give out a notice - jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'}); - } else { - Joomla.editors.instances['jform_main_class_code'].setValue(old_result + "\n\n" + result); - } - } else { - Joomla.editors.instances['jform_main_class_code'].setValue(result); - } - } else { - var old_result = jQuery('textarea#jform_main_class_code').val(); - if (old_result.length > 0) { - // make sure not to load the same string twice - if (old_result.indexOf(result) !== -1) { - // reset the selection - jQuery('#'+id).val(''); - jQuery('#'+id).trigger("liszt:updated"); - // give out a notice - jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'}); - } else { - jQuery('textarea#jform_main_class_code').val(old_result + "\n\n" + result); - } - } else { - jQuery('textarea#jform_main_class_code').val(result); - } - } + // we first check local memory + var _result = jQuery.jStorage.get('code_4_'+type+'_'+value, null); + if (_result) { + // now set the code + if (addCodeToEditor(_result, "jform_main_class_code", true)) { + selectionMemory[type][id] = value; } - }); + } else { + // now get the code + getClassStuff_server(value, type, 'getClassCode').done(function(result) { + if(result){ + // now set the code + if (addCodeToEditor(result, "jform_main_class_code", true)) { + selectionMemory[type][id] = value; + } + // add result to local memory + jQuery.jStorage.set('code_4_'+type+'_'+value, result, {TTL: expire}); + } + }); + } } } -// set selection the options -selectionArray = {'property':{},'method':{}}; -selectionActiveArray = {'property':{},'method':{}}; -selectedIdRemoved = {'property':'not','method':'not'}; -justonce = {'property':1,'method':1}; - -function buildSelectionArray(type) { - var i; - for (i = 0; i < 10; i++) { - // build ID - var id_check = 'jform_'+type+'_selection'+'__'+type+'_selection'+i+'__'+type; - // first check if Id is on page as that not the same as the one currently calling - if (justonce[type] == 1 && jQuery("#"+id_check).length) { - // set buckets - jQuery("#"+id_check+" option").each(function() { - var key = jQuery(this).val(); - var text = jQuery(this).text(); - selectionArray[type][key] = text; - }); - justonce[type]++; +function addCodeToEditor(code_string, editor_id, merge){ + if (Joomla.editors.instances.hasOwnProperty(editor_id)) { + var old_code_string = Joomla.editors.instances[editor_id].getValue(); + if (merge && old_code_string.length > 0) { + // make sure not to load the same string twice + if (old_code_string.indexOf(code_string) == -1) { + Joomla.editors.instances[editor_id].setValue(old_code_string + "\n\n" + code_string); + return true; + } + } else { + Joomla.editors.instances[editor_id].setValue(code_string); + return true; + } + } else { + var old_code_string = jQuery('textarea#'+editor_id).val(); + if (merge && old_code_string.length > 0) { + // make sure not to load the same string twice + if (old_code_string.indexOf(code_string) == -1) { + jQuery('textarea#'+editor_id).val(old_code_string + "\n\n" + code_string); + return true; + } + } else { + jQuery('textarea#'+editor_id).val(code_string); + return true; } } + return false; +} + +function removeCodeFromEditor(code_string){ + if (Joomla.editors.instances.hasOwnProperty("jform_main_class_code")) { + var old_code_string = Joomla.editors.instances['jform_main_class_code'].getValue(); + if (old_code_string.length > 0) { + // make sure not to load the same string twice + if (old_code_string.indexOf(code_string) !== -1) { + // remove the code + Joomla.editors.instances['jform_main_class_code'].setValue(old_code_string.replace(code_string+"\n\n",'').replace("\n\n"+code_string,'').replace(code_string,'')); + return true; + } + } + } else { + var old_code_string = jQuery('textarea#jform_main_class_code').val(); + if (old_code_string.length > 0) { + // make sure not to load the same string twice + if (old_code_string.indexOf(code_string) !== -1) { + // remove the code + jQuery('textarea#jform_main_class_code').val(old_code_string.replace(code_string+"\n\n",'').replace("\n\n"+code_string,'').replace(code_string,'')); + return true; + } + } + } + return false; } function selectionDynamicUpdate(type) { @@ -379,8 +605,6 @@ function selectionDynamicUpdate(type) { jQuery("#"+id_check).find('option').remove().end(); } } - // trigger chosen on the list fields - // jQuery('.'+type+'_selection_list').chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":Joomla.JText._("COM_COMPONENTBUILDER_TYPE_OR_SELECT_SOME_OPTIONS"),"placeholder_text_single":Joomla.JText._("COM_COMPONENTBUILDER_SELECT_A_PROPERTY"),"no_results_text":Joomla.JText._("COM_COMPONENTBUILDER_NO_RESULTS_MATCH")}); // now build the list to keep jQuery.each( selectionActiveArray[type], function( prop, name ) { if (!selectionSelectedArray.hasOwnProperty(prop)) { @@ -416,29 +640,28 @@ function rowWatcher() { selectionDynamicUpdate(type_call); // also remove from code var valid_value = jQuery(row.innerHTML).find('#' + valid_call + ' option:selected').val(); - getClassStuff_server(valid_value, type_call, 'getClassCode').done(function(result) { - if(result){ - if (Joomla.editors.instances.hasOwnProperty("jform_main_class_code")) { - var old_result = Joomla.editors.instances['jform_main_class_code'].getValue(); - if (old_result.length > 0) { - // make sure not to load the same string twice - if (old_result.indexOf(result) !== -1) { - // remove the code - Joomla.editors.instances['jform_main_class_code'].setValue(old_result.replace(result+"\n\n",'').replace("\n\n"+result,'').replace(result,'')); - } - } - } else { - var old_result = jQuery('textarea#jform_main_class_code').val(); - if (old_result.length > 0) { - // make sure not to load the same string twice - if (old_result.indexOf(result) !== -1) { - // remove the code - jQuery('textarea#jform_main_class_code').val(old_result.replace(result+"\n\n",'').replace("\n\n"+result,'').replace(result,'')); - } - } - } + if (valid_value === '') { + valid_value = selectionMemory[type_call][valid_call]; + } + // remove the code // we first check local memory + var _result = jQuery.jStorage.get('code_4_'+type_call+'_'+valid_value, null); + if (_result) { + // now remove the code + if (removeCodeFromEditor(_result)) { + selectionMemory[type_call][valid_call] = 0; } - }); + } else { + // now get the code + getClassStuff_server(valid_value, type_call, 'getClassCode').done(function(result) { + if(result){ + if (removeCodeFromEditor(result)) { + selectionMemory[type_call][valid_call] = 0;; + } + // add result to local memory + jQuery.jStorage.set('code_4_'+type_call+'_'+valid_value, result, {TTL: expire}); + } + }); + } } }); jQuery(document).on('subform-row-add', function(event, row){ diff --git a/admin/models/forms/joomla_plugin.xml b/admin/models/forms/joomla_plugin.xml index faa14c014..e36c0067d 100644 --- a/admin/models/forms/joomla_plugin.xml +++ b/admin/models/forms/joomla_plugin.xml @@ -85,21 +85,19 @@ filter="unset" /> - + + + + + + + + + + + diff --git a/admin/models/forms/layout.js b/admin/models/forms/layout.js index f676d5719..e9704ab08 100644 --- a/admin/models/forms/layout.js +++ b/admin/models/forms/layout.js @@ -11,15 +11,15 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvzh = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvzh(add_php_view_vvvvvzh); + var add_php_view_vvvvvzk = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvvzk(add_php_view_vvvvvzk); }); -// the vvvvvzh function -function vvvvvzh(add_php_view_vvvvvzh) +// the vvvvvzk function +function vvvvvzk(add_php_view_vvvvvzk) { // set the function logic - if (add_php_view_vvvvvzh == 1) + if (add_php_view_vvvvvzk == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } diff --git a/admin/models/forms/library.js b/admin/models/forms/library.js index 653d0d802..a7cf65e70 100644 --- a/admin/models/forms/library.js +++ b/admin/models/forms/library.js @@ -9,21 +9,12 @@ */ // Some Global Values -jform_vvvvwaqvxf_required = false; -jform_vvvvwawvxg_required = false; +jform_vvvvwatvxg_required = false; +jform_vvvvwazvxh_required = false; // Initial Script jQuery(document).ready(function() { - var how_vvvvwap = jQuery("#jform_how").val(); - vvvvwap(how_vvvvwap); - - var how_vvvvwaq = jQuery("#jform_how").val(); - vvvvwaq(how_vvvvwaq); - - var how_vvvvwar = jQuery("#jform_how").val(); - vvvvwar(how_vvvvwar); - var how_vvvvwas = jQuery("#jform_how").val(); vvvvwas(how_vvvvwas); @@ -36,142 +27,19 @@ jQuery(document).ready(function() var how_vvvvwav = jQuery("#jform_how").val(); vvvvwav(how_vvvvwav); - var type_vvvvwaw = jQuery("#jform_type input[type='radio']:checked").val(); - vvvvwaw(type_vvvvwaw); + var how_vvvvwaw = jQuery("#jform_how").val(); + vvvvwaw(how_vvvvwaw); + + var how_vvvvwax = jQuery("#jform_how").val(); + vvvvwax(how_vvvvwax); + + var how_vvvvway = jQuery("#jform_how").val(); + vvvvway(how_vvvvway); + + var type_vvvvwaz = jQuery("#jform_type input[type='radio']:checked").val(); + vvvvwaz(type_vvvvwaz); }); -// the vvvvwap function -function vvvvwap(how_vvvvwap) -{ - if (isSet(how_vvvvwap) && how_vvvvwap.constructor !== Array) - { - var temp_vvvvwap = how_vvvvwap; - var how_vvvvwap = []; - how_vvvvwap.push(temp_vvvvwap); - } - else if (!isSet(how_vvvvwap)) - { - var how_vvvvwap = []; - } - var how = how_vvvvwap.some(how_vvvvwap_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 vvvvwap Some function -function how_vvvvwap_SomeFunc(how_vvvvwap) -{ - // set the function logic - if (how_vvvvwap == 2) - { - return true; - } - return false; -} - -// the vvvvwaq function -function vvvvwaq(how_vvvvwaq) -{ - if (isSet(how_vvvvwaq) && how_vvvvwaq.constructor !== Array) - { - var temp_vvvvwaq = how_vvvvwaq; - var how_vvvvwaq = []; - how_vvvvwaq.push(temp_vvvvwaq); - } - else if (!isSet(how_vvvvwaq)) - { - var how_vvvvwaq = []; - } - var how = how_vvvvwaq.some(how_vvvvwaq_SomeFunc); - - - // set this function logic - if (how) - { - jQuery('#jform_php_setdocument').closest('.control-group').show(); - // add required attribute to php_setdocument field - if (jform_vvvvwaqvxf_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_vvvvwaqvxf_required = false; - } - } - else - { - jQuery('#jform_php_setdocument').closest('.control-group').hide(); - // remove required attribute from php_setdocument field - if (!jform_vvvvwaqvxf_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_vvvvwaqvxf_required = true; - } - } -} - -// the vvvvwaq Some function -function how_vvvvwaq_SomeFunc(how_vvvvwaq) -{ - // set the function logic - if (how_vvvvwaq == 3) - { - return true; - } - return false; -} - -// the vvvvwar function -function vvvvwar(how_vvvvwar) -{ - if (isSet(how_vvvvwar) && how_vvvvwar.constructor !== Array) - { - var temp_vvvvwar = how_vvvvwar; - var how_vvvvwar = []; - how_vvvvwar.push(temp_vvvvwar); - } - else if (!isSet(how_vvvvwar)) - { - var how_vvvvwar = []; - } - var how = how_vvvvwar.some(how_vvvvwar_SomeFunc); - - - // set this function logic - if (how) - { - jQuery('.note_display_library_config').closest('.control-group').show(); - } - else - { - jQuery('.note_display_library_config').closest('.control-group').hide(); - } -} - -// the vvvvwar Some function -function how_vvvvwar_SomeFunc(how_vvvvwar) -{ - // set the function logic - if (how_vvvvwar == 2 || how_vvvvwar == 3) - { - return true; - } - return false; -} - // the vvvvwas function function vvvvwas(how_vvvvwas) { @@ -191,11 +59,11 @@ function vvvvwas(how_vvvvwas) // set this function logic if (how) { - jQuery('.note_display_library_files_folders_urls').closest('.control-group').show(); + jQuery('#jform_addconditions-lbl').closest('.control-group').show(); } else { - jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide(); + jQuery('#jform_addconditions-lbl').closest('.control-group').hide(); } } @@ -203,7 +71,7 @@ function vvvvwas(how_vvvvwas) function how_vvvvwas_SomeFunc(how_vvvvwas) { // set the function logic - if (how_vvvvwas == 1 || how_vvvvwas == 2 || how_vvvvwas == 3) + if (how_vvvvwas == 2) { return true; } @@ -229,15 +97,29 @@ function vvvvwat(how_vvvvwat) // set this function logic if (how) { - jQuery('.note_no_behaviour_one').closest('.control-group').show(); - jQuery('.note_no_behaviour_three').closest('.control-group').show(); - jQuery('.note_no_behaviour_two').closest('.control-group').show(); + jQuery('#jform_php_setdocument').closest('.control-group').show(); + // add required attribute to php_setdocument field + if (jform_vvvvwatvxg_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_vvvvwatvxg_required = false; + } } else { - jQuery('.note_no_behaviour_one').closest('.control-group').hide(); - jQuery('.note_no_behaviour_three').closest('.control-group').hide(); - jQuery('.note_no_behaviour_two').closest('.control-group').hide(); + jQuery('#jform_php_setdocument').closest('.control-group').hide(); + // remove required attribute from php_setdocument field + if (!jform_vvvvwatvxg_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_vvvvwatvxg_required = true; + } } } @@ -245,7 +127,7 @@ function vvvvwat(how_vvvvwat) function how_vvvvwat_SomeFunc(how_vvvvwat) { // set the function logic - if (how_vvvvwat == 0) + if (how_vvvvwat == 3) { return true; } @@ -271,13 +153,11 @@ function vvvvwau(how_vvvvwau) // set this function logic if (how) { - jQuery('.note_yes_behaviour_one').closest('.control-group').show(); - jQuery('.note_yes_behaviour_two').closest('.control-group').show(); + jQuery('.note_display_library_config').closest('.control-group').show(); } else { - jQuery('.note_yes_behaviour_one').closest('.control-group').hide(); - jQuery('.note_yes_behaviour_two').closest('.control-group').hide(); + jQuery('.note_display_library_config').closest('.control-group').hide(); } } @@ -285,7 +165,7 @@ function vvvvwau(how_vvvvwau) function how_vvvvwau_SomeFunc(how_vvvvwau) { // set the function logic - if (how_vvvvwau == 1) + if (how_vvvvwau == 2 || how_vvvvwau == 3) { return true; } @@ -308,6 +188,126 @@ function vvvvwav(how_vvvvwav) var how = how_vvvvwav.some(how_vvvvwav_SomeFunc); + // set this function logic + if (how) + { + jQuery('.note_display_library_files_folders_urls').closest('.control-group').show(); + } + else + { + jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide(); + } +} + +// the vvvvwav Some function +function how_vvvvwav_SomeFunc(how_vvvvwav) +{ + // set the function logic + if (how_vvvvwav == 1 || how_vvvvwav == 2 || how_vvvvwav == 3) + { + return true; + } + return false; +} + +// the vvvvwaw function +function vvvvwaw(how_vvvvwaw) +{ + if (isSet(how_vvvvwaw) && how_vvvvwaw.constructor !== Array) + { + var temp_vvvvwaw = how_vvvvwaw; + var how_vvvvwaw = []; + how_vvvvwaw.push(temp_vvvvwaw); + } + else if (!isSet(how_vvvvwaw)) + { + var how_vvvvwaw = []; + } + var how = how_vvvvwaw.some(how_vvvvwaw_SomeFunc); + + + // set this function logic + if (how) + { + jQuery('.note_no_behaviour_one').closest('.control-group').show(); + jQuery('.note_no_behaviour_three').closest('.control-group').show(); + jQuery('.note_no_behaviour_two').closest('.control-group').show(); + } + else + { + jQuery('.note_no_behaviour_one').closest('.control-group').hide(); + jQuery('.note_no_behaviour_three').closest('.control-group').hide(); + jQuery('.note_no_behaviour_two').closest('.control-group').hide(); + } +} + +// the vvvvwaw Some function +function how_vvvvwaw_SomeFunc(how_vvvvwaw) +{ + // set the function logic + if (how_vvvvwaw == 0) + { + return true; + } + return false; +} + +// the vvvvwax function +function vvvvwax(how_vvvvwax) +{ + if (isSet(how_vvvvwax) && how_vvvvwax.constructor !== Array) + { + var temp_vvvvwax = how_vvvvwax; + var how_vvvvwax = []; + how_vvvvwax.push(temp_vvvvwax); + } + else if (!isSet(how_vvvvwax)) + { + var how_vvvvwax = []; + } + var how = how_vvvvwax.some(how_vvvvwax_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 vvvvwax Some function +function how_vvvvwax_SomeFunc(how_vvvvwax) +{ + // set the function logic + if (how_vvvvwax == 1) + { + return true; + } + return false; +} + +// the vvvvway function +function vvvvway(how_vvvvway) +{ + if (isSet(how_vvvvway) && how_vvvvway.constructor !== Array) + { + var temp_vvvvway = how_vvvvway; + var how_vvvvway = []; + how_vvvvway.push(temp_vvvvway); + } + else if (!isSet(how_vvvvway)) + { + var how_vvvvway = []; + } + var how = how_vvvvway.some(how_vvvvway_SomeFunc); + + // set this function logic if (how) { @@ -323,45 +323,45 @@ function vvvvwav(how_vvvvwav) } } -// the vvvvwav Some function -function how_vvvvwav_SomeFunc(how_vvvvwav) +// the vvvvway Some function +function how_vvvvway_SomeFunc(how_vvvvway) { // set the function logic - if (how_vvvvwav == 4) + if (how_vvvvway == 4) { return true; } return false; } -// the vvvvwaw function -function vvvvwaw(type_vvvvwaw) +// the vvvvwaz function +function vvvvwaz(type_vvvvwaz) { // set the function logic - if (type_vvvvwaw == 2) + if (type_vvvvwaz == 2) { jQuery('#jform_libraries').closest('.control-group').show(); // add required attribute to libraries field - if (jform_vvvvwawvxg_required) + if (jform_vvvvwazvxh_required) { updateFieldRequired('libraries',0); jQuery('#jform_libraries').prop('required','required'); jQuery('#jform_libraries').attr('aria-required',true); jQuery('#jform_libraries').addClass('required'); - jform_vvvvwawvxg_required = false; + jform_vvvvwazvxh_required = false; } } else { jQuery('#jform_libraries').closest('.control-group').hide(); // remove required attribute from libraries field - if (!jform_vvvvwawvxg_required) + if (!jform_vvvvwazvxh_required) { updateFieldRequired('libraries',1); jQuery('#jform_libraries').removeAttr('required'); jQuery('#jform_libraries').removeAttr('aria-required'); jQuery('#jform_libraries').removeClass('required'); - jform_vvvvwawvxg_required = true; + jform_vvvvwazvxh_required = true; } } } diff --git a/admin/models/forms/server.js b/admin/models/forms/server.js index a85edeee0..0a2d48ce3 100644 --- a/admin/models/forms/server.js +++ b/admin/models/forms/server.js @@ -9,56 +9,56 @@ */ // Some Global Values -jform_vvvvwbtvxt_required = false; -jform_vvvvwbtvxu_required = false; -jform_vvvvwbtvxv_required = false; -jform_vvvvwbtvxw_required = false; -jform_vvvvwbtvxx_required = false; -jform_vvvvwbuvxy_required = false; -jform_vvvvwbvvxz_required = false; -jform_vvvvwbxvya_required = false; -jform_vvvvwbzvyb_required = false; +jform_vvvvwbwvxu_required = false; +jform_vvvvwbwvxv_required = false; +jform_vvvvwbwvxw_required = false; +jform_vvvvwbwvxx_required = false; +jform_vvvvwbwvxy_required = false; +jform_vvvvwbxvxz_required = false; +jform_vvvvwbyvya_required = false; +jform_vvvvwcavyb_required = false; +jform_vvvvwccvyc_required = false; // Initial Script jQuery(document).ready(function() { - var protocol_vvvvwbt = jQuery("#jform_protocol").val(); - vvvvwbt(protocol_vvvvwbt); - - var protocol_vvvvwbu = jQuery("#jform_protocol").val(); - vvvvwbu(protocol_vvvvwbu); - - var protocol_vvvvwbv = jQuery("#jform_protocol").val(); - var authentication_vvvvwbv = jQuery("#jform_authentication").val(); - vvvvwbv(protocol_vvvvwbv,authentication_vvvvwbv); + var protocol_vvvvwbw = jQuery("#jform_protocol").val(); + vvvvwbw(protocol_vvvvwbw); var protocol_vvvvwbx = jQuery("#jform_protocol").val(); - var authentication_vvvvwbx = jQuery("#jform_authentication").val(); - vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx); + vvvvwbx(protocol_vvvvwbx); - var protocol_vvvvwbz = jQuery("#jform_protocol").val(); - var authentication_vvvvwbz = jQuery("#jform_authentication").val(); - vvvvwbz(protocol_vvvvwbz,authentication_vvvvwbz); + var protocol_vvvvwby = jQuery("#jform_protocol").val(); + var authentication_vvvvwby = jQuery("#jform_authentication").val(); + vvvvwby(protocol_vvvvwby,authentication_vvvvwby); - var protocol_vvvvwcb = jQuery("#jform_protocol").val(); - var authentication_vvvvwcb = jQuery("#jform_authentication").val(); - vvvvwcb(protocol_vvvvwcb,authentication_vvvvwcb); + var protocol_vvvvwca = jQuery("#jform_protocol").val(); + var authentication_vvvvwca = jQuery("#jform_authentication").val(); + vvvvwca(protocol_vvvvwca,authentication_vvvvwca); + + var protocol_vvvvwcc = jQuery("#jform_protocol").val(); + var authentication_vvvvwcc = jQuery("#jform_authentication").val(); + vvvvwcc(protocol_vvvvwcc,authentication_vvvvwcc); + + var protocol_vvvvwce = jQuery("#jform_protocol").val(); + var authentication_vvvvwce = jQuery("#jform_authentication").val(); + vvvvwce(protocol_vvvvwce,authentication_vvvvwce); }); -// the vvvvwbt function -function vvvvwbt(protocol_vvvvwbt) +// the vvvvwbw function +function vvvvwbw(protocol_vvvvwbw) { - if (isSet(protocol_vvvvwbt) && protocol_vvvvwbt.constructor !== Array) + if (isSet(protocol_vvvvwbw) && protocol_vvvvwbw.constructor !== Array) { - var temp_vvvvwbt = protocol_vvvvwbt; - var protocol_vvvvwbt = []; - protocol_vvvvwbt.push(temp_vvvvwbt); + var temp_vvvvwbw = protocol_vvvvwbw; + var protocol_vvvvwbw = []; + protocol_vvvvwbw.push(temp_vvvvwbw); } - else if (!isSet(protocol_vvvvwbt)) + else if (!isSet(protocol_vvvvwbw)) { - var protocol_vvvvwbt = []; + var protocol_vvvvwbw = []; } - var protocol = protocol_vvvvwbt.some(protocol_vvvvwbt_SomeFunc); + var protocol = protocol_vvvvwbw.some(protocol_vvvvwbw_SomeFunc); // set this function logic @@ -66,254 +66,117 @@ function vvvvwbt(protocol_vvvvwbt) { jQuery('#jform_authentication').closest('.control-group').show(); // add required attribute to authentication field - if (jform_vvvvwbtvxt_required) + if (jform_vvvvwbwvxu_required) { updateFieldRequired('authentication',0); jQuery('#jform_authentication').prop('required','required'); jQuery('#jform_authentication').attr('aria-required',true); jQuery('#jform_authentication').addClass('required'); - jform_vvvvwbtvxt_required = false; + jform_vvvvwbwvxu_required = false; } jQuery('#jform_host').closest('.control-group').show(); // add required attribute to host field - if (jform_vvvvwbtvxu_required) + if (jform_vvvvwbwvxv_required) { updateFieldRequired('host',0); jQuery('#jform_host').prop('required','required'); jQuery('#jform_host').attr('aria-required',true); jQuery('#jform_host').addClass('required'); - jform_vvvvwbtvxu_required = false; + jform_vvvvwbwvxv_required = false; } jQuery('#jform_port').closest('.control-group').show(); // add required attribute to port field - if (jform_vvvvwbtvxv_required) + if (jform_vvvvwbwvxw_required) { updateFieldRequired('port',0); jQuery('#jform_port').prop('required','required'); jQuery('#jform_port').attr('aria-required',true); jQuery('#jform_port').addClass('required'); - jform_vvvvwbtvxv_required = false; + jform_vvvvwbwvxw_required = false; } jQuery('#jform_path').closest('.control-group').show(); // add required attribute to path field - if (jform_vvvvwbtvxw_required) + if (jform_vvvvwbwvxx_required) { updateFieldRequired('path',0); jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').addClass('required'); - jform_vvvvwbtvxw_required = false; + jform_vvvvwbwvxx_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_vvvvwbtvxx_required) + if (jform_vvvvwbwvxy_required) { updateFieldRequired('username',0); jQuery('#jform_username').prop('required','required'); jQuery('#jform_username').attr('aria-required',true); jQuery('#jform_username').addClass('required'); - jform_vvvvwbtvxx_required = false; + jform_vvvvwbwvxy_required = false; } } else { jQuery('#jform_authentication').closest('.control-group').hide(); // remove required attribute from authentication field - if (!jform_vvvvwbtvxt_required) + if (!jform_vvvvwbwvxu_required) { updateFieldRequired('authentication',1); jQuery('#jform_authentication').removeAttr('required'); jQuery('#jform_authentication').removeAttr('aria-required'); jQuery('#jform_authentication').removeClass('required'); - jform_vvvvwbtvxt_required = true; + jform_vvvvwbwvxu_required = true; } jQuery('#jform_host').closest('.control-group').hide(); // remove required attribute from host field - if (!jform_vvvvwbtvxu_required) + if (!jform_vvvvwbwvxv_required) { updateFieldRequired('host',1); jQuery('#jform_host').removeAttr('required'); jQuery('#jform_host').removeAttr('aria-required'); jQuery('#jform_host').removeClass('required'); - jform_vvvvwbtvxu_required = true; + jform_vvvvwbwvxv_required = true; } jQuery('#jform_port').closest('.control-group').hide(); // remove required attribute from port field - if (!jform_vvvvwbtvxv_required) + if (!jform_vvvvwbwvxw_required) { updateFieldRequired('port',1); jQuery('#jform_port').removeAttr('required'); jQuery('#jform_port').removeAttr('aria-required'); jQuery('#jform_port').removeClass('required'); - jform_vvvvwbtvxv_required = true; + jform_vvvvwbwvxw_required = true; } jQuery('#jform_path').closest('.control-group').hide(); // remove required attribute from path field - if (!jform_vvvvwbtvxw_required) + if (!jform_vvvvwbwvxx_required) { updateFieldRequired('path',1); jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeClass('required'); - jform_vvvvwbtvxw_required = true; + jform_vvvvwbwvxx_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_vvvvwbtvxx_required) + if (!jform_vvvvwbwvxy_required) { updateFieldRequired('username',1); jQuery('#jform_username').removeAttr('required'); jQuery('#jform_username').removeAttr('aria-required'); jQuery('#jform_username').removeClass('required'); - jform_vvvvwbtvxx_required = true; + jform_vvvvwbwvxy_required = true; } } } -// the vvvvwbt Some function -function protocol_vvvvwbt_SomeFunc(protocol_vvvvwbt) +// the vvvvwbw Some function +function protocol_vvvvwbw_SomeFunc(protocol_vvvvwbw) { // set the function logic - if (protocol_vvvvwbt == 2) - { - return true; - } - return false; -} - -// the vvvvwbu function -function vvvvwbu(protocol_vvvvwbu) -{ - if (isSet(protocol_vvvvwbu) && protocol_vvvvwbu.constructor !== Array) - { - var temp_vvvvwbu = protocol_vvvvwbu; - var protocol_vvvvwbu = []; - protocol_vvvvwbu.push(temp_vvvvwbu); - } - else if (!isSet(protocol_vvvvwbu)) - { - var protocol_vvvvwbu = []; - } - var protocol = protocol_vvvvwbu.some(protocol_vvvvwbu_SomeFunc); - - - // set this function logic - if (protocol) - { - jQuery('.note_ftp_signature').closest('.control-group').show(); - jQuery('#jform_signature').closest('.control-group').show(); - // add required attribute to signature field - if (jform_vvvvwbuvxy_required) - { - updateFieldRequired('signature',0); - jQuery('#jform_signature').prop('required','required'); - jQuery('#jform_signature').attr('aria-required',true); - jQuery('#jform_signature').addClass('required'); - jform_vvvvwbuvxy_required = false; - } - } - else - { - jQuery('.note_ftp_signature').closest('.control-group').hide(); - jQuery('#jform_signature').closest('.control-group').hide(); - // remove required attribute from signature field - if (!jform_vvvvwbuvxy_required) - { - updateFieldRequired('signature',1); - jQuery('#jform_signature').removeAttr('required'); - jQuery('#jform_signature').removeAttr('aria-required'); - jQuery('#jform_signature').removeClass('required'); - jform_vvvvwbuvxy_required = true; - } - } -} - -// the vvvvwbu Some function -function protocol_vvvvwbu_SomeFunc(protocol_vvvvwbu) -{ - // set the function logic - if (protocol_vvvvwbu == 1) - { - return true; - } - return false; -} - -// the vvvvwbv function -function vvvvwbv(protocol_vvvvwbv,authentication_vvvvwbv) -{ - if (isSet(protocol_vvvvwbv) && protocol_vvvvwbv.constructor !== Array) - { - var temp_vvvvwbv = protocol_vvvvwbv; - var protocol_vvvvwbv = []; - protocol_vvvvwbv.push(temp_vvvvwbv); - } - else if (!isSet(protocol_vvvvwbv)) - { - var protocol_vvvvwbv = []; - } - var protocol = protocol_vvvvwbv.some(protocol_vvvvwbv_SomeFunc); - - if (isSet(authentication_vvvvwbv) && authentication_vvvvwbv.constructor !== Array) - { - var temp_vvvvwbv = authentication_vvvvwbv; - var authentication_vvvvwbv = []; - authentication_vvvvwbv.push(temp_vvvvwbv); - } - else if (!isSet(authentication_vvvvwbv)) - { - var authentication_vvvvwbv = []; - } - var authentication = authentication_vvvvwbv.some(authentication_vvvvwbv_SomeFunc); - - - // set this function logic - if (protocol && authentication) - { - jQuery('#jform_password').closest('.control-group').show(); - // add required attribute to password field - if (jform_vvvvwbvvxz_required) - { - updateFieldRequired('password',0); - jQuery('#jform_password').prop('required','required'); - jQuery('#jform_password').attr('aria-required',true); - jQuery('#jform_password').addClass('required'); - jform_vvvvwbvvxz_required = false; - } - } - else - { - jQuery('#jform_password').closest('.control-group').hide(); - // remove required attribute from password field - if (!jform_vvvvwbvvxz_required) - { - updateFieldRequired('password',1); - jQuery('#jform_password').removeAttr('required'); - jQuery('#jform_password').removeAttr('aria-required'); - jQuery('#jform_password').removeClass('required'); - jform_vvvvwbvvxz_required = true; - } - } -} - -// the vvvvwbv Some function -function protocol_vvvvwbv_SomeFunc(protocol_vvvvwbv) -{ - // set the function logic - if (protocol_vvvvwbv == 2) - { - return true; - } - return false; -} - -// the vvvvwbv Some function -function authentication_vvvvwbv_SomeFunc(authentication_vvvvwbv) -{ - // set the function logic - if (authentication_vvvvwbv == 1 || authentication_vvvvwbv == 3 || authentication_vvvvwbv == 5) + if (protocol_vvvvwbw == 2) { return true; } @@ -321,7 +184,7 @@ function authentication_vvvvwbv_SomeFunc(authentication_vvvvwbv) } // the vvvvwbx function -function vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx) +function vvvvwbx(protocol_vvvvwbx) { if (isSet(protocol_vvvvwbx) && protocol_vvvvwbx.constructor !== Array) { @@ -335,44 +198,34 @@ function vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx) } var protocol = protocol_vvvvwbx.some(protocol_vvvvwbx_SomeFunc); - if (isSet(authentication_vvvvwbx) && authentication_vvvvwbx.constructor !== Array) - { - var temp_vvvvwbx = authentication_vvvvwbx; - var authentication_vvvvwbx = []; - authentication_vvvvwbx.push(temp_vvvvwbx); - } - else if (!isSet(authentication_vvvvwbx)) - { - var authentication_vvvvwbx = []; - } - var authentication = authentication_vvvvwbx.some(authentication_vvvvwbx_SomeFunc); - // set this function logic - if (protocol && authentication) + if (protocol) { - jQuery('#jform_private').closest('.control-group').show(); - // add required attribute to private field - if (jform_vvvvwbxvya_required) + jQuery('.note_ftp_signature').closest('.control-group').show(); + jQuery('#jform_signature').closest('.control-group').show(); + // add required attribute to signature field + if (jform_vvvvwbxvxz_required) { - updateFieldRequired('private',0); - jQuery('#jform_private').prop('required','required'); - jQuery('#jform_private').attr('aria-required',true); - jQuery('#jform_private').addClass('required'); - jform_vvvvwbxvya_required = false; + updateFieldRequired('signature',0); + jQuery('#jform_signature').prop('required','required'); + jQuery('#jform_signature').attr('aria-required',true); + jQuery('#jform_signature').addClass('required'); + jform_vvvvwbxvxz_required = false; } } else { - jQuery('#jform_private').closest('.control-group').hide(); - // remove required attribute from private field - if (!jform_vvvvwbxvya_required) + jQuery('.note_ftp_signature').closest('.control-group').hide(); + jQuery('#jform_signature').closest('.control-group').hide(); + // remove required attribute from signature field + if (!jform_vvvvwbxvxz_required) { - updateFieldRequired('private',1); - jQuery('#jform_private').removeAttr('required'); - jQuery('#jform_private').removeAttr('aria-required'); - jQuery('#jform_private').removeClass('required'); - jform_vvvvwbxvya_required = true; + updateFieldRequired('signature',1); + jQuery('#jform_signature').removeAttr('required'); + jQuery('#jform_signature').removeAttr('aria-required'); + jQuery('#jform_signature').removeClass('required'); + jform_vvvvwbxvxz_required = true; } } } @@ -381,50 +234,197 @@ function vvvvwbx(protocol_vvvvwbx,authentication_vvvvwbx) function protocol_vvvvwbx_SomeFunc(protocol_vvvvwbx) { // set the function logic - if (protocol_vvvvwbx == 2) + if (protocol_vvvvwbx == 1) { return true; } return false; } -// the vvvvwbx Some function -function authentication_vvvvwbx_SomeFunc(authentication_vvvvwbx) +// the vvvvwby function +function vvvvwby(protocol_vvvvwby,authentication_vvvvwby) +{ + if (isSet(protocol_vvvvwby) && protocol_vvvvwby.constructor !== Array) + { + var temp_vvvvwby = protocol_vvvvwby; + var protocol_vvvvwby = []; + protocol_vvvvwby.push(temp_vvvvwby); + } + else if (!isSet(protocol_vvvvwby)) + { + var protocol_vvvvwby = []; + } + var protocol = protocol_vvvvwby.some(protocol_vvvvwby_SomeFunc); + + if (isSet(authentication_vvvvwby) && authentication_vvvvwby.constructor !== Array) + { + var temp_vvvvwby = authentication_vvvvwby; + var authentication_vvvvwby = []; + authentication_vvvvwby.push(temp_vvvvwby); + } + else if (!isSet(authentication_vvvvwby)) + { + var authentication_vvvvwby = []; + } + var authentication = authentication_vvvvwby.some(authentication_vvvvwby_SomeFunc); + + + // set this function logic + if (protocol && authentication) + { + jQuery('#jform_password').closest('.control-group').show(); + // add required attribute to password field + if (jform_vvvvwbyvya_required) + { + updateFieldRequired('password',0); + jQuery('#jform_password').prop('required','required'); + jQuery('#jform_password').attr('aria-required',true); + jQuery('#jform_password').addClass('required'); + jform_vvvvwbyvya_required = false; + } + } + else + { + jQuery('#jform_password').closest('.control-group').hide(); + // remove required attribute from password field + if (!jform_vvvvwbyvya_required) + { + updateFieldRequired('password',1); + jQuery('#jform_password').removeAttr('required'); + jQuery('#jform_password').removeAttr('aria-required'); + jQuery('#jform_password').removeClass('required'); + jform_vvvvwbyvya_required = true; + } + } +} + +// the vvvvwby Some function +function protocol_vvvvwby_SomeFunc(protocol_vvvvwby) { // set the function logic - if (authentication_vvvvwbx == 2 || authentication_vvvvwbx == 3) + if (protocol_vvvvwby == 2) { return true; } return false; } -// the vvvvwbz function -function vvvvwbz(protocol_vvvvwbz,authentication_vvvvwbz) +// the vvvvwby Some function +function authentication_vvvvwby_SomeFunc(authentication_vvvvwby) { - if (isSet(protocol_vvvvwbz) && protocol_vvvvwbz.constructor !== Array) + // set the function logic + if (authentication_vvvvwby == 1 || authentication_vvvvwby == 3 || authentication_vvvvwby == 5) { - var temp_vvvvwbz = protocol_vvvvwbz; - var protocol_vvvvwbz = []; - protocol_vvvvwbz.push(temp_vvvvwbz); + return true; } - else if (!isSet(protocol_vvvvwbz)) - { - var protocol_vvvvwbz = []; - } - var protocol = protocol_vvvvwbz.some(protocol_vvvvwbz_SomeFunc); + return false; +} - if (isSet(authentication_vvvvwbz) && authentication_vvvvwbz.constructor !== Array) +// the vvvvwca function +function vvvvwca(protocol_vvvvwca,authentication_vvvvwca) +{ + if (isSet(protocol_vvvvwca) && protocol_vvvvwca.constructor !== Array) { - var temp_vvvvwbz = authentication_vvvvwbz; - var authentication_vvvvwbz = []; - authentication_vvvvwbz.push(temp_vvvvwbz); + var temp_vvvvwca = protocol_vvvvwca; + var protocol_vvvvwca = []; + protocol_vvvvwca.push(temp_vvvvwca); } - else if (!isSet(authentication_vvvvwbz)) + else if (!isSet(protocol_vvvvwca)) { - var authentication_vvvvwbz = []; + var protocol_vvvvwca = []; } - var authentication = authentication_vvvvwbz.some(authentication_vvvvwbz_SomeFunc); + var protocol = protocol_vvvvwca.some(protocol_vvvvwca_SomeFunc); + + if (isSet(authentication_vvvvwca) && authentication_vvvvwca.constructor !== Array) + { + var temp_vvvvwca = authentication_vvvvwca; + var authentication_vvvvwca = []; + authentication_vvvvwca.push(temp_vvvvwca); + } + else if (!isSet(authentication_vvvvwca)) + { + var authentication_vvvvwca = []; + } + var authentication = authentication_vvvvwca.some(authentication_vvvvwca_SomeFunc); + + + // set this function logic + if (protocol && authentication) + { + jQuery('#jform_private').closest('.control-group').show(); + // add required attribute to private field + if (jform_vvvvwcavyb_required) + { + updateFieldRequired('private',0); + jQuery('#jform_private').prop('required','required'); + jQuery('#jform_private').attr('aria-required',true); + jQuery('#jform_private').addClass('required'); + jform_vvvvwcavyb_required = false; + } + } + else + { + jQuery('#jform_private').closest('.control-group').hide(); + // remove required attribute from private field + if (!jform_vvvvwcavyb_required) + { + updateFieldRequired('private',1); + jQuery('#jform_private').removeAttr('required'); + jQuery('#jform_private').removeAttr('aria-required'); + jQuery('#jform_private').removeClass('required'); + jform_vvvvwcavyb_required = true; + } + } +} + +// the vvvvwca Some function +function protocol_vvvvwca_SomeFunc(protocol_vvvvwca) +{ + // set the function logic + if (protocol_vvvvwca == 2) + { + return true; + } + return false; +} + +// the vvvvwca Some function +function authentication_vvvvwca_SomeFunc(authentication_vvvvwca) +{ + // set the function logic + if (authentication_vvvvwca == 2 || authentication_vvvvwca == 3) + { + return true; + } + return false; +} + +// the vvvvwcc function +function vvvvwcc(protocol_vvvvwcc,authentication_vvvvwcc) +{ + if (isSet(protocol_vvvvwcc) && protocol_vvvvwcc.constructor !== Array) + { + var temp_vvvvwcc = protocol_vvvvwcc; + var protocol_vvvvwcc = []; + protocol_vvvvwcc.push(temp_vvvvwcc); + } + else if (!isSet(protocol_vvvvwcc)) + { + var protocol_vvvvwcc = []; + } + var protocol = protocol_vvvvwcc.some(protocol_vvvvwcc_SomeFunc); + + if (isSet(authentication_vvvvwcc) && authentication_vvvvwcc.constructor !== Array) + { + var temp_vvvvwcc = authentication_vvvvwcc; + var authentication_vvvvwcc = []; + authentication_vvvvwcc.push(temp_vvvvwcc); + } + else if (!isSet(authentication_vvvvwcc)) + { + var authentication_vvvvwcc = []; + } + var authentication = authentication_vvvvwcc.some(authentication_vvvvwcc_SomeFunc); // set this function logic @@ -432,78 +432,78 @@ function vvvvwbz(protocol_vvvvwbz,authentication_vvvvwbz) { jQuery('#jform_private_key').closest('.control-group').show(); // add required attribute to private_key field - if (jform_vvvvwbzvyb_required) + if (jform_vvvvwccvyc_required) { updateFieldRequired('private_key',0); jQuery('#jform_private_key').prop('required','required'); jQuery('#jform_private_key').attr('aria-required',true); jQuery('#jform_private_key').addClass('required'); - jform_vvvvwbzvyb_required = false; + jform_vvvvwccvyc_required = false; } } else { jQuery('#jform_private_key').closest('.control-group').hide(); // remove required attribute from private_key field - if (!jform_vvvvwbzvyb_required) + if (!jform_vvvvwccvyc_required) { updateFieldRequired('private_key',1); jQuery('#jform_private_key').removeAttr('required'); jQuery('#jform_private_key').removeAttr('aria-required'); jQuery('#jform_private_key').removeClass('required'); - jform_vvvvwbzvyb_required = true; + jform_vvvvwccvyc_required = true; } } } -// the vvvvwbz Some function -function protocol_vvvvwbz_SomeFunc(protocol_vvvvwbz) +// the vvvvwcc Some function +function protocol_vvvvwcc_SomeFunc(protocol_vvvvwcc) { // set the function logic - if (protocol_vvvvwbz == 2) + if (protocol_vvvvwcc == 2) { return true; } return false; } -// the vvvvwbz Some function -function authentication_vvvvwbz_SomeFunc(authentication_vvvvwbz) +// the vvvvwcc Some function +function authentication_vvvvwcc_SomeFunc(authentication_vvvvwcc) { // set the function logic - if (authentication_vvvvwbz == 4 || authentication_vvvvwbz == 5) + if (authentication_vvvvwcc == 4 || authentication_vvvvwcc == 5) { return true; } return false; } -// the vvvvwcb function -function vvvvwcb(protocol_vvvvwcb,authentication_vvvvwcb) +// the vvvvwce function +function vvvvwce(protocol_vvvvwce,authentication_vvvvwce) { - if (isSet(protocol_vvvvwcb) && protocol_vvvvwcb.constructor !== Array) + if (isSet(protocol_vvvvwce) && protocol_vvvvwce.constructor !== Array) { - var temp_vvvvwcb = protocol_vvvvwcb; - var protocol_vvvvwcb = []; - protocol_vvvvwcb.push(temp_vvvvwcb); + var temp_vvvvwce = protocol_vvvvwce; + var protocol_vvvvwce = []; + protocol_vvvvwce.push(temp_vvvvwce); } - else if (!isSet(protocol_vvvvwcb)) + else if (!isSet(protocol_vvvvwce)) { - var protocol_vvvvwcb = []; + var protocol_vvvvwce = []; } - var protocol = protocol_vvvvwcb.some(protocol_vvvvwcb_SomeFunc); + var protocol = protocol_vvvvwce.some(protocol_vvvvwce_SomeFunc); - if (isSet(authentication_vvvvwcb) && authentication_vvvvwcb.constructor !== Array) + if (isSet(authentication_vvvvwce) && authentication_vvvvwce.constructor !== Array) { - var temp_vvvvwcb = authentication_vvvvwcb; - var authentication_vvvvwcb = []; - authentication_vvvvwcb.push(temp_vvvvwcb); + var temp_vvvvwce = authentication_vvvvwce; + var authentication_vvvvwce = []; + authentication_vvvvwce.push(temp_vvvvwce); } - else if (!isSet(authentication_vvvvwcb)) + else if (!isSet(authentication_vvvvwce)) { - var authentication_vvvvwcb = []; + var authentication_vvvvwce = []; } - var authentication = authentication_vvvvwcb.some(authentication_vvvvwcb_SomeFunc); + var authentication = authentication_vvvvwce.some(authentication_vvvvwce_SomeFunc); // set this function logic @@ -517,22 +517,22 @@ function vvvvwcb(protocol_vvvvwcb,authentication_vvvvwcb) } } -// the vvvvwcb Some function -function protocol_vvvvwcb_SomeFunc(protocol_vvvvwcb) +// the vvvvwce Some function +function protocol_vvvvwce_SomeFunc(protocol_vvvvwce) { // set the function logic - if (protocol_vvvvwcb == 2) + if (protocol_vvvvwce == 2) { return true; } return false; } -// the vvvvwcb Some function -function authentication_vvvvwcb_SomeFunc(authentication_vvvvwcb) +// the vvvvwce Some function +function authentication_vvvvwce_SomeFunc(authentication_vvvvwce) { // set the function logic - if (authentication_vvvvwcb == 2 || authentication_vvvvwcb == 3 || authentication_vvvvwcb == 4 || authentication_vvvvwcb == 5) + if (authentication_vvvvwce == 2 || authentication_vvvvwce == 3 || authentication_vvvvwce == 4 || authentication_vvvvwce == 5) { return true; } diff --git a/admin/models/forms/site_view.js b/admin/models/forms/site_view.js index b80ccbaf8..a628bfb2a 100644 --- a/admin/models/forms/site_view.js +++ b/admin/models/forms/site_view.js @@ -11,45 +11,45 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvyv = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvyv(add_php_view_vvvvvyv); + var add_php_view_vvvvvyy = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvvyy(add_php_view_vvvvvyy); - var add_php_jview_display_vvvvvyw = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); - vvvvvyw(add_php_jview_display_vvvvvyw); + var add_php_jview_display_vvvvvyz = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); + vvvvvyz(add_php_jview_display_vvvvvyz); - var add_php_jview_vvvvvyx = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); - vvvvvyx(add_php_jview_vvvvvyx); + var add_php_jview_vvvvvza = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); + vvvvvza(add_php_jview_vvvvvza); - var add_php_document_vvvvvyy = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvyy(add_php_document_vvvvvyy); + var add_php_document_vvvvvzb = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvzb(add_php_document_vvvvvzb); - var add_css_document_vvvvvyz = jQuery("#jform_add_css_document input[type='radio']:checked").val(); - vvvvvyz(add_css_document_vvvvvyz); + var add_css_document_vvvvvzc = jQuery("#jform_add_css_document input[type='radio']:checked").val(); + vvvvvzc(add_css_document_vvvvvzc); - var add_javascript_file_vvvvvza = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); - vvvvvza(add_javascript_file_vvvvvza); + var add_javascript_file_vvvvvzd = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); + vvvvvzd(add_javascript_file_vvvvvzd); - var add_js_document_vvvvvzb = jQuery("#jform_add_js_document input[type='radio']:checked").val(); - vvvvvzb(add_js_document_vvvvvzb); + var add_js_document_vvvvvze = jQuery("#jform_add_js_document input[type='radio']:checked").val(); + vvvvvze(add_js_document_vvvvvze); - var add_css_vvvvvzc = jQuery("#jform_add_css input[type='radio']:checked").val(); - vvvvvzc(add_css_vvvvvzc); + var add_css_vvvvvzf = jQuery("#jform_add_css input[type='radio']:checked").val(); + vvvvvzf(add_css_vvvvvzf); - var add_php_ajax_vvvvvzd = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvzd(add_php_ajax_vvvvvzd); + var add_php_ajax_vvvvvzg = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvzg(add_php_ajax_vvvvvzg); - var add_custom_button_vvvvvze = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvze(add_custom_button_vvvvvze); + var add_custom_button_vvvvvzh = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvzh(add_custom_button_vvvvvzh); - var button_position_vvvvvzf = jQuery("#jform_button_position").val(); - vvvvvzf(button_position_vvvvvzf); + var button_position_vvvvvzi = jQuery("#jform_button_position").val(); + vvvvvzi(button_position_vvvvvzi); }); -// the vvvvvyv function -function vvvvvyv(add_php_view_vvvvvyv) +// the vvvvvyy function +function vvvvvyy(add_php_view_vvvvvyy) { // set the function logic - if (add_php_view_vvvvvyv == 1) + if (add_php_view_vvvvvyy == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } @@ -59,11 +59,11 @@ function vvvvvyv(add_php_view_vvvvvyv) } } -// the vvvvvyw function -function vvvvvyw(add_php_jview_display_vvvvvyw) +// the vvvvvyz function +function vvvvvyz(add_php_jview_display_vvvvvyz) { // set the function logic - if (add_php_jview_display_vvvvvyw == 1) + if (add_php_jview_display_vvvvvyz == 1) { jQuery('#jform_php_jview_display-lbl').closest('.control-group').show(); } @@ -73,11 +73,11 @@ function vvvvvyw(add_php_jview_display_vvvvvyw) } } -// the vvvvvyx function -function vvvvvyx(add_php_jview_vvvvvyx) +// the vvvvvza function +function vvvvvza(add_php_jview_vvvvvza) { // set the function logic - if (add_php_jview_vvvvvyx == 1) + if (add_php_jview_vvvvvza == 1) { jQuery('#jform_php_jview-lbl').closest('.control-group').show(); } @@ -87,11 +87,11 @@ function vvvvvyx(add_php_jview_vvvvvyx) } } -// the vvvvvyy function -function vvvvvyy(add_php_document_vvvvvyy) +// the vvvvvzb function +function vvvvvzb(add_php_document_vvvvvzb) { // set the function logic - if (add_php_document_vvvvvyy == 1) + if (add_php_document_vvvvvzb == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); } @@ -101,11 +101,11 @@ function vvvvvyy(add_php_document_vvvvvyy) } } -// the vvvvvyz function -function vvvvvyz(add_css_document_vvvvvyz) +// the vvvvvzc function +function vvvvvzc(add_css_document_vvvvvzc) { // set the function logic - if (add_css_document_vvvvvyz == 1) + if (add_css_document_vvvvvzc == 1) { jQuery('#jform_css_document-lbl').closest('.control-group').show(); } @@ -115,11 +115,11 @@ function vvvvvyz(add_css_document_vvvvvyz) } } -// the vvvvvza function -function vvvvvza(add_javascript_file_vvvvvza) +// the vvvvvzd function +function vvvvvzd(add_javascript_file_vvvvvzd) { // set the function logic - if (add_javascript_file_vvvvvza == 1) + if (add_javascript_file_vvvvvzd == 1) { jQuery('#jform_javascript_file-lbl').closest('.control-group').show(); } @@ -129,11 +129,11 @@ function vvvvvza(add_javascript_file_vvvvvza) } } -// the vvvvvzb function -function vvvvvzb(add_js_document_vvvvvzb) +// the vvvvvze function +function vvvvvze(add_js_document_vvvvvze) { // set the function logic - if (add_js_document_vvvvvzb == 1) + if (add_js_document_vvvvvze == 1) { jQuery('#jform_js_document-lbl').closest('.control-group').show(); } @@ -143,11 +143,11 @@ function vvvvvzb(add_js_document_vvvvvzb) } } -// the vvvvvzc function -function vvvvvzc(add_css_vvvvvzc) +// the vvvvvzf function +function vvvvvzf(add_css_vvvvvzf) { // set the function logic - if (add_css_vvvvvzc == 1) + if (add_css_vvvvvzf == 1) { jQuery('#jform_css-lbl').closest('.control-group').show(); } @@ -157,11 +157,11 @@ function vvvvvzc(add_css_vvvvvzc) } } -// the vvvvvzd function -function vvvvvzd(add_php_ajax_vvvvvzd) +// the vvvvvzg function +function vvvvvzg(add_php_ajax_vvvvvzg) { // set the function logic - if (add_php_ajax_vvvvvzd == 1) + if (add_php_ajax_vvvvvzg == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); @@ -173,11 +173,11 @@ function vvvvvzd(add_php_ajax_vvvvvzd) } } -// the vvvvvze function -function vvvvvze(add_custom_button_vvvvvze) +// the vvvvvzh function +function vvvvvzh(add_custom_button_vvvvvzh) { // set the function logic - if (add_custom_button_vvvvvze == 1) + if (add_custom_button_vvvvvzh == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); @@ -191,20 +191,20 @@ function vvvvvze(add_custom_button_vvvvvze) } } -// the vvvvvzf function -function vvvvvzf(button_position_vvvvvzf) +// the vvvvvzi function +function vvvvvzi(button_position_vvvvvzi) { - if (isSet(button_position_vvvvvzf) && button_position_vvvvvzf.constructor !== Array) + if (isSet(button_position_vvvvvzi) && button_position_vvvvvzi.constructor !== Array) { - var temp_vvvvvzf = button_position_vvvvvzf; - var button_position_vvvvvzf = []; - button_position_vvvvvzf.push(temp_vvvvvzf); + var temp_vvvvvzi = button_position_vvvvvzi; + var button_position_vvvvvzi = []; + button_position_vvvvvzi.push(temp_vvvvvzi); } - else if (!isSet(button_position_vvvvvzf)) + else if (!isSet(button_position_vvvvvzi)) { - var button_position_vvvvvzf = []; + var button_position_vvvvvzi = []; } - var button_position = button_position_vvvvvzf.some(button_position_vvvvvzf_SomeFunc); + var button_position = button_position_vvvvvzi.some(button_position_vvvvvzi_SomeFunc); // set this function logic @@ -218,11 +218,11 @@ function vvvvvzf(button_position_vvvvvzf) } } -// the vvvvvzf Some function -function button_position_vvvvvzf_SomeFunc(button_position_vvvvvzf) +// the vvvvvzi Some function +function button_position_vvvvvzi_SomeFunc(button_position_vvvvvzi) { // set the function logic - if (button_position_vvvvvzf == 5) + if (button_position_vvvvvzi == 5) { return true; } diff --git a/admin/models/forms/template.js b/admin/models/forms/template.js index 863bc2eb5..6f1c5bbd2 100644 --- a/admin/models/forms/template.js +++ b/admin/models/forms/template.js @@ -11,15 +11,15 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvzg = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvzg(add_php_view_vvvvvzg); + var add_php_view_vvvvvzj = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvvzj(add_php_view_vvvvvzj); }); -// the vvvvvzg function -function vvvvvzg(add_php_view_vvvvvzg) +// the vvvvvzj function +function vvvvvzj(add_php_view_vvvvvzj) { // set the function logic - if (add_php_view_vvvvvzg == 1) + if (add_php_view_vvvvvzj == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } diff --git a/admin/models/import_joomla_components.php b/admin/models/import_joomla_components.php index 8923b3cee..6b3d2ab63 100644 --- a/admin/models/import_joomla_components.php +++ b/admin/models/import_joomla_components.php @@ -698,12 +698,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy } // the array of tables to store $tables = array( - 'validation_rule', 'fieldtype', 'field', 'admin_view', 'snippet', 'dynamic_get', 'custom_admin_view', 'site_view', - 'template', 'layout', 'joomla_component', 'language', 'language_translation', 'custom_code', 'placeholder', + 'validation_rule','class_extends', 'fieldtype', 'field', 'admin_view', 'snippet', 'dynamic_get', 'custom_admin_view', 'site_view','joomla_plugin_group', + 'template', 'layout', 'joomla_component', 'language', 'language_translation', 'custom_code', 'placeholder','class_property','class_method','joomla_plugin', 'admin_fields', 'admin_fields_conditions', 'admin_fields_relations', 'admin_custom_tabs', 'component_admin_views', 'component_site_views', 'component_custom_admin_views', 'component_updates', 'component_mysql_tweaks', 'component_custom_admin_menus', 'component_config', 'component_dashboard', 'component_files_folders', - 'component_placeholders' + 'component_placeholders','component_plugins' ); // get prefix $prefix = $this->_db->getPrefix(); @@ -2065,6 +2065,21 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy $item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type); } break; + case 'component_plugins': + // diverged id already updated + if (!$diverged) + { + // update the joomla_component ID where needed + $item = $this->setNewID($item, 'joomla_component', 'joomla_component', $type); + } + // subform fields to target + $updaterT = array( + // subformfield => array( field => type_value ) + 'addjoomla_plugins' => array('plugin' => 'joomla_plugin') + ); + // update the subform ids + $this->updateSubformsIDs($item, 'component_plugins', $updaterT); + break; case 'component_files_folders': // diverged id already updated if (!$diverged) @@ -2859,6 +2874,7 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy case 'component_config': case 'component_dashboard': case 'component_placeholders': + case 'component_plugins': case 'component_files_folders': // get by joomla_component (since there should only be one of each component) $getter = array('joomla_component'); diff --git a/admin/models/joomla_plugin.php b/admin/models/joomla_plugin.php index 4db61d5fd..dd5a1e279 100644 --- a/admin/models/joomla_plugin.php +++ b/admin/models/joomla_plugin.php @@ -25,9 +25,13 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin * @var array */ protected $tabLayoutFields = array( - 'details' => array( + 'code' => array( 'left' => array( 'note_beta_stage', + 'name', + 'class_extends', + 'joomla_plugin_group', + 'add_head', 'note_plugin' ), 'right' => array( @@ -35,13 +39,12 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin 'method_selection' ), 'fullwidth' => array( + 'head', 'main_class_code', 'note_linked_to_notice' ), 'above' => array( - 'name', - 'class_extends', - 'joomla_plugin_group' + 'system_name' ) ), 'configparams' => array( @@ -131,6 +134,12 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin $item->main_class_code = base64_decode($item->main_class_code); } + if (!empty($item->head)) + { + // base64 Decode head. + $item->head = base64_decode($item->head); + } + if (!empty($item->fields)) { // Convert the fields field to an array. @@ -461,6 +470,42 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin return $data; } + /** + * Method to validate the form data. + * + * @param JForm $form The form to validate against. + * @param array $data The data to validate. + * @param string $group The name of the field group to validate. + * + * @return mixed Array of filtered data if valid, false otherwise. + * + * @see JFormRule + * @see JFilterInput + * @since 12.2 + */ + public function validate($form, $data, $group = null) + { + // check if the not_required field is set + if (ComponentbuilderHelper::checkString($data['not_required'])) + { + $requiredFields = (array) explode(',',(string) $data['not_required']); + $requiredFields = array_unique($requiredFields); + // now change the required field attributes value + foreach ($requiredFields as $requiredField) + { + // make sure there is a string value + if (ComponentbuilderHelper::checkString($requiredField)) + { + // change to false + $form->setFieldAttribute($requiredField, 'required', 'false'); + // also clear the data set + $data[$requiredField] = ''; + } + } + } + return parent::validate($form, $data, $group); + } + /** * Method to get the unique fields of this table. * @@ -685,9 +730,9 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin } // Only for strings - if (ComponentbuilderHelper::checkString($this->table->name) && !is_numeric($this->table->name)) + if (ComponentbuilderHelper::checkString($this->table->system_name) && !is_numeric($this->table->system_name)) { - $this->table->name = $this->generateUniqe('name',$this->table->name); + $this->table->system_name = $this->generateUniqe('system_name',$this->table->system_name); } // insert all set values @@ -933,6 +978,12 @@ class ComponentbuilderModelJoomla_plugin extends JModelAdmin if (isset($data['main_class_code'])) { $data['main_class_code'] = base64_encode($data['main_class_code']); + } + + // Set the head string to base64 string. + if (isset($data['head'])) + { + $data['head'] = base64_encode($data['head']); } // Set the Params Items to data diff --git a/admin/models/joomla_plugins.php b/admin/models/joomla_plugins.php index 01f4819a7..791e31ed4 100644 --- a/admin/models/joomla_plugins.php +++ b/admin/models/joomla_plugins.php @@ -27,7 +27,7 @@ class ComponentbuilderModelJoomla_plugins extends JModelList 'a.ordering','ordering', 'a.created_by','created_by', 'a.modified_by','modified_by', - 'a.name','name', + 'a.system_name','system_name', 'a.class_extends','class_extends', 'a.joomla_plugin_group','joomla_plugin_group' ); @@ -237,8 +237,8 @@ class ComponentbuilderModelJoomla_plugins extends JModelList { $this->context .= '.' . $layout; } - $name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name'); - $this->setState('filter.name', $name); + $system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name'); + $this->setState('filter.system_name', $system_name); $class_extends = $this->getUserStateFromRequest($this->context . '.filter.class_extends', 'filter_class_extends'); $this->setState('filter.class_extends', $class_extends); @@ -363,15 +363,10 @@ class ComponentbuilderModelJoomla_plugins extends JModelList else { $search = $db->quote('%' . $db->escape($search) . '%'); - $query->where('(a.name LIKE '.$search.' OR a.class_extends LIKE '.$search.' OR g.name LIKE '.$search.' OR a.joomla_plugin_group LIKE '.$search.' OR h.name LIKE '.$search.')'); + $query->where('(a.system_name LIKE '.$search.' OR a.class_extends LIKE '.$search.' OR g.name LIKE '.$search.' OR a.joomla_plugin_group LIKE '.$search.' OR h.name LIKE '.$search.' OR a.name LIKE '.$search.')'); } } - // Filter by Name. - if ($name = $this->getState('filter.name')) - { - $query->where('a.name = ' . $db->quote($db->escape($name))); - } // Filter by class_extends. if ($class_extends = $this->getState('filter.class_extends')) { @@ -392,106 +387,6 @@ class ComponentbuilderModelJoomla_plugins extends JModelList } return $query; - } - - /** - * Method to get list export data. - * - * @return mixed An array of data items on success, false on failure. - */ - public function getExportData($pks) - { - // setup the query - if (ComponentbuilderHelper::checkArray($pks)) - { - // Set a value to know this is exporting method. - $_export = true; - // Get the user object. - $user = JFactory::getUser(); - // Create a new query object. - $db = JFactory::getDBO(); - $query = $db->getQuery(true); - - // Select some fields - $query->select('a.*'); - - // From the componentbuilder_joomla_plugin table - $query->from($db->quoteName('#__componentbuilder_joomla_plugin', 'a')); - $query->where('a.id IN (' . implode(',',$pks) . ')'); - // Implement View Level Access - if (!$user->authorise('core.options', 'com_componentbuilder')) - { - $groups = implode(',', $user->getAuthorisedViewLevels()); - $query->where('a.access IN (' . $groups . ')'); - } - - // Order the results by ordering - $query->order('a.ordering ASC'); - - // Load the items - $db->setQuery($query); - $db->execute(); - if ($db->getNumRows()) - { - $items = $db->loadObjectList(); - - // set values to display correctly. - if (ComponentbuilderHelper::checkArray($items)) - { - foreach ($items as $nr => &$item) - { - $access = (JFactory::getUser()->authorise('joomla_plugin.access', 'com_componentbuilder.joomla_plugin.' . (int) $item->id) && JFactory::getUser()->authorise('joomla_plugin.access', 'com_componentbuilder')); - if (!$access) - { - unset($items[$nr]); - continue; - } - - // decode main_class_code - $item->main_class_code = base64_decode($item->main_class_code); - // unset the values we don't want exported. - unset($item->asset_id); - unset($item->checked_out); - unset($item->checked_out_time); - } - } - // Add headers to items array. - $headers = $this->getExImPortHeaders(); - if (ComponentbuilderHelper::checkObject($headers)) - { - array_unshift($items,$headers); - } - return $items; - } - } - return false; - } - - /** - * Method to get header. - * - * @return mixed An array of data items on success, false on failure. - */ - public function getExImPortHeaders() - { - // Get a db connection. - $db = JFactory::getDbo(); - // get the columns - $columns = $db->getTableColumns("#__componentbuilder_joomla_plugin"); - if (ComponentbuilderHelper::checkArray($columns)) - { - // remove the headers you don't import/export. - unset($columns['asset_id']); - unset($columns['checked_out']); - unset($columns['checked_out_time']); - $headers = new stdClass(); - foreach ($columns as $column => $type) - { - $headers->{$column} = $column; - } - return $headers; - } - return false; } /** @@ -509,7 +404,7 @@ class ComponentbuilderModelJoomla_plugins extends JModelList $id .= ':' . $this->getState('filter.ordering'); $id .= ':' . $this->getState('filter.created_by'); $id .= ':' . $this->getState('filter.modified_by'); - $id .= ':' . $this->getState('filter.name'); + $id .= ':' . $this->getState('filter.system_name'); $id .= ':' . $this->getState('filter.class_extends'); $id .= ':' . $this->getState('filter.joomla_plugin_group'); diff --git a/admin/models/rules/int.php b/admin/models/rules/int.php index 3d2e83c69..fa06a94b2 100644 --- a/admin/models/rules/int.php +++ b/admin/models/rules/int.php @@ -21,5 +21,36 @@ use Joomla\Registry\Registry; */ class JFormRuleInt extends FormRule { + /** + * Method to test that an integer value was added. + * + * @param \SimpleXMLElement $element The SimpleXMLElement object representing the `` tag for the form field object. + * @param mixed $value The form field value to validate. + * @param string $group The field name group control value. This acts as an array container for the field. + * For example if the field has name="foo" and the group value is set to "bar" then the + * full field name would end up being "bar[foo]". + * @param Registry $input An optional Registry object with the entire data set to validate against the entire form. + * @param Form $form The form object for which the field is being tested. + * + * @return boolean True if the value is valid integer, false otherwise. + * + */ + public function test(\SimpleXMLElement $element, $value, $group = null, Registry $input = null, Form $form = null) + { + // Check if the field is required. + $required = ((string) $element['required'] == 'true' || (string) $element['required'] == 'required'); + // If the value is empty and the field is not required return True. + if (($value === '' || $value === null) && ! $required) + { + return true; + } + + // now validate the value to be an integer + // we need to validate a string with the integer in it + // since this is how Joomla passes the value to the test method + // so we use type coercion along with is_numeric + return is_numeric($value) && is_int(+$value); + // if you have a better idea... lets hear it. + } } diff --git a/admin/models/server.php b/admin/models/server.php index 4438ef7bc..f03f0c9f1 100644 --- a/admin/models/server.php +++ b/admin/models/server.php @@ -189,7 +189,7 @@ class ComponentbuilderModelServer extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVyclinked_components() + public function getVydlinked_components() { // Get the user object. $user = JFactory::getUser(); diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql index 267554887..cec82291e 100644 --- a/admin/sql/install.mysql.utf8.sql +++ b/admin/sql/install.mysql.utf8.sql @@ -144,13 +144,16 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.', + `add_head` TINYINT(1) NOT NULL DEFAULT 0, `class_extends` INT(11) NOT NULL DEFAULT 0, `fields` TEXT NOT NULL, + `head` TEXT NOT NULL, `joomla_plugin_group` INT(11) NOT NULL DEFAULT 0, `main_class_code` MEDIUMTEXT NOT NULL, `method_selection` TEXT NOT NULL, `name` VARCHAR(255) NOT NULL DEFAULT '', `property_selection` TEXT NOT NULL, + `system_name` VARCHAR(255) NOT NULL DEFAULT '', `params` text NOT NULL, `published` TINYINT(3) NOT NULL DEFAULT 1, `created_by` INT(10) unsigned NOT NULL DEFAULT 0, @@ -169,9 +172,10 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin` ( KEY `idx_createdby` (`created_by`), KEY `idx_modifiedby` (`modified_by`), KEY `idx_state` (`published`), - KEY `idx_name` (`name`), + KEY `idx_system_name` (`system_name`), KEY `idx_class_extends` (`class_extends`), - KEY `idx_joomla_plugin_group` (`joomla_plugin_group`) + KEY `idx_joomla_plugin_group` (`joomla_plugin_group`), + KEY `idx_name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci; CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` ( diff --git a/admin/sql/updates/mysql/2.9.33.sql b/admin/sql/updates/mysql/2.9.33.sql new file mode 100644 index 000000000..8d911f995 --- /dev/null +++ b/admin/sql/updates/mysql/2.9.33.sql @@ -0,0 +1,5 @@ +ALTER TABLE `#__componentbuilder_joomla_plugin` ADD `add_head` TINYINT(1) NOT NULL DEFAULT 0 AFTER `asset_id`; + +ALTER TABLE `#__componentbuilder_joomla_plugin` ADD `head` TEXT NOT NULL AFTER `fields`; + +ALTER TABLE `#__componentbuilder_joomla_plugin` ADD `system_name` VARCHAR(255) NOT NULL DEFAULT '' AFTER `property_selection`; diff --git a/admin/views/admin_view/tmpl/edit.php b/admin/views/admin_view/tmpl/edit.php index 4b255e138..91f6b8857 100644 --- a/admin/views/admin_view/tmpl/edit.php +++ b/admin/views/admin_view/tmpl/edit.php @@ -208,521 +208,521 @@ $componentParams = $this->params; // will be removed just use $this->params inst