forked from joomla/Component-Builder
Resolved gh-410 to allow default data type values for the database to be set per fieldtype.
This commit is contained in:
parent
b55d824e63
commit
d7b555e7af
12
README.md
12
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.15) 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.16) 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*: 27th April, 2019
|
||||
+ *Version*: 2.9.15
|
||||
+ *Last Build*: 2nd May, 2019
|
||||
+ *Version*: 2.9.16
|
||||
+ *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*: **203769**
|
||||
+ *Field count*: **1119**
|
||||
+ *File count*: **1338**
|
||||
+ *Line count*: **205393**
|
||||
+ *Field count*: **1130**
|
||||
+ *File count*: **1342**
|
||||
+ *Folder count*: **209**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
|
@ -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.15) 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.16) 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*: 27th April, 2019
|
||||
+ *Version*: 2.9.15
|
||||
+ *Last Build*: 2nd May, 2019
|
||||
+ *Version*: 2.9.16
|
||||
+ *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*: **203769**
|
||||
+ *Field count*: **1119**
|
||||
+ *File count*: **1338**
|
||||
+ *Line count*: **205393**
|
||||
+ *Field count*: **1130**
|
||||
+ *File count*: **1342**
|
||||
+ *Folder count*: **209**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
|
@ -234,11 +234,7 @@
|
||||
<action name="fieldtype.dashboard_list" title="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_FIELDTYPES_DASHBOARD_LIST_DESC" />
|
||||
<action name="fieldtype.delete" title="COM_COMPONENTBUILDER_FIELDTYPES_DELETE" description="COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC" />
|
||||
<action name="fieldtype.edit" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESC" />
|
||||
<action name="fieldtype.edit.description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION_DESC" />
|
||||
<action name="fieldtype.edit.name" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME_DESC" />
|
||||
<action name="fieldtype.edit.own" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN_DESC" />
|
||||
<action name="fieldtype.edit.properties" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC" />
|
||||
<action name="fieldtype.edit.short_description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION_DESC" />
|
||||
<action name="fieldtype.edit.state" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE_DESC" />
|
||||
<action name="fieldtype.version" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION_DESC" />
|
||||
<action name="fieldtype.export" title="COM_COMPONENTBUILDER_FIELDTYPES_EXPORT" description="COM_COMPONENTBUILDER_FIELDTYPES_EXPORT_DESC" />
|
||||
@ -552,10 +548,6 @@
|
||||
<action name="fieldtype.create" title="COM_COMPONENTBUILDER_FIELDTYPES_CREATE" description="COM_COMPONENTBUILDER_FIELDTYPES_CREATE_DESC" />
|
||||
<action name="fieldtype.delete" title="COM_COMPONENTBUILDER_FIELDTYPES_DELETE" description="COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC" />
|
||||
<action name="fieldtype.access" title="COM_COMPONENTBUILDER_FIELDTYPES_ACCESS" description="COM_COMPONENTBUILDER_FIELDTYPES_ACCESS_DESC" />
|
||||
<action name="fieldtype.edit.name" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME_DESC" />
|
||||
<action name="fieldtype.edit.properties" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC" />
|
||||
<action name="fieldtype.edit.description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION_DESC" />
|
||||
<action name="fieldtype.edit.short_description" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION_DESC" />
|
||||
<action name="fieldtype.version" title="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION" description="COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="language_translation">
|
||||
|
@ -1405,7 +1405,13 @@ abstract class ComponentbuilderHelper
|
||||
}
|
||||
|
||||
|
||||
public static function getFieldOptions($value, $type, $settings = array(), $xml = null)
|
||||
/**
|
||||
* get field options
|
||||
*
|
||||
* @return array on success
|
||||
*
|
||||
*/
|
||||
public static function getFieldOptions($value, $type, $settings = array(), $xml = null, $db_defaults = false)
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
@ -1413,6 +1419,11 @@ abstract class ComponentbuilderHelper
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('properties', 'short_description', 'description')));
|
||||
// load database default values
|
||||
if ($db_defaults)
|
||||
{
|
||||
$query->select($db->quoteName(array('datadefault', 'datadefault_other', 'datalenght', 'datalenght_other', 'datatype', 'has_defaults', 'indexes', 'null_switch', 'store')));
|
||||
}
|
||||
$query->from($db->quoteName('#__componentbuilder_fieldtype'));
|
||||
$query->where($db->quoteName('published') . ' = 1');
|
||||
$query->where($db->quoteName($type) . ' = '. $value);
|
||||
@ -1525,6 +1536,20 @@ abstract class ComponentbuilderHelper
|
||||
}
|
||||
$field['values'] .= PHP_EOL . "/>";
|
||||
$field['values_description'] .= '</tbody></table>';
|
||||
// load the database defaults if set and wanted
|
||||
if ($db_defaults && isset($result->has_defaults) && $result->has_defaults == 1)
|
||||
{
|
||||
$field['database'] = array(
|
||||
'datatype' => $result->datatype,
|
||||
'datadefault' => $result->datadefault,
|
||||
'datadefault_other' => $result->datadefault_other,
|
||||
'datalenght' => $result->datalenght,
|
||||
'datalenght_other' => $result->datalenght_other,
|
||||
'indexes' => $result->indexes,
|
||||
'null_switch' => $result->null_switch,
|
||||
'store' => $result->store
|
||||
);
|
||||
}
|
||||
// return found field options
|
||||
return $field;
|
||||
}
|
||||
|
@ -4317,16 +4317,8 @@ COM_COMPONENTBUILDER_FIELDTYPES_DELETE="Fieldtypes Delete"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC="Allows the users in this group to delete delete fieldtypes"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT="Fieldtypes Edit"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESC="Allows the users in this group to edit the fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION="Fieldtypes Edit Description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION_DESC="Allows the users in this group to edit description of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME="Fieldtypes Edit Name"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME_DESC="Allows the users in this group to edit name of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN="Fieldtypes Edit Own"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN_DESC="Allows the users in this group to edit edit own fieldtypes created by them"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES="Fieldtypes Edit Properties"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC="Allows the users in this group to edit properties of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION="Fieldtypes Edit Short Description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to edit short description of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE="Fieldtypes Edit State"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE_DESC="Allows the users in this group to update the state of the fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION="Fieldtypes Edit Version"
|
||||
@ -4356,18 +4348,50 @@ COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU="Fieldtypes Submenu"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_SUBMENU_DESC="Allows the users in this group to submenu of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ADJUSTABLE_DESCRIPTION="Select if the value is adjustable.<br />If not the Value/Example will be enforced."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ADJUSTABLE_LABEL="Adjustable"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BASESIXTY_FOUR="base64"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BASIC_ENCRYPTION_LOCALDBKEY="Basic Encryption (local-DB-key)"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BIGINT="BIGINT"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BLOB="BLOB"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CATID_DESCRIPTION="select one of the following categories"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CATID_LABEL="Category"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CHAR="CHAR"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CREATED_BY_DESC="The user that created this Fieldtype."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CREATED_BY_LABEL="Created By"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CREATED_DATE_DESC="The date this Fieldtype was created."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CREATED_DATE_LABEL="Created Date"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CURRENT_TIMESTAMP="CURRENT_TIMESTAMP"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATABASE_DEFAULTS="Database (defaults)"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT="Datadefault"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_DESCRIPTION="The data default value for mysql"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_LABEL="Data Default"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER="Datadefault Other"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_DESCRIPTION="The other default data for mysql"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_HINT="Other Default Here"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_LABEL="Other Default"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_MESSAGE="Error! Please add other default here."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT="Datalenght"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_DESCRIPTION="The data length or value for mysql (size)"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_LABEL="Data Length/Values"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER="Datalenght Other"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_DESCRIPTION="The other data length/values for mysql"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_HINT="Other Here"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_LABEL="Other"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_MESSAGE="Error! Please add other data length/values here."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE="Datatype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE_DESCRIPTION="The data type for mysql"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE_LABEL="Data Type"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATE="DATE"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATETIME="DATETIME"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DECIMAL="DECIMAL"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DEFAULT="Default"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION="Description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_DESCRIPTION="Add Description Here"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_HINT="Add Description Here"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_LABEL="Description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DETAILS="Details"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DOUBLE="DOUBLE"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_EDIT="Editing the Fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ELEVEN="11"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ERROR_UNIQUE_ALIAS="Another Fieldtype has the same alias."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_DESCRIPTION="Text Area"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_HINT="Value/Example Here"
|
||||
@ -4375,9 +4399,24 @@ COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_LABEL="Value/Example"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_MESSAGE="Error! Please add value/example here."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_FIELDS="Fields"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_FIELDTYPE_CATEGORY="Fieldtype Category"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_FIFTY="50"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_FLOAT="FLOAT"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_HAS_DEFAULTS="Has Defaults"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_HAS_DEFAULTS_DESCRIPTION="set the database defaults for this field type"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_HAS_DEFAULTS_LABEL="Set Database Defaults"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ID="Id"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_INDEXES="Indexes"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_INDEXES_LABEL="Indexes Type"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_INT="INT"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_JSON="JSON"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_KEY="KEY"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_LONGBLOB="LONGBLOB"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_LONGTEXT="LONGTEXT"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_DESCRIPTION="Select if the property<br />is mandatory."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_LABEL="Mandatory"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MEDIUMBLOB="MEDIUMBLOB"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MEDIUMTEXT="MEDIUMTEXT"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MEDIUM_ENCRYPTION_LOCALFILEKEY="Medium Encryption (local-file-key)"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_BY_DESC="The last user that modified this Fieldtype."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_BY_LABEL="Modified By"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MODIFIED_DATE_DESC="The date this Fieldtype was modified."
|
||||
@ -4388,25 +4427,59 @@ COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT="Name Here"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NAME_LABEL="Name"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NAME_MESSAGE="Error! Please add name here."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NEW="A New Fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NO="No"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NONE="None"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NONE_SET="None Set"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_DESCRIPTION="To get more form field settings go to https://docs.joomla.org/Form_field"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_LABEL="More Standard form field types"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NOTE_WHMCS_ENCRYPTION_DESCRIPTION="<p>When using the WHMCS encryption you need to get a WHMCS key from:<br /><a href='https://www.vdm.io/support' target='_blank'>https://www.vdm.io</a>, or your own <a href='https://www.whmcs.com/members/aff.php?aff=37513' target='_blank'>WHMCS</a> install.</p><p>Please note that you will need to <b>enable the add-on</b> in the Joomla Component area (Add WHMCS)->Yes.</p><p>You can get more info about the WHMCS licensing add-on at the following links.</p><p><b>Helpful Links:</b><br />
|
||||
<a href='https://www.whmcs.com/members/aff.php?aff=37513' target='_blank'>https://www.whmcs.com/software-licensing/</a><br />
|
||||
<a href='http://docs.whmcs.com/Licensing_Addon/' target='_blank'>http://docs.whmcs.com/Licensing_Addon/</a></p><p>Support JCB and use our affiliate link (<a href='https://www.whmcs.com/members/aff.php?aff=37513' target='_blank'>https://www.whmcs.com/members/aff.php?aff=37513</a>) to sign-up with <a href='https://www.whmcs.com/members/aff.php?aff=37513' target='_blank'>WHMCS</a>.</p>"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NOTE_WHMCS_ENCRYPTION_LABEL="The WHMCS Encryption"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NOT_NULL="NOT NULL"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NOT_REQUIRED="Not Required"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NULL="NULL"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NULL_SWITCH="Null Switch"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NULL_SWITCH_LABEL="Null Switch"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ONE="1"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ONE_HUNDRED="100"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ONE_THOUSAND_AND_TWENTY_FOUR="1024"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ORDERING_LABEL="Ordering"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_OTHER="Other"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_PERMISSION="Permissions"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_PROPERTIES="Properties"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_PROPERTIES_DESCRIPTION="Options for this field"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_PROPERTIES_LABEL="Properties"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_PUBLISHING="Publishing"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Fieldtype to customise the alias."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SELECT_AN_OPTION="Select an option"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SEVEN="7"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION="Short Description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_DESCRIPTION="Enter short description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_HINT="Your Short Description Here"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_LABEL="Short Description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_MESSAGE="Error! Please add some short description here."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SIXTY_FOUR="64"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_STATUS="Status"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_STORE="Store"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_STORE_DESCRIPTION="How should the data be stored."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_STORE_LABEL="Store Method"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TEN="10"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TEXT="TEXT"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TIME="TIME"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TINYBLOB="TINYBLOB"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TINYINT="TINYINT"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_DESCRIPTION="Select if the property is translatable."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_LABEL="Translatable"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TWO_HUNDRED_AND_FIFTY_FIVE="255"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TWO_THOUSAND_AND_FORTY_EIGHT="2048"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_UNIQUE_KEY="UNIQUE KEY"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_VARCHAR="VARCHAR"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_VERSION_DESC="A count of the number of times this Fieldtype has been revised."
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_VERSION_LABEL="Revision"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_WHMCSKEY_ENCRYPTION="WHMCS-key Encryption"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_YES="Yes"
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ZERO="0"
|
||||
COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEW="Add Css View"
|
||||
COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEWS="Add Css Views"
|
||||
COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEWS_LABEL="Add CSS (views)"
|
||||
@ -4434,6 +4507,7 @@ COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_LABEL="CSS"
|
||||
COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION="Add CSS for the edit view. Do not add the style tags."
|
||||
COM_COMPONENTBUILDER_FIELD_CSS_VIEW_LABEL="CSS"
|
||||
COM_COMPONENTBUILDER_FIELD_CURRENT_TIMESTAMP="CURRENT_TIMESTAMP"
|
||||
COM_COMPONENTBUILDER_FIELD_DATABASE="Database"
|
||||
COM_COMPONENTBUILDER_FIELD_DATADEFAULT="Datadefault"
|
||||
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_DESCRIPTION="The data default value for mysql"
|
||||
COM_COMPONENTBUILDER_FIELD_DATADEFAULT_LABEL="Data Default"
|
||||
@ -4453,7 +4527,6 @@ COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE="Error! Please add other dat
|
||||
COM_COMPONENTBUILDER_FIELD_DATATYPE="Datatype"
|
||||
COM_COMPONENTBUILDER_FIELD_DATATYPE_DESCRIPTION="The data type for mysql"
|
||||
COM_COMPONENTBUILDER_FIELD_DATATYPE_LABEL="Data Type"
|
||||
COM_COMPONENTBUILDER_FIELD_DATA_BASE="Data Base"
|
||||
COM_COMPONENTBUILDER_FIELD_DATE="DATE"
|
||||
COM_COMPONENTBUILDER_FIELD_DATETIME="DATETIME"
|
||||
COM_COMPONENTBUILDER_FIELD_DECIMAL="DECIMAL"
|
||||
|
@ -454,16 +454,8 @@ COM_COMPONENTBUILDER_FIELDTYPES_DELETE="Fieldtypes Delete"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_DELETE_DESC="Allows the users in this group to delete delete fieldtypes"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT="Fieldtypes Edit"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESC="Allows the users in this group to edit the fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION="Fieldtypes Edit Description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_DESCRIPTION_DESC="Allows the users in this group to edit description of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME="Fieldtypes Edit Name"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_NAME_DESC="Allows the users in this group to edit name of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN="Fieldtypes Edit Own"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_OWN_DESC="Allows the users in this group to edit edit own fieldtypes created by them"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES="Fieldtypes Edit Properties"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_PROPERTIES_DESC="Allows the users in this group to edit properties of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION="Fieldtypes Edit Short Description"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_SHORT_DESCRIPTION_DESC="Allows the users in this group to edit short description of fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE="Fieldtypes Edit State"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_STATE_DESC="Allows the users in this group to update the state of the fieldtype"
|
||||
COM_COMPONENTBUILDER_FIELDTYPES_EDIT_VERSION="Fieldtypes Edit Version"
|
||||
|
34
admin/layouts/fieldtype/database_defaults_left.php
Normal file
34
admin/layouts/fieldtype/database_defaults_left.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'has_defaults',
|
||||
'datatype',
|
||||
'datalenght',
|
||||
'datalenght_other',
|
||||
'datadefault',
|
||||
'datadefault_other'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
32
admin/layouts/fieldtype/database_defaults_right.php
Normal file
32
admin/layouts/fieldtype/database_defaults_right.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'indexes',
|
||||
'null_switch',
|
||||
'store',
|
||||
'note_whmcs_encryption'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
31
admin/layouts/fieldtype/details_above.php
Normal file
31
admin/layouts/fieldtype/details_above.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'name'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
@ -16,7 +16,8 @@ $form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'note_on_fields',
|
||||
'properties'
|
||||
'properties',
|
||||
'not_required'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
@ -15,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
||||
$form = $displayData->getForm();
|
||||
|
||||
$fields = $displayData->get('fields') ?: array(
|
||||
'name',
|
||||
'catid',
|
||||
'short_description'
|
||||
);
|
||||
|
@ -13,7 +13,7 @@
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->waffields;
|
||||
$items = $displayData->wamfields;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
// set the edit URL
|
||||
|
@ -13,7 +13,7 @@
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->waplinked_components;
|
||||
$items = $displayData->wawlinked_components;
|
||||
$user = JFactory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
// set the edit URL
|
||||
|
@ -2615,7 +2615,7 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
// get the xml
|
||||
$xml = $this->getFieldXML($fieldtype);
|
||||
// now get the field options
|
||||
if ($field = ComponentbuilderHelper::getFieldOptions($fieldtype, 'id', null, $xml))
|
||||
if ($field = ComponentbuilderHelper::getFieldOptions($fieldtype, 'id', null, $xml, true))
|
||||
{
|
||||
// get subform field properties object
|
||||
$properties = $this->buildFieldOptionsSubform($field['subform'], $field['nameListOptions']);
|
||||
|
@ -155,7 +155,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getWaffields()
|
||||
public function getWamfields()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
@ -237,13 +237,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert datatype
|
||||
$item->datatype = $this->selectionTranslationWaffields($item->datatype, 'datatype');
|
||||
$item->datatype = $this->selectionTranslationWamfields($item->datatype, 'datatype');
|
||||
// convert indexes
|
||||
$item->indexes = $this->selectionTranslationWaffields($item->indexes, 'indexes');
|
||||
$item->indexes = $this->selectionTranslationWamfields($item->indexes, 'indexes');
|
||||
// convert null_switch
|
||||
$item->null_switch = $this->selectionTranslationWaffields($item->null_switch, 'null_switch');
|
||||
$item->null_switch = $this->selectionTranslationWamfields($item->null_switch, 'null_switch');
|
||||
// convert store
|
||||
$item->store = $this->selectionTranslationWaffields($item->store, 'store');
|
||||
$item->store = $this->selectionTranslationWamfields($item->store, 'store');
|
||||
}
|
||||
}
|
||||
|
||||
@ -257,7 +257,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslationWaffields($value,$name)
|
||||
public function selectionTranslationWamfields($value,$name)
|
||||
{
|
||||
// Array of datatype language strings
|
||||
if ($name === 'datatype')
|
||||
@ -410,74 +410,6 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||
}
|
||||
// Modify the form based on Edit Name access controls.
|
||||
if ($id != 0 && (!$user->authorise('fieldtype.edit.name', 'com_componentbuilder.fieldtype.' . (int) $id))
|
||||
|| ($id == 0 && !$user->authorise('fieldtype.edit.name', 'com_componentbuilder')))
|
||||
{
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('name', 'disabled', 'true');
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('name', 'readonly', 'true');
|
||||
// If there is no value continue.
|
||||
if (!$form->getValue('name'))
|
||||
{
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('name', 'filter', 'unset');
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('name', 'required', 'false');
|
||||
}
|
||||
}
|
||||
// Modify the form based on Edit Properties access controls.
|
||||
if ($id != 0 && (!$user->authorise('fieldtype.edit.properties', 'com_componentbuilder.fieldtype.' . (int) $id))
|
||||
|| ($id == 0 && !$user->authorise('fieldtype.edit.properties', 'com_componentbuilder')))
|
||||
{
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('properties', 'disabled', 'true');
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('properties', 'readonly', 'true');
|
||||
// If there is no value continue.
|
||||
if (!$form->getValue('properties'))
|
||||
{
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('properties', 'filter', 'unset');
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('properties', 'required', 'false');
|
||||
}
|
||||
}
|
||||
// Modify the form based on Edit Description access controls.
|
||||
if ($id != 0 && (!$user->authorise('fieldtype.edit.description', 'com_componentbuilder.fieldtype.' . (int) $id))
|
||||
|| ($id == 0 && !$user->authorise('fieldtype.edit.description', 'com_componentbuilder')))
|
||||
{
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('description', 'disabled', 'true');
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('description', 'readonly', 'true');
|
||||
// If there is no value continue.
|
||||
if (!$form->getValue('description'))
|
||||
{
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('description', 'filter', 'unset');
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('description', 'required', 'false');
|
||||
}
|
||||
}
|
||||
// Modify the form based on Edit Short Description access controls.
|
||||
if ($id != 0 && (!$user->authorise('fieldtype.edit.short_description', 'com_componentbuilder.fieldtype.' . (int) $id))
|
||||
|| ($id == 0 && !$user->authorise('fieldtype.edit.short_description', 'com_componentbuilder')))
|
||||
{
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('short_description', 'disabled', 'true');
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('short_description', 'readonly', 'true');
|
||||
// If there is no value continue.
|
||||
if (!$form->getValue('short_description'))
|
||||
{
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('short_description', 'filter', 'unset');
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('short_description', 'required', 'false');
|
||||
}
|
||||
}
|
||||
// Only load these values if no id is found
|
||||
if (0 == $id)
|
||||
{
|
||||
@ -655,6 +587,42 @@ class ComponentbuilderModelFieldtype 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.
|
||||
*
|
||||
@ -1109,10 +1077,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
$properties->loadArray($data['properties']);
|
||||
$data['properties'] = (string) $properties;
|
||||
}
|
||||
// Also check permission since the value may be removed due to permissions
|
||||
// Then we do not want to clear it out, but simple ignore the empty properties
|
||||
elseif (!isset($data['properties'])
|
||||
&& JFactory::getUser()->authorise('fieldtype.edit.properties', 'com_componentbuilder'))
|
||||
elseif (!isset($data['properties']))
|
||||
{
|
||||
// Set the empty properties to data
|
||||
$data['properties'] = '';
|
||||
|
@ -178,7 +178,7 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
||||
else
|
||||
{
|
||||
$search = $db->quote('%' . $db->escape($search) . '%');
|
||||
$query->where('(a.name LIKE '.$search.' OR a.description LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.catid LIKE '.$search.')');
|
||||
$query->where('(a.name LIKE '.$search.' OR a.short_description LIKE '.$search.' OR a.description LIKE '.$search.' OR a.catid LIKE '.$search.')');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -508,7 +508,7 @@ jQuery(document).ready(function()
|
||||
{
|
||||
// get type value
|
||||
var fieldtype = jQuery("#jform_fieldtype option:selected").val();
|
||||
getFieldOptions(fieldtype);
|
||||
getFieldOptions(fieldtype, false);
|
||||
// get the linked details
|
||||
getLinked();
|
||||
// get the validation rules
|
||||
@ -540,7 +540,7 @@ function getFieldOptions_server(fieldtype){
|
||||
});
|
||||
}
|
||||
|
||||
function getFieldOptions(fieldtype){
|
||||
function getFieldOptions(fieldtype, db){
|
||||
getFieldOptions_server(fieldtype).done(function(result) {
|
||||
if(result.subform){
|
||||
// load the list of properties
|
||||
@ -569,6 +569,37 @@ function getFieldOptions(fieldtype){
|
||||
// set the field type info
|
||||
jQuery('#help').remove();
|
||||
jQuery('.helpNote').append('<div id="help">'+result.description+'<br />'+result.values_description+'</div>');
|
||||
// load the database properties if not set and defaults were found
|
||||
if (db && result.database){
|
||||
// update datatype
|
||||
jQuery('#jform_datatype').val(result.database.datatype);
|
||||
jQuery('#jform_datatype').trigger("liszt:updated");
|
||||
jQuery('#jform_datatype').trigger("change");
|
||||
// update datalenght
|
||||
jQuery('#jform_datalenght').val(result.database.datalenght);
|
||||
jQuery('#jform_datalenght').trigger("liszt:updated");
|
||||
jQuery('#jform_datalenght').trigger("change");
|
||||
// load the datalenght_other if needed
|
||||
if ('Other' == result.database.datalenght){
|
||||
jQuery('#jform_datalenght_other').val(result.database.datalenght_other);
|
||||
}
|
||||
// update datadefault
|
||||
jQuery('#jform_datadefault').val(result.database.datadefault);
|
||||
jQuery('#jform_datadefault').trigger("liszt:updated");
|
||||
jQuery('#jform_datadefault').trigger("change");
|
||||
// load the datadefault_other if needed
|
||||
if ('Other' == result.database.datadefault){
|
||||
jQuery('#jform_datadefault_other').val(result.database.datadefault_other);
|
||||
}
|
||||
// update indexes
|
||||
jQuery('#jform_indexes').val(result.database.indexes);
|
||||
jQuery('#jform_indexes').trigger("liszt:updated");
|
||||
jQuery('#jform_indexes').trigger("change");
|
||||
// update store
|
||||
jQuery('#jform_store').val(result.database.store);
|
||||
jQuery('#jform_store').trigger("liszt:updated");
|
||||
jQuery('#jform_store').trigger("change");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -8,7 +8,799 @@
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbawaf_required = false;
|
||||
jform_vvvvwbcwag_required = false;
|
||||
jform_vvvvwbewah_required = false;
|
||||
jform_vvvvwbfwai_required = false;
|
||||
jform_vvvvwbgwaj_required = false;
|
||||
jform_vvvvwblwak_required = false;
|
||||
jform_vvvvwblwal_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbl(has_defaults_vvvvwbl);
|
||||
});
|
||||
|
||||
// the vvvvwba function
|
||||
function vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba)
|
||||
{
|
||||
if (isSet(datalenght_vvvvwba) && datalenght_vvvvwba.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwba = datalenght_vvvvwba;
|
||||
var datalenght_vvvvwba = [];
|
||||
datalenght_vvvvwba.push(temp_vvvvwba);
|
||||
}
|
||||
else if (!isSet(datalenght_vvvvwba))
|
||||
{
|
||||
var datalenght_vvvvwba = [];
|
||||
}
|
||||
var datalenght = datalenght_vvvvwba.some(datalenght_vvvvwba_SomeFunc);
|
||||
|
||||
if (isSet(has_defaults_vvvvwba) && has_defaults_vvvvwba.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwba = has_defaults_vvvvwba;
|
||||
var has_defaults_vvvvwba = [];
|
||||
has_defaults_vvvvwba.push(temp_vvvvwba);
|
||||
}
|
||||
else if (!isSet(has_defaults_vvvvwba))
|
||||
{
|
||||
var has_defaults_vvvvwba = [];
|
||||
}
|
||||
var has_defaults = has_defaults_vvvvwba.some(has_defaults_vvvvwba_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datalenght && has_defaults)
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').show();
|
||||
// add required attribute to datalenght_other field
|
||||
if (jform_vvvvwbawaf_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_vvvvwbawaf_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').hide();
|
||||
// remove required attribute from datalenght_other field
|
||||
if (!jform_vvvvwbawaf_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_vvvvwbawaf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwba Some function
|
||||
function datalenght_vvvvwba_SomeFunc(datalenght_vvvvwba)
|
||||
{
|
||||
// set the function logic
|
||||
if (datalenght_vvvvwba == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwba Some function
|
||||
function has_defaults_vvvvwba_SomeFunc(has_defaults_vvvvwba)
|
||||
{
|
||||
// set the function logic
|
||||
if (has_defaults_vvvvwba == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbc function
|
||||
function vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc)
|
||||
{
|
||||
if (isSet(datadefault_vvvvwbc) && datadefault_vvvvwbc.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbc = datadefault_vvvvwbc;
|
||||
var datadefault_vvvvwbc = [];
|
||||
datadefault_vvvvwbc.push(temp_vvvvwbc);
|
||||
}
|
||||
else if (!isSet(datadefault_vvvvwbc))
|
||||
{
|
||||
var datadefault_vvvvwbc = [];
|
||||
}
|
||||
var datadefault = datadefault_vvvvwbc.some(datadefault_vvvvwbc_SomeFunc);
|
||||
|
||||
if (isSet(has_defaults_vvvvwbc) && has_defaults_vvvvwbc.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbc = has_defaults_vvvvwbc;
|
||||
var has_defaults_vvvvwbc = [];
|
||||
has_defaults_vvvvwbc.push(temp_vvvvwbc);
|
||||
}
|
||||
else if (!isSet(has_defaults_vvvvwbc))
|
||||
{
|
||||
var has_defaults_vvvvwbc = [];
|
||||
}
|
||||
var has_defaults = has_defaults_vvvvwbc.some(has_defaults_vvvvwbc_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_vvvvwbcwag_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_vvvvwbcwag_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
// remove required attribute from datadefault_other field
|
||||
if (!jform_vvvvwbcwag_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_vvvvwbcwag_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbc Some function
|
||||
function datadefault_vvvvwbc_SomeFunc(datadefault_vvvvwbc)
|
||||
{
|
||||
// set the function logic
|
||||
if (datadefault_vvvvwbc == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbc Some function
|
||||
function has_defaults_vvvvwbc_SomeFunc(has_defaults_vvvvwbc)
|
||||
{
|
||||
// set the function logic
|
||||
if (has_defaults_vvvvwbc == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbe function
|
||||
function vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe)
|
||||
{
|
||||
if (isSet(datatype_vvvvwbe) && datatype_vvvvwbe.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbe = datatype_vvvvwbe;
|
||||
var datatype_vvvvwbe = [];
|
||||
datatype_vvvvwbe.push(temp_vvvvwbe);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwbe))
|
||||
{
|
||||
var datatype_vvvvwbe = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwbe.some(datatype_vvvvwbe_SomeFunc);
|
||||
|
||||
if (isSet(has_defaults_vvvvwbe) && has_defaults_vvvvwbe.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbe = has_defaults_vvvvwbe;
|
||||
var has_defaults_vvvvwbe = [];
|
||||
has_defaults_vvvvwbe.push(temp_vvvvwbe);
|
||||
}
|
||||
else if (!isSet(has_defaults_vvvvwbe))
|
||||
{
|
||||
var has_defaults_vvvvwbe = [];
|
||||
}
|
||||
var has_defaults = has_defaults_vvvvwbe.some(has_defaults_vvvvwbe_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_vvvvwbewah_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwbewah_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_vvvvwbewah_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwbewah_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbe Some function
|
||||
function datatype_vvvvwbe_SomeFunc(datatype_vvvvwbe)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwbe == 'CHAR' || datatype_vvvvwbe == 'VARCHAR' || datatype_vvvvwbe == 'DATETIME' || datatype_vvvvwbe == 'DATE' || datatype_vvvvwbe == 'TIME' || datatype_vvvvwbe == 'INT' || datatype_vvvvwbe == 'TINYINT' || datatype_vvvvwbe == 'BIGINT' || datatype_vvvvwbe == 'FLOAT' || datatype_vvvvwbe == 'DECIMAL' || datatype_vvvvwbe == 'DOUBLE')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbe Some function
|
||||
function has_defaults_vvvvwbe_SomeFunc(has_defaults_vvvvwbe)
|
||||
{
|
||||
// set the function logic
|
||||
if (has_defaults_vvvvwbe == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbf function
|
||||
function vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf)
|
||||
{
|
||||
if (isSet(has_defaults_vvvvwbf) && has_defaults_vvvvwbf.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbf = has_defaults_vvvvwbf;
|
||||
var has_defaults_vvvvwbf = [];
|
||||
has_defaults_vvvvwbf.push(temp_vvvvwbf);
|
||||
}
|
||||
else if (!isSet(has_defaults_vvvvwbf))
|
||||
{
|
||||
var has_defaults_vvvvwbf = [];
|
||||
}
|
||||
var has_defaults = has_defaults_vvvvwbf.some(has_defaults_vvvvwbf_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwbf) && datatype_vvvvwbf.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbf = datatype_vvvvwbf;
|
||||
var datatype_vvvvwbf = [];
|
||||
datatype_vvvvwbf.push(temp_vvvvwbf);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwbf))
|
||||
{
|
||||
var datatype_vvvvwbf = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwbf.some(datatype_vvvvwbf_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (has_defaults && datatype)
|
||||
{
|
||||
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_vvvvwbfwai_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwbfwai_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_vvvvwbfwai_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwbfwai_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbf Some function
|
||||
function has_defaults_vvvvwbf_SomeFunc(has_defaults_vvvvwbf)
|
||||
{
|
||||
// set the function logic
|
||||
if (has_defaults_vvvvwbf == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbf Some function
|
||||
function datatype_vvvvwbf_SomeFunc(datatype_vvvvwbf)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwbf == 'CHAR' || datatype_vvvvwbf == 'VARCHAR' || datatype_vvvvwbf == 'DATETIME' || datatype_vvvvwbf == 'DATE' || datatype_vvvvwbf == 'TIME' || datatype_vvvvwbf == 'INT' || datatype_vvvvwbf == 'TINYINT' || datatype_vvvvwbf == 'BIGINT' || datatype_vvvvwbf == 'FLOAT' || datatype_vvvvwbf == 'DECIMAL' || datatype_vvvvwbf == 'DOUBLE')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg)
|
||||
{
|
||||
if (isSet(datatype_vvvvwbg) && datatype_vvvvwbg.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbg = datatype_vvvvwbg;
|
||||
var datatype_vvvvwbg = [];
|
||||
datatype_vvvvwbg.push(temp_vvvvwbg);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwbg))
|
||||
{
|
||||
var datatype_vvvvwbg = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwbg.some(datatype_vvvvwbg_SomeFunc);
|
||||
|
||||
if (isSet(has_defaults_vvvvwbg) && has_defaults_vvvvwbg.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbg = has_defaults_vvvvwbg;
|
||||
var has_defaults_vvvvwbg = [];
|
||||
has_defaults_vvvvwbg.push(temp_vvvvwbg);
|
||||
}
|
||||
else if (!isSet(has_defaults_vvvvwbg))
|
||||
{
|
||||
var has_defaults_vvvvwbg = [];
|
||||
}
|
||||
var has_defaults = has_defaults_vvvvwbg.some(has_defaults_vvvvwbg_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype && has_defaults)
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').show();
|
||||
// add required attribute to store field
|
||||
if (jform_vvvvwbgwaj_required)
|
||||
{
|
||||
updateFieldRequired('store',0);
|
||||
jQuery('#jform_store').prop('required','required');
|
||||
jQuery('#jform_store').attr('aria-required',true);
|
||||
jQuery('#jform_store').addClass('required');
|
||||
jform_vvvvwbgwaj_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').hide();
|
||||
// remove required attribute from store field
|
||||
if (!jform_vvvvwbgwaj_required)
|
||||
{
|
||||
updateFieldRequired('store',1);
|
||||
jQuery('#jform_store').removeAttr('required');
|
||||
jQuery('#jform_store').removeAttr('aria-required');
|
||||
jQuery('#jform_store').removeClass('required');
|
||||
jform_vvvvwbgwaj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbg Some function
|
||||
function datatype_vvvvwbg_SomeFunc(datatype_vvvvwbg)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwbg == 'CHAR' || datatype_vvvvwbg == 'VARCHAR' || datatype_vvvvwbg == 'TEXT' || datatype_vvvvwbg == 'MEDIUMTEXT' || datatype_vvvvwbg == 'LONGTEXT' || datatype_vvvvwbg == 'BLOB' || datatype_vvvvwbg == 'TINYBLOB' || datatype_vvvvwbg == 'MEDIUMBLOB' || datatype_vvvvwbg == 'LONGBLOB')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbg Some function
|
||||
function has_defaults_vvvvwbg_SomeFunc(has_defaults_vvvvwbg)
|
||||
{
|
||||
// set the function logic
|
||||
if (has_defaults_vvvvwbg == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbi function
|
||||
function vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi)
|
||||
{
|
||||
if (isSet(store_vvvvwbi) && store_vvvvwbi.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbi = store_vvvvwbi;
|
||||
var store_vvvvwbi = [];
|
||||
store_vvvvwbi.push(temp_vvvvwbi);
|
||||
}
|
||||
else if (!isSet(store_vvvvwbi))
|
||||
{
|
||||
var store_vvvvwbi = [];
|
||||
}
|
||||
var store = store_vvvvwbi.some(store_vvvvwbi_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwbi) && datatype_vvvvwbi.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbi = datatype_vvvvwbi;
|
||||
var datatype_vvvvwbi = [];
|
||||
datatype_vvvvwbi.push(temp_vvvvwbi);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwbi))
|
||||
{
|
||||
var datatype_vvvvwbi = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwbi.some(datatype_vvvvwbi_SomeFunc);
|
||||
|
||||
if (isSet(has_defaults_vvvvwbi) && has_defaults_vvvvwbi.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbi = has_defaults_vvvvwbi;
|
||||
var has_defaults_vvvvwbi = [];
|
||||
has_defaults_vvvvwbi.push(temp_vvvvwbi);
|
||||
}
|
||||
else if (!isSet(has_defaults_vvvvwbi))
|
||||
{
|
||||
var has_defaults_vvvvwbi = [];
|
||||
}
|
||||
var has_defaults = has_defaults_vvvvwbi.some(has_defaults_vvvvwbi_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 vvvvwbi Some function
|
||||
function store_vvvvwbi_SomeFunc(store_vvvvwbi)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwbi == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbi Some function
|
||||
function datatype_vvvvwbi_SomeFunc(datatype_vvvvwbi)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwbi == 'CHAR' || datatype_vvvvwbi == 'VARCHAR' || datatype_vvvvwbi == 'TEXT' || datatype_vvvvwbi == 'MEDIUMTEXT' || datatype_vvvvwbi == 'LONGTEXT' || datatype_vvvvwbi == 'BLOB' || datatype_vvvvwbi == 'TINYBLOB' || datatype_vvvvwbi == 'MEDIUMBLOB' || datatype_vvvvwbi == 'LONGBLOB')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbi Some function
|
||||
function has_defaults_vvvvwbi_SomeFunc(has_defaults_vvvvwbi)
|
||||
{
|
||||
// set the function logic
|
||||
if (has_defaults_vvvvwbi == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbj function
|
||||
function vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj)
|
||||
{
|
||||
if (isSet(datatype_vvvvwbj) && datatype_vvvvwbj.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbj = datatype_vvvvwbj;
|
||||
var datatype_vvvvwbj = [];
|
||||
datatype_vvvvwbj.push(temp_vvvvwbj);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwbj))
|
||||
{
|
||||
var datatype_vvvvwbj = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwbj.some(datatype_vvvvwbj_SomeFunc);
|
||||
|
||||
if (isSet(store_vvvvwbj) && store_vvvvwbj.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbj = store_vvvvwbj;
|
||||
var store_vvvvwbj = [];
|
||||
store_vvvvwbj.push(temp_vvvvwbj);
|
||||
}
|
||||
else if (!isSet(store_vvvvwbj))
|
||||
{
|
||||
var store_vvvvwbj = [];
|
||||
}
|
||||
var store = store_vvvvwbj.some(store_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 (datatype && store && has_defaults)
|
||||
{
|
||||
jQuery('.note_whmcs_encryption').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbj Some function
|
||||
function datatype_vvvvwbj_SomeFunc(datatype_vvvvwbj)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwbj == 'CHAR' || datatype_vvvvwbj == 'VARCHAR' || datatype_vvvvwbj == 'TEXT' || datatype_vvvvwbj == 'MEDIUMTEXT' || datatype_vvvvwbj == 'LONGTEXT' || datatype_vvvvwbj == 'BLOB' || datatype_vvvvwbj == 'TINYBLOB' || datatype_vvvvwbj == 'MEDIUMBLOB' || datatype_vvvvwbj == 'LONGBLOB')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbj Some function
|
||||
function store_vvvvwbj_SomeFunc(store_vvvvwbj)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwbj == 4)
|
||||
{
|
||||
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 vvvvwbk function
|
||||
function vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk)
|
||||
{
|
||||
if (isSet(has_defaults_vvvvwbk) && has_defaults_vvvvwbk.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbk = has_defaults_vvvvwbk;
|
||||
var has_defaults_vvvvwbk = [];
|
||||
has_defaults_vvvvwbk.push(temp_vvvvwbk);
|
||||
}
|
||||
else if (!isSet(has_defaults_vvvvwbk))
|
||||
{
|
||||
var has_defaults_vvvvwbk = [];
|
||||
}
|
||||
var has_defaults = has_defaults_vvvvwbk.some(has_defaults_vvvvwbk_SomeFunc);
|
||||
|
||||
if (isSet(store_vvvvwbk) && store_vvvvwbk.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbk = store_vvvvwbk;
|
||||
var store_vvvvwbk = [];
|
||||
store_vvvvwbk.push(temp_vvvvwbk);
|
||||
}
|
||||
else if (!isSet(store_vvvvwbk))
|
||||
{
|
||||
var store_vvvvwbk = [];
|
||||
}
|
||||
var store = store_vvvvwbk.some(store_vvvvwbk_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwbk) && datatype_vvvvwbk.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbk = datatype_vvvvwbk;
|
||||
var datatype_vvvvwbk = [];
|
||||
datatype_vvvvwbk.push(temp_vvvvwbk);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwbk))
|
||||
{
|
||||
var datatype_vvvvwbk = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwbk.some(datatype_vvvvwbk_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (has_defaults && store && datatype)
|
||||
{
|
||||
jQuery('.note_whmcs_encryption').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbk Some function
|
||||
function has_defaults_vvvvwbk_SomeFunc(has_defaults_vvvvwbk)
|
||||
{
|
||||
// set the function logic
|
||||
if (has_defaults_vvvvwbk == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbk Some function
|
||||
function store_vvvvwbk_SomeFunc(store_vvvvwbk)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwbk == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbk Some function
|
||||
function datatype_vvvvwbk_SomeFunc(datatype_vvvvwbk)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwbk == 'CHAR' || datatype_vvvvwbk == 'VARCHAR' || datatype_vvvvwbk == 'TEXT' || datatype_vvvvwbk == 'MEDIUMTEXT' || datatype_vvvvwbk == 'LONGTEXT' || datatype_vvvvwbk == 'BLOB' || datatype_vvvvwbk == 'TINYBLOB' || datatype_vvvvwbk == 'MEDIUMBLOB' || datatype_vvvvwbk == 'LONGBLOB')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbl function
|
||||
function vvvvwbl(has_defaults_vvvvwbl)
|
||||
{
|
||||
// set the function logic
|
||||
if (has_defaults_vvvvwbl == 1)
|
||||
{
|
||||
jQuery('#jform_datatype').closest('.control-group').show();
|
||||
// add required attribute to datatype field
|
||||
if (jform_vvvvwblwak_required)
|
||||
{
|
||||
updateFieldRequired('datatype',0);
|
||||
jQuery('#jform_datatype').prop('required','required');
|
||||
jQuery('#jform_datatype').attr('aria-required',true);
|
||||
jQuery('#jform_datatype').addClass('required');
|
||||
jform_vvvvwblwak_required = false;
|
||||
}
|
||||
jQuery('#jform_null_switch').closest('.control-group').show();
|
||||
// add required attribute to null_switch field
|
||||
if (jform_vvvvwblwal_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_vvvvwblwal_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datatype').closest('.control-group').hide();
|
||||
// remove required attribute from datatype field
|
||||
if (!jform_vvvvwblwak_required)
|
||||
{
|
||||
updateFieldRequired('datatype',1);
|
||||
jQuery('#jform_datatype').removeAttr('required');
|
||||
jQuery('#jform_datatype').removeAttr('aria-required');
|
||||
jQuery('#jform_datatype').removeClass('required');
|
||||
jform_vvvvwblwak_required = true;
|
||||
}
|
||||
jQuery('#jform_null_switch').closest('.control-group').hide();
|
||||
// remove required attribute from null_switch field
|
||||
if (!jform_vvvvwblwal_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_vvvvwblwal_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 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)
|
||||
{
|
||||
if ((val != undefined) && (val != null) && 0 !== val.length){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
jQuery(document).ready(function($)
|
||||
|
@ -101,6 +101,162 @@
|
||||
message="COM_COMPONENTBUILDER_FIELDTYPE_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT"
|
||||
/>
|
||||
<!-- Null_switch Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="null_switch"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_NULL_SWITCH_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="NOT NULL"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="NULL">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NULL</option>
|
||||
<option value="NOT NULL">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NOT_NULL</option>
|
||||
</field>
|
||||
<!-- Indexes Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="indexes"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_INDEXES_LABEL"
|
||||
class="btn-group"
|
||||
multiple="false"
|
||||
filter="INT"
|
||||
required="true"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_UNIQUE_KEY</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_KEY</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NONE</option>
|
||||
</field>
|
||||
<!-- Datadefault_other Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="datadefault_other"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_OTHER_HINT"
|
||||
/>
|
||||
<!-- Datadefault Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="datadefault"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_DATADEFAULT_DESCRIPTION"
|
||||
class="btn-group"
|
||||
multiple="false"
|
||||
default="">
|
||||
<!-- Option Set. -->
|
||||
<option value="">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NONE</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ZERO</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ONE</option>
|
||||
<option value="CURRENT_TIMESTAMP">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CURRENT_TIMESTAMP</option>
|
||||
<option value="DATETIME">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATETIME</option>
|
||||
<option value="Other">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_OTHER</option>
|
||||
</field>
|
||||
<!-- Datalenght_other Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="datalenght_other"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_OTHER_HINT"
|
||||
/>
|
||||
<!-- Datalenght Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="datalenght"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_DATALENGHT_DESCRIPTION"
|
||||
class="btn-group"
|
||||
multiple="false"
|
||||
default="">
|
||||
<!-- Option Set. -->
|
||||
<option value="">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NONE_SET</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ONE</option>
|
||||
<option value="7">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SEVEN</option>
|
||||
<option value="10">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TEN</option>
|
||||
<option value="11">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ELEVEN</option>
|
||||
<option value="50">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_FIFTY</option>
|
||||
<option value="64">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SIXTY_FOUR</option>
|
||||
<option value="100">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ONE_HUNDRED</option>
|
||||
<option value="255">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TWO_HUNDRED_AND_FIFTY_FIVE</option>
|
||||
<option value="1024">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_ONE_THOUSAND_AND_TWENTY_FOUR</option>
|
||||
<option value="2048">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TWO_THOUSAND_AND_FORTY_EIGHT</option>
|
||||
<option value="Other">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_OTHER</option>
|
||||
</field>
|
||||
<!-- Short_description Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="short_description"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="HTML"
|
||||
message="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_HINT"
|
||||
/>
|
||||
<!-- Has_defaults Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="has_defaults"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_HAS_DEFAULTS_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_HAS_DEFAULTS_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_NO</option>
|
||||
</field>
|
||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="not_required"
|
||||
default="[]"
|
||||
/>
|
||||
<!-- Properties Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
@ -201,20 +357,83 @@
|
||||
filter="HTML"
|
||||
hint="COM_COMPONENTBUILDER_FIELDTYPE_DESCRIPTION_HINT"
|
||||
/>
|
||||
<!-- Short_description Field. Type: Text. (joomla) -->
|
||||
<!-- Store Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="short_description"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_DESCRIPTION"
|
||||
class="text_area"
|
||||
type="list"
|
||||
name="store"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_STORE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_STORE_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
filter="INT"
|
||||
required="true"
|
||||
filter="HTML"
|
||||
message="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_FIELDTYPE_SHORT_DESCRIPTION_HINT"
|
||||
/>
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DEFAULT</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_JSON</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BASESIXTY_FOUR</option>
|
||||
<option value="3">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BASIC_ENCRYPTION_LOCALDBKEY</option>
|
||||
<option value="5">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MEDIUM_ENCRYPTION_LOCALFILEKEY</option>
|
||||
<option value="4">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_WHMCSKEY_ENCRYPTION</option>
|
||||
</field>
|
||||
<!-- Datatype Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="datatype"
|
||||
label="COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELDTYPE_DATATYPE_DESCRIPTION"
|
||||
class="btn-group"
|
||||
multiple="false"
|
||||
required="true"
|
||||
default="">
|
||||
<!-- Option Set. -->
|
||||
<option value="">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_SELECT_AN_OPTION</option>
|
||||
<option value="CHAR">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_CHAR</option>
|
||||
<option value="VARCHAR">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_VARCHAR</option>
|
||||
<option value="TEXT">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TEXT</option>
|
||||
<option value="MEDIUMTEXT">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MEDIUMTEXT</option>
|
||||
<option value="LONGTEXT">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_LONGTEXT</option>
|
||||
<option value="BLOB">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BLOB</option>
|
||||
<option value="TINYBLOB">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TINYBLOB</option>
|
||||
<option value="MEDIUMBLOB">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MEDIUMBLOB</option>
|
||||
<option value="LONGBLOB">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_LONGBLOB</option>
|
||||
<option value="DATETIME">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATETIME</option>
|
||||
<option value="DATE">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DATE</option>
|
||||
<option value="TIME">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TIME</option>
|
||||
<option value="INT">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_INT</option>
|
||||
<option value="TINYINT">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_TINYINT</option>
|
||||
<option value="BIGINT">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BIGINT</option>
|
||||
<option value="FLOAT">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_FLOAT</option>
|
||||
<option value="DECIMAL">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DECIMAL</option>
|
||||
<option value="DOUBLE">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_DOUBLE</option>
|
||||
</field>
|
||||
<!-- Note_whmcs_encryption Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_whmcs_encryption" label="COM_COMPONENTBUILDER_FIELDTYPE_NOTE_WHMCS_ENCRYPTION_LABEL" description="COM_COMPONENTBUILDER_FIELDTYPE_NOTE_WHMCS_ENCRYPTION_DESCRIPTION" heading="h4" class="alert alert-success note_whmcs_encryption" />
|
||||
<!-- Catid Field. Type: Category. (joomla) -->
|
||||
<field
|
||||
type="category"
|
||||
|
@ -9,113 +9,113 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbkwaq_required = false;
|
||||
jform_vvvvwblwar_required = false;
|
||||
jform_vvvvwbmwas_required = false;
|
||||
jform_vvvvwbnwat_required = false;
|
||||
jform_vvvvwbowau_required = false;
|
||||
jform_vvvvwbpwav_required = false;
|
||||
jform_vvvvwbwwax_required = false;
|
||||
jform_vvvvwbxway_required = false;
|
||||
jform_vvvvwbywaz_required = false;
|
||||
jform_vvvvwbzwba_required = false;
|
||||
jform_vvvvwcawbb_required = false;
|
||||
jform_vvvvwcbwbc_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbk(location_vvvvwbk);
|
||||
var location_vvvvwbw = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbw(location_vvvvwbw);
|
||||
|
||||
var location_vvvvwbl = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbl(location_vvvvwbl);
|
||||
var location_vvvvwbx = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbx(location_vvvvwbx);
|
||||
|
||||
var type_vvvvwbm = jQuery("#jform_type").val();
|
||||
vvvvwbm(type_vvvvwbm);
|
||||
var type_vvvvwby = jQuery("#jform_type").val();
|
||||
vvvvwby(type_vvvvwby);
|
||||
|
||||
var type_vvvvwbn = jQuery("#jform_type").val();
|
||||
vvvvwbn(type_vvvvwbn);
|
||||
var type_vvvvwbz = jQuery("#jform_type").val();
|
||||
vvvvwbz(type_vvvvwbz);
|
||||
|
||||
var type_vvvvwbo = jQuery("#jform_type").val();
|
||||
vvvvwbo(type_vvvvwbo);
|
||||
var type_vvvvwca = jQuery("#jform_type").val();
|
||||
vvvvwca(type_vvvvwca);
|
||||
|
||||
var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbp(target_vvvvwbp);
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
});
|
||||
|
||||
// the vvvvwbk function
|
||||
function vvvvwbk(location_vvvvwbk)
|
||||
// the vvvvwbw function
|
||||
function vvvvwbw(location_vvvvwbw)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwbk == 1)
|
||||
if (location_vvvvwbw == 1)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
// add required attribute to admin_view field
|
||||
if (jform_vvvvwbkwaq_required)
|
||||
if (jform_vvvvwbwwax_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_vvvvwbkwaq_required = false;
|
||||
jform_vvvvwbwwax_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||
// remove required attribute from admin_view field
|
||||
if (!jform_vvvvwbkwaq_required)
|
||||
if (!jform_vvvvwbwwax_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_vvvvwbkwaq_required = true;
|
||||
jform_vvvvwbwwax_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbl function
|
||||
function vvvvwbl(location_vvvvwbl)
|
||||
// the vvvvwbx function
|
||||
function vvvvwbx(location_vvvvwbx)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwbl == 2)
|
||||
if (location_vvvvwbx == 2)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
// add required attribute to site_view field
|
||||
if (jform_vvvvwblwar_required)
|
||||
if (jform_vvvvwbxway_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_vvvvwblwar_required = false;
|
||||
jform_vvvvwbxway_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||
// remove required attribute from site_view field
|
||||
if (!jform_vvvvwblwar_required)
|
||||
if (!jform_vvvvwbxway_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_vvvvwblwar_required = true;
|
||||
jform_vvvvwbxway_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbm function
|
||||
function vvvvwbm(type_vvvvwbm)
|
||||
// the vvvvwby function
|
||||
function vvvvwby(type_vvvvwby)
|
||||
{
|
||||
if (isSet(type_vvvvwbm) && type_vvvvwbm.constructor !== Array)
|
||||
if (isSet(type_vvvvwby) && type_vvvvwby.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbm = type_vvvvwbm;
|
||||
var type_vvvvwbm = [];
|
||||
type_vvvvwbm.push(temp_vvvvwbm);
|
||||
var temp_vvvvwby = type_vvvvwby;
|
||||
var type_vvvvwby = [];
|
||||
type_vvvvwby.push(temp_vvvvwby);
|
||||
}
|
||||
else if (!isSet(type_vvvvwbm))
|
||||
else if (!isSet(type_vvvvwby))
|
||||
{
|
||||
var type_vvvvwbm = [];
|
||||
var type_vvvvwby = [];
|
||||
}
|
||||
var type = type_vvvvwbm.some(type_vvvvwbm_SomeFunc);
|
||||
var type = type_vvvvwby.some(type_vvvvwby_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -123,55 +123,55 @@ function vvvvwbm(type_vvvvwbm)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
// add required attribute to url field
|
||||
if (jform_vvvvwbmwas_required)
|
||||
if (jform_vvvvwbywaz_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwbmwas_required = false;
|
||||
jform_vvvvwbywaz_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
// remove required attribute from url field
|
||||
if (!jform_vvvvwbmwas_required)
|
||||
if (!jform_vvvvwbywaz_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwbmwas_required = true;
|
||||
jform_vvvvwbywaz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbm Some function
|
||||
function type_vvvvwbm_SomeFunc(type_vvvvwbm)
|
||||
// the vvvvwby Some function
|
||||
function type_vvvvwby_SomeFunc(type_vvvvwby)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbm == 3)
|
||||
if (type_vvvvwby == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbn function
|
||||
function vvvvwbn(type_vvvvwbn)
|
||||
// the vvvvwbz function
|
||||
function vvvvwbz(type_vvvvwbz)
|
||||
{
|
||||
if (isSet(type_vvvvwbn) && type_vvvvwbn.constructor !== Array)
|
||||
if (isSet(type_vvvvwbz) && type_vvvvwbz.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbn = type_vvvvwbn;
|
||||
var type_vvvvwbn = [];
|
||||
type_vvvvwbn.push(temp_vvvvwbn);
|
||||
var temp_vvvvwbz = type_vvvvwbz;
|
||||
var type_vvvvwbz = [];
|
||||
type_vvvvwbz.push(temp_vvvvwbz);
|
||||
}
|
||||
else if (!isSet(type_vvvvwbn))
|
||||
else if (!isSet(type_vvvvwbz))
|
||||
{
|
||||
var type_vvvvwbn = [];
|
||||
var type_vvvvwbz = [];
|
||||
}
|
||||
var type = type_vvvvwbn.some(type_vvvvwbn_SomeFunc);
|
||||
var type = type_vvvvwbz.some(type_vvvvwbz_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -179,55 +179,55 @@ function vvvvwbn(type_vvvvwbn)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
// add required attribute to article field
|
||||
if (jform_vvvvwbnwat_required)
|
||||
if (jform_vvvvwbzwba_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwbnwat_required = false;
|
||||
jform_vvvvwbzwba_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
// remove required attribute from article field
|
||||
if (!jform_vvvvwbnwat_required)
|
||||
if (!jform_vvvvwbzwba_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwbnwat_required = true;
|
||||
jform_vvvvwbzwba_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbn Some function
|
||||
function type_vvvvwbn_SomeFunc(type_vvvvwbn)
|
||||
// the vvvvwbz Some function
|
||||
function type_vvvvwbz_SomeFunc(type_vvvvwbz)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbn == 1)
|
||||
if (type_vvvvwbz == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbo function
|
||||
function vvvvwbo(type_vvvvwbo)
|
||||
// the vvvvwca function
|
||||
function vvvvwca(type_vvvvwca)
|
||||
{
|
||||
if (isSet(type_vvvvwbo) && type_vvvvwbo.constructor !== Array)
|
||||
if (isSet(type_vvvvwca) && type_vvvvwca.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbo = type_vvvvwbo;
|
||||
var type_vvvvwbo = [];
|
||||
type_vvvvwbo.push(temp_vvvvwbo);
|
||||
var temp_vvvvwca = type_vvvvwca;
|
||||
var type_vvvvwca = [];
|
||||
type_vvvvwca.push(temp_vvvvwca);
|
||||
}
|
||||
else if (!isSet(type_vvvvwbo))
|
||||
else if (!isSet(type_vvvvwca))
|
||||
{
|
||||
var type_vvvvwbo = [];
|
||||
var type_vvvvwca = [];
|
||||
}
|
||||
var type = type_vvvvwbo.some(type_vvvvwbo_SomeFunc);
|
||||
var type = type_vvvvwca.some(type_vvvvwca_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -235,69 +235,69 @@ function vvvvwbo(type_vvvvwbo)
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||
// add required attribute to content field
|
||||
if (jform_vvvvwbowau_required)
|
||||
if (jform_vvvvwcawbb_required)
|
||||
{
|
||||
updateFieldRequired('content',0);
|
||||
jQuery('#jform_content').prop('required','required');
|
||||
jQuery('#jform_content').attr('aria-required',true);
|
||||
jQuery('#jform_content').addClass('required');
|
||||
jform_vvvvwbowau_required = false;
|
||||
jform_vvvvwcawbb_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from content field
|
||||
if (!jform_vvvvwbowau_required)
|
||||
if (!jform_vvvvwcawbb_required)
|
||||
{
|
||||
updateFieldRequired('content',1);
|
||||
jQuery('#jform_content').removeAttr('required');
|
||||
jQuery('#jform_content').removeAttr('aria-required');
|
||||
jQuery('#jform_content').removeClass('required');
|
||||
jform_vvvvwbowau_required = true;
|
||||
jform_vvvvwcawbb_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbo Some function
|
||||
function type_vvvvwbo_SomeFunc(type_vvvvwbo)
|
||||
// the vvvvwca Some function
|
||||
function type_vvvvwca_SomeFunc(type_vvvvwca)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbo == 2)
|
||||
if (type_vvvvwca == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbp function
|
||||
function vvvvwbp(target_vvvvwbp)
|
||||
// the vvvvwcb function
|
||||
function vvvvwcb(target_vvvvwcb)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwbp == 1)
|
||||
if (target_vvvvwcb == 1)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
// add required attribute to groups field
|
||||
if (jform_vvvvwbpwav_required)
|
||||
if (jform_vvvvwcbwbc_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_vvvvwbpwav_required = false;
|
||||
jform_vvvvwcbwbc_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
// remove required attribute from groups field
|
||||
if (!jform_vvvvwbpwav_required)
|
||||
if (!jform_vvvvwcbwbc_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_vvvvwbpwav_required = true;
|
||||
jform_vvvvwcbwbc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,56 +9,56 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbawag_required = false;
|
||||
jform_vvvvwbawah_required = false;
|
||||
jform_vvvvwbawai_required = false;
|
||||
jform_vvvvwbawaj_required = false;
|
||||
jform_vvvvwbawak_required = false;
|
||||
jform_vvvvwbbwal_required = false;
|
||||
jform_vvvvwbcwam_required = false;
|
||||
jform_vvvvwbewan_required = false;
|
||||
jform_vvvvwbgwao_required = false;
|
||||
jform_vvvvwbmwan_required = false;
|
||||
jform_vvvvwbmwao_required = false;
|
||||
jform_vvvvwbmwap_required = false;
|
||||
jform_vvvvwbmwaq_required = false;
|
||||
jform_vvvvwbmwar_required = false;
|
||||
jform_vvvvwbnwas_required = false;
|
||||
jform_vvvvwbowat_required = false;
|
||||
jform_vvvvwbqwau_required = false;
|
||||
jform_vvvvwbswav_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var protocol_vvvvwba = jQuery("#jform_protocol").val();
|
||||
vvvvwba(protocol_vvvvwba);
|
||||
var protocol_vvvvwbm = jQuery("#jform_protocol").val();
|
||||
vvvvwbm(protocol_vvvvwbm);
|
||||
|
||||
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
|
||||
vvvvwbb(protocol_vvvvwbb);
|
||||
var protocol_vvvvwbn = jQuery("#jform_protocol").val();
|
||||
vvvvwbn(protocol_vvvvwbn);
|
||||
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
});
|
||||
|
||||
// the vvvvwba function
|
||||
function vvvvwba(protocol_vvvvwba)
|
||||
// the vvvvwbm function
|
||||
function vvvvwbm(protocol_vvvvwbm)
|
||||
{
|
||||
if (isSet(protocol_vvvvwba) && protocol_vvvvwba.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbm) && protocol_vvvvwbm.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwba = protocol_vvvvwba;
|
||||
var protocol_vvvvwba = [];
|
||||
protocol_vvvvwba.push(temp_vvvvwba);
|
||||
var temp_vvvvwbm = protocol_vvvvwbm;
|
||||
var protocol_vvvvwbm = [];
|
||||
protocol_vvvvwbm.push(temp_vvvvwbm);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwba))
|
||||
else if (!isSet(protocol_vvvvwbm))
|
||||
{
|
||||
var protocol_vvvvwba = [];
|
||||
var protocol_vvvvwbm = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwba.some(protocol_vvvvwba_SomeFunc);
|
||||
var protocol = protocol_vvvvwbm.some(protocol_vvvvwbm_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -66,137 +66,137 @@ function vvvvwba(protocol_vvvvwba)
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
// add required attribute to authentication field
|
||||
if (jform_vvvvwbawag_required)
|
||||
if (jform_vvvvwbmwan_required)
|
||||
{
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwbawag_required = false;
|
||||
jform_vvvvwbmwan_required = false;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
// add required attribute to host field
|
||||
if (jform_vvvvwbawah_required)
|
||||
if (jform_vvvvwbmwao_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwbawah_required = false;
|
||||
jform_vvvvwbmwao_required = false;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
// add required attribute to port field
|
||||
if (jform_vvvvwbawai_required)
|
||||
if (jform_vvvvwbmwap_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwbawai_required = false;
|
||||
jform_vvvvwbmwap_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwbawaj_required)
|
||||
if (jform_vvvvwbmwaq_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwbawaj_required = false;
|
||||
jform_vvvvwbmwaq_required = false;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').show();
|
||||
jQuery('#jform_username').closest('.control-group').show();
|
||||
// add required attribute to username field
|
||||
if (jform_vvvvwbawak_required)
|
||||
if (jform_vvvvwbmwar_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwbawak_required = false;
|
||||
jform_vvvvwbmwar_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
// remove required attribute from authentication field
|
||||
if (!jform_vvvvwbawag_required)
|
||||
if (!jform_vvvvwbmwan_required)
|
||||
{
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwbawag_required = true;
|
||||
jform_vvvvwbmwan_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
// remove required attribute from host field
|
||||
if (!jform_vvvvwbawah_required)
|
||||
if (!jform_vvvvwbmwao_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwbawah_required = true;
|
||||
jform_vvvvwbmwao_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
// remove required attribute from port field
|
||||
if (!jform_vvvvwbawai_required)
|
||||
if (!jform_vvvvwbmwap_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwbawai_required = true;
|
||||
jform_vvvvwbmwap_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwbawaj_required)
|
||||
if (!jform_vvvvwbmwaq_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwbawaj_required = true;
|
||||
jform_vvvvwbmwaq_required = true;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').hide();
|
||||
jQuery('#jform_username').closest('.control-group').hide();
|
||||
// remove required attribute from username field
|
||||
if (!jform_vvvvwbawak_required)
|
||||
if (!jform_vvvvwbmwar_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwbawak_required = true;
|
||||
jform_vvvvwbmwar_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwba Some function
|
||||
function protocol_vvvvwba_SomeFunc(protocol_vvvvwba)
|
||||
// the vvvvwbm Some function
|
||||
function protocol_vvvvwbm_SomeFunc(protocol_vvvvwbm)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwba == 2)
|
||||
if (protocol_vvvvwbm == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbb function
|
||||
function vvvvwbb(protocol_vvvvwbb)
|
||||
// the vvvvwbn function
|
||||
function vvvvwbn(protocol_vvvvwbn)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbb) && protocol_vvvvwbb.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbn) && protocol_vvvvwbn.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbb = protocol_vvvvwbb;
|
||||
var protocol_vvvvwbb = [];
|
||||
protocol_vvvvwbb.push(temp_vvvvwbb);
|
||||
var temp_vvvvwbn = protocol_vvvvwbn;
|
||||
var protocol_vvvvwbn = [];
|
||||
protocol_vvvvwbn.push(temp_vvvvwbn);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbb))
|
||||
else if (!isSet(protocol_vvvvwbn))
|
||||
{
|
||||
var protocol_vvvvwbb = [];
|
||||
var protocol_vvvvwbn = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbb.some(protocol_vvvvwbb_SomeFunc);
|
||||
var protocol = protocol_vvvvwbn.some(protocol_vvvvwbn_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -205,13 +205,13 @@ function vvvvwbb(protocol_vvvvwbb)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
if (jform_vvvvwbbwal_required)
|
||||
if (jform_vvvvwbnwas_required)
|
||||
{
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwbbwal_required = false;
|
||||
jform_vvvvwbnwas_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -219,54 +219,54 @@ function vvvvwbb(protocol_vvvvwbb)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
if (!jform_vvvvwbbwal_required)
|
||||
if (!jform_vvvvwbnwas_required)
|
||||
{
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwbbwal_required = true;
|
||||
jform_vvvvwbnwas_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbb Some function
|
||||
function protocol_vvvvwbb_SomeFunc(protocol_vvvvwbb)
|
||||
// the vvvvwbn Some function
|
||||
function protocol_vvvvwbn_SomeFunc(protocol_vvvvwbn)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbb == 1)
|
||||
if (protocol_vvvvwbn == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbc function
|
||||
function vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc)
|
||||
// the vvvvwbo function
|
||||
function vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbc) && protocol_vvvvwbc.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbo) && protocol_vvvvwbo.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbc = protocol_vvvvwbc;
|
||||
var protocol_vvvvwbc = [];
|
||||
protocol_vvvvwbc.push(temp_vvvvwbc);
|
||||
var temp_vvvvwbo = protocol_vvvvwbo;
|
||||
var protocol_vvvvwbo = [];
|
||||
protocol_vvvvwbo.push(temp_vvvvwbo);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbc))
|
||||
else if (!isSet(protocol_vvvvwbo))
|
||||
{
|
||||
var protocol_vvvvwbc = [];
|
||||
var protocol_vvvvwbo = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbc.some(protocol_vvvvwbc_SomeFunc);
|
||||
var protocol = protocol_vvvvwbo.some(protocol_vvvvwbo_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbc) && authentication_vvvvwbc.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbo) && authentication_vvvvwbo.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbc = authentication_vvvvwbc;
|
||||
var authentication_vvvvwbc = [];
|
||||
authentication_vvvvwbc.push(temp_vvvvwbc);
|
||||
var temp_vvvvwbo = authentication_vvvvwbo;
|
||||
var authentication_vvvvwbo = [];
|
||||
authentication_vvvvwbo.push(temp_vvvvwbo);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbc))
|
||||
else if (!isSet(authentication_vvvvwbo))
|
||||
{
|
||||
var authentication_vvvvwbc = [];
|
||||
var authentication_vvvvwbo = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbc.some(authentication_vvvvwbc_SomeFunc);
|
||||
var authentication = authentication_vvvvwbo.some(authentication_vvvvwbo_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -274,78 +274,78 @@ function vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwbcwam_required)
|
||||
if (jform_vvvvwbowat_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwbcwam_required = false;
|
||||
jform_vvvvwbowat_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwbcwam_required)
|
||||
if (!jform_vvvvwbowat_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwbcwam_required = true;
|
||||
jform_vvvvwbowat_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbc Some function
|
||||
function protocol_vvvvwbc_SomeFunc(protocol_vvvvwbc)
|
||||
// the vvvvwbo Some function
|
||||
function protocol_vvvvwbo_SomeFunc(protocol_vvvvwbo)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbc == 2)
|
||||
if (protocol_vvvvwbo == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbc Some function
|
||||
function authentication_vvvvwbc_SomeFunc(authentication_vvvvwbc)
|
||||
// the vvvvwbo Some function
|
||||
function authentication_vvvvwbo_SomeFunc(authentication_vvvvwbo)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbc == 1 || authentication_vvvvwbc == 3 || authentication_vvvvwbc == 5)
|
||||
if (authentication_vvvvwbo == 1 || authentication_vvvvwbo == 3 || authentication_vvvvwbo == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbe function
|
||||
function vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe)
|
||||
// the vvvvwbq function
|
||||
function vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbe) && protocol_vvvvwbe.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbq) && protocol_vvvvwbq.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbe = protocol_vvvvwbe;
|
||||
var protocol_vvvvwbe = [];
|
||||
protocol_vvvvwbe.push(temp_vvvvwbe);
|
||||
var temp_vvvvwbq = protocol_vvvvwbq;
|
||||
var protocol_vvvvwbq = [];
|
||||
protocol_vvvvwbq.push(temp_vvvvwbq);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbe))
|
||||
else if (!isSet(protocol_vvvvwbq))
|
||||
{
|
||||
var protocol_vvvvwbe = [];
|
||||
var protocol_vvvvwbq = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbe.some(protocol_vvvvwbe_SomeFunc);
|
||||
var protocol = protocol_vvvvwbq.some(protocol_vvvvwbq_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbe) && authentication_vvvvwbe.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbq) && authentication_vvvvwbq.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbe = authentication_vvvvwbe;
|
||||
var authentication_vvvvwbe = [];
|
||||
authentication_vvvvwbe.push(temp_vvvvwbe);
|
||||
var temp_vvvvwbq = authentication_vvvvwbq;
|
||||
var authentication_vvvvwbq = [];
|
||||
authentication_vvvvwbq.push(temp_vvvvwbq);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbe))
|
||||
else if (!isSet(authentication_vvvvwbq))
|
||||
{
|
||||
var authentication_vvvvwbe = [];
|
||||
var authentication_vvvvwbq = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbe.some(authentication_vvvvwbe_SomeFunc);
|
||||
var authentication = authentication_vvvvwbq.some(authentication_vvvvwbq_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -353,78 +353,78 @@ function vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe)
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
// add required attribute to private field
|
||||
if (jform_vvvvwbewan_required)
|
||||
if (jform_vvvvwbqwau_required)
|
||||
{
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwbewan_required = false;
|
||||
jform_vvvvwbqwau_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
// remove required attribute from private field
|
||||
if (!jform_vvvvwbewan_required)
|
||||
if (!jform_vvvvwbqwau_required)
|
||||
{
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwbewan_required = true;
|
||||
jform_vvvvwbqwau_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbe Some function
|
||||
function protocol_vvvvwbe_SomeFunc(protocol_vvvvwbe)
|
||||
// the vvvvwbq Some function
|
||||
function protocol_vvvvwbq_SomeFunc(protocol_vvvvwbq)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbe == 2)
|
||||
if (protocol_vvvvwbq == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbe Some function
|
||||
function authentication_vvvvwbe_SomeFunc(authentication_vvvvwbe)
|
||||
// the vvvvwbq Some function
|
||||
function authentication_vvvvwbq_SomeFunc(authentication_vvvvwbq)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbe == 2 || authentication_vvvvwbe == 3)
|
||||
if (authentication_vvvvwbq == 2 || authentication_vvvvwbq == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg)
|
||||
// the vvvvwbs function
|
||||
function vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbg) && protocol_vvvvwbg.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbs) && protocol_vvvvwbs.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbg = protocol_vvvvwbg;
|
||||
var protocol_vvvvwbg = [];
|
||||
protocol_vvvvwbg.push(temp_vvvvwbg);
|
||||
var temp_vvvvwbs = protocol_vvvvwbs;
|
||||
var protocol_vvvvwbs = [];
|
||||
protocol_vvvvwbs.push(temp_vvvvwbs);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbg))
|
||||
else if (!isSet(protocol_vvvvwbs))
|
||||
{
|
||||
var protocol_vvvvwbg = [];
|
||||
var protocol_vvvvwbs = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbg.some(protocol_vvvvwbg_SomeFunc);
|
||||
var protocol = protocol_vvvvwbs.some(protocol_vvvvwbs_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbg) && authentication_vvvvwbg.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbs) && authentication_vvvvwbs.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbg = authentication_vvvvwbg;
|
||||
var authentication_vvvvwbg = [];
|
||||
authentication_vvvvwbg.push(temp_vvvvwbg);
|
||||
var temp_vvvvwbs = authentication_vvvvwbs;
|
||||
var authentication_vvvvwbs = [];
|
||||
authentication_vvvvwbs.push(temp_vvvvwbs);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbg))
|
||||
else if (!isSet(authentication_vvvvwbs))
|
||||
{
|
||||
var authentication_vvvvwbg = [];
|
||||
var authentication_vvvvwbs = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbg.some(authentication_vvvvwbg_SomeFunc);
|
||||
var authentication = authentication_vvvvwbs.some(authentication_vvvvwbs_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -432,78 +432,78 @@ function vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg)
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').show();
|
||||
// add required attribute to private_key field
|
||||
if (jform_vvvvwbgwao_required)
|
||||
if (jform_vvvvwbswav_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_vvvvwbgwao_required = false;
|
||||
jform_vvvvwbswav_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').hide();
|
||||
// remove required attribute from private_key field
|
||||
if (!jform_vvvvwbgwao_required)
|
||||
if (!jform_vvvvwbswav_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_vvvvwbgwao_required = true;
|
||||
jform_vvvvwbswav_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbg Some function
|
||||
function protocol_vvvvwbg_SomeFunc(protocol_vvvvwbg)
|
||||
// the vvvvwbs Some function
|
||||
function protocol_vvvvwbs_SomeFunc(protocol_vvvvwbs)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbg == 2)
|
||||
if (protocol_vvvvwbs == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbg Some function
|
||||
function authentication_vvvvwbg_SomeFunc(authentication_vvvvwbg)
|
||||
// the vvvvwbs Some function
|
||||
function authentication_vvvvwbs_SomeFunc(authentication_vvvvwbs)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbg == 4 || authentication_vvvvwbg == 5)
|
||||
if (authentication_vvvvwbs == 4 || authentication_vvvvwbs == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbi function
|
||||
function vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi)
|
||||
// the vvvvwbu function
|
||||
function vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbi) && protocol_vvvvwbi.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbu) && protocol_vvvvwbu.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbi = protocol_vvvvwbi;
|
||||
var protocol_vvvvwbi = [];
|
||||
protocol_vvvvwbi.push(temp_vvvvwbi);
|
||||
var temp_vvvvwbu = protocol_vvvvwbu;
|
||||
var protocol_vvvvwbu = [];
|
||||
protocol_vvvvwbu.push(temp_vvvvwbu);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbi))
|
||||
else if (!isSet(protocol_vvvvwbu))
|
||||
{
|
||||
var protocol_vvvvwbi = [];
|
||||
var protocol_vvvvwbu = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbi.some(protocol_vvvvwbi_SomeFunc);
|
||||
var protocol = protocol_vvvvwbu.some(protocol_vvvvwbu_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbi) && authentication_vvvvwbi.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbu) && authentication_vvvvwbu.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbi = authentication_vvvvwbi;
|
||||
var authentication_vvvvwbi = [];
|
||||
authentication_vvvvwbi.push(temp_vvvvwbi);
|
||||
var temp_vvvvwbu = authentication_vvvvwbu;
|
||||
var authentication_vvvvwbu = [];
|
||||
authentication_vvvvwbu.push(temp_vvvvwbu);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbi))
|
||||
else if (!isSet(authentication_vvvvwbu))
|
||||
{
|
||||
var authentication_vvvvwbi = [];
|
||||
var authentication_vvvvwbu = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbi.some(authentication_vvvvwbi_SomeFunc);
|
||||
var authentication = authentication_vvvvwbu.some(authentication_vvvvwbu_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -517,22 +517,22 @@ function vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbi Some function
|
||||
function protocol_vvvvwbi_SomeFunc(protocol_vvvvwbi)
|
||||
// the vvvvwbu Some function
|
||||
function protocol_vvvvwbu_SomeFunc(protocol_vvvvwbu)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbi == 2)
|
||||
if (protocol_vvvvwbu == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbi Some function
|
||||
function authentication_vvvvwbi_SomeFunc(authentication_vvvvwbi)
|
||||
// the vvvvwbu Some function
|
||||
function authentication_vvvvwbu_SomeFunc(authentication_vvvvwbu)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbi == 2 || authentication_vvvvwbi == 3 || authentication_vvvvwbi == 4 || authentication_vvvvwbi == 5)
|
||||
if (authentication_vvvvwbu == 2 || authentication_vvvvwbu == 3 || authentication_vvvvwbu == 4 || authentication_vvvvwbu == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ class ComponentbuilderModelServer extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getWaplinked_components()
|
||||
public function getWawlinked_components()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
|
@ -798,10 +798,19 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_fieldtype` (
|
||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
||||
`catid` INT(11) NOT NULL DEFAULT 0,
|
||||
`datadefault` CHAR(64) NOT NULL DEFAULT '',
|
||||
`datadefault_other` CHAR(64) NOT NULL DEFAULT '',
|
||||
`datalenght` CHAR(64) NOT NULL DEFAULT '',
|
||||
`datalenght_other` CHAR(64) NOT NULL DEFAULT '',
|
||||
`datatype` CHAR(64) NOT NULL DEFAULT '',
|
||||
`description` TEXT NOT NULL,
|
||||
`has_defaults` TINYINT(1) NOT NULL DEFAULT 0,
|
||||
`indexes` CHAR(64) NOT NULL DEFAULT '',
|
||||
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`null_switch` CHAR(64) NOT NULL DEFAULT '',
|
||||
`properties` TEXT NOT NULL,
|
||||
`short_description` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`store` INT(11) NOT NULL DEFAULT 0,
|
||||
`params` text NOT NULL,
|
||||
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||||
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||
@ -821,6 +830,14 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_fieldtype` (
|
||||
KEY `idx_modifiedby` (`modified_by`),
|
||||
KEY `idx_state` (`published`),
|
||||
KEY `idx_name` (`name`),
|
||||
KEY `idx_null_switch` (`null_switch`),
|
||||
KEY `idx_indexes` (`indexes`),
|
||||
KEY `idx_datadefault_other` (`datadefault_other`),
|
||||
KEY `idx_datadefault` (`datadefault`),
|
||||
KEY `idx_datalenght_other` (`datalenght_other`),
|
||||
KEY `idx_datalenght` (`datalenght`),
|
||||
KEY `idx_has_defaults` (`has_defaults`),
|
||||
KEY `idx_datatype` (`datatype`),
|
||||
KEY `idx_catid` (`catid`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
|
||||
|
||||
@ -1649,7 +1666,7 @@ INSERT INTO `#__componentbuilder_fieldtype` (`id`, `catid`, `description`, `name
|
||||
(14, '', 'This form field makes it possible to create titles, texts, descriptions and even alert boxes. It also allows you to bring order in the settings for extensions, by separating them with useful titles. Or adding descriptions for certain settings (without having to rely on the tooltips). Or adding any other text you want.', 'Note', '{\"properties0\":{\"name\":\"type\",\"example\":\"note\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be note\"},\"properties1\":{\"name\":\"name\",\"example\":\"note_one\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"The notice\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory or optional if using description) (translatable) is the descriptive title of the note \"},\"properties3\":{\"name\":\"description\",\"example\":\"The notice description\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional if using label)(translatable) the description\\/text of the note \"},\"properties4\":{\"name\":\"heading\",\"example\":\"h4\",\"adjustable\":\"1\",\"description\":\"(optional) the type of heading element to use for the label (default: h4)\"},\"properties5\":{\"name\":\"class\",\"example\":\"alert\",\"adjustable\":\"1\",\"description\":\"(optional) a class name (or class names), like these examples ( alert, alert alert-info, alert alert-success, alert alert-error )\"},\"properties6\":{\"name\":\"close\",\"example\":\"true\",\"adjustable\":\"1\",\"description\":\"(optional) a value of \'true\' (for alerts) or the value for the data-dismiss of the bootstrap close icon\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"}}', 'supports a one line text field.', '', 1, 4, '', ''),
|
||||
(15, '', 'Provides a one line text box with up-down handles to set a number in the field.', 'Number', '{\"properties0\":{\"name\":\"type\",\"example\":\"number\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be number.\"},\"properties1\":{\"name\":\"name\",\"example\":\"number\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Number\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the default value.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties5\":{\"name\":\"class\",\"example\":\"text_area\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\"},\"properties6\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties7\":{\"name\":\"min\",\"example\":\"1\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) this value is the lowest on the list.\"},\"properties8\":{\"name\":\"max\",\"example\":\"40\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) this value is the highest on the list.\"},\"properties9\":{\"name\":\"step\",\"example\":\"5\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) each option will be the previous option incremented by this integer, starting with the first value until the last value is reached.\"},\"properties10\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) Javascript that should run on changing of the value.\"},\"properties11\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Provides a one line text box with up-down handles to set a number in the field.', '', 1, 2, '', ''),
|
||||
(16, '', 'The password form field type provides a text box for entry of a password. The password characters will be obscured as they are entered. If the field has a saved value this is entered (in obscured form) into the text box. If not, the default value (if any)', 'Password', '{\"properties0\":{\"name\":\"type\",\"example\":\"password\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be password.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mypassword\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Enter A Password\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"size\",\"example\":\"10\",\"adjustable\":\"1\",\"description\":\"(optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.\"},\"properties4\":{\"name\":\"default\",\"example\":\"secret\",\"adjustable\":\"1\",\"description\":\"(optional) is the default password.\"},\"properties5\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties6\":{\"name\":\"message\",\"example\":\"Error! Please add password here.\",\"adjustable\":\"1\",\"description\":\"(optional) The error message that will be displayed instead of the default message.\"},\"properties7\":{\"name\":\"class\",\"example\":\"text_area\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\"},\"properties8\":{\"name\":\"readonly\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value\"},\"properties9\":{\"name\":\"disabled\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\"},\"properties10\":{\"name\":\"required\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties11\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties12\":{\"name\":\"field\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) used in validation of \\\"equals\\\" to link the field to match.\"},\"properties13\":{\"name\":\"filter\",\"example\":\"raw\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties14\":{\"name\":\"hint\",\"example\":\"Password Here\",\"adjustable\":\"1\",\"description\":\"(optional) The placeholder to display inside the text box.\"},\"properties17\":{\"name\":\"autocomplete\",\"example\":\"off\",\"adjustable\":\"1\",\"description\":\"(optional) The autocomplete state for the form field. If \'off\' element will not be automatically completed by browser.\"},\"properties15\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"},\"properties16\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"}}', 'provides a text box for entry of a password. The password characters will be obscured as they are entered.', '', 1, 7, '', ''),
|
||||
(17, '', 'The radio form field type provides radio buttons to select different options. If the field has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.', 'Radio', '{\"properties0\":{\"name\":\"type\",\"example\":\"radio\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be radio.\"},\"properties1\":{\"name\":\"name\",\"example\":\"myradiovalue\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select an option\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"class\",\"example\":\"btn-group btn-group-yesno\",\"adjustable\":\"1\",\"description\":\"(optional) New in Joomla 3, if set to class=\\\"btn-group btn-group-yesno\\\" will show the nice coloured buttons\"},\"properties5\":{\"name\":\"option\",\"example\":\"1|Yes,0|No\",\"adjustable\":\"1\",\"description\":\"(mandatory) set the options of this radio. Separate options with commas and use the pipe symbol to separate value from text.\"},\"properties6\":{\"name\":\"default\",\"example\":\"0\",\"adjustable\":\"1\",\"description\":\"(optional) is the default radio button item value.\"},\"properties7\":{\"name\":\"message\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as error on validation.\"},\"properties8\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties9\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties14\":{\"name\":\"readonly\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value\"},\"properties10\":{\"name\":\"disabled\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\"},\"properties11\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"},\"properties12\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"}}', 'provides radio buttons to select different options.', '', 1, 7, '', ''),
|
||||
(17, '', 'The radio form field type provides radio buttons to select different options. If the field has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.', 'Radio', '{\"properties0\":{\"name\":\"type\",\"example\":\"radio\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be radio.\"},\"properties1\":{\"name\":\"name\",\"example\":\"myradiovalue\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select an option\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"class\",\"example\":\"btn-group btn-group-yesno\",\"adjustable\":\"1\",\"description\":\"(optional) New in Joomla 3, if set to class=\\\"btn-group btn-group-yesno\\\" will show the nice coloured buttons\"},\"properties5\":{\"name\":\"option\",\"example\":\"1|Yes,0|No\",\"adjustable\":\"1\",\"description\":\"(mandatory) set the options of this radio. Separate options with commas and use the pipe symbol to separate value from text.\"},\"properties6\":{\"name\":\"default\",\"example\":\"0\",\"adjustable\":\"1\",\"description\":\"(optional) is the default radio button item value.\"},\"properties7\":{\"name\":\"message\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as error on validation.\"},\"properties8\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties9\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties10\":{\"name\":\"readonly\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value\"},\"properties11\":{\"name\":\"disabled\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"},\"properties13\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"}}', 'provides radio buttons to select different options.', '', 1, 15, '', ''),
|
||||
(18, '', 'Provides a horizontal scroll bar to specify a value in a range.', 'Range', '{\"properties0\":{\"name\":\"type\",\"example\":\"range\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be range.\"},\"properties1\":{\"name\":\"name\",\"example\":\"range\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Range\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"9\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties4\":{\"name\":\"description\",\"example\":\"Enter some description\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties14\":{\"name\":\"message\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as error on validation.\"},\"properties5\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\"},\"properties6\":{\"name\":\"min\",\"example\":\"1\",\"adjustable\":\"1\",\"description\":\"(mandatory) this value is the min on the meter.\"},\"properties7\":{\"name\":\"max\",\"example\":\"20\",\"adjustable\":\"1\",\"description\":\"(mandatory) this value is the max on meter.\"},\"properties8\":{\"name\":\"step\",\"example\":\"1\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) each option will be the previous option incremented by this integer, starting with the first value until the last value is reached.\"},\"properties12\":{\"name\":\"required\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties13\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties9\":{\"name\":\"onchange\",\"example\":\"jQuery(\'#jform_range\').closest(\'.controls\').find(\'span\').remove(); var value = jQuery(\'#jform_range\').val();jQuery(\'#jform_range\').closest(\'.controls\').append(\' \'+value+\'\');\",\"adjustable\":\"1\",\"description\":\"(optional) javascript to run when the range is changed\"},\"properties10\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Provides a horizontal scroll bar to specify a value in a range.', '', 1, 3, '', ''),
|
||||
(19, '', 'Provides a modal with rows of formfields that you specify. As many options can be added as desired. Note this form field has a jQuery based javascript file as a dependency.', 'Repeatable', '{\"properties0\":{\"name\":\"type\",\"example\":\"repeatable\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(mandatory) must be repeatable.\"},\"properties1\":{\"name\":\"name\",\"example\":\"repeatable_list\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the parameter\"},\"properties2\":{\"name\":\"label\",\"example\":\"The Repeatable List\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) description text for the form field. Displays at the top of the modal with the name as well as in the usual position in the form\"},\"properties4\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The default value for the form field if the field is left empty. Note this has to be a json string compatible with the contents of the form field.\"},\"properties5\":{\"name\":\"id\",\"example\":\"aid\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) id of the hidden from field. (the modal will have this id with an added suffix of \\\"_modal\\\" and the table within the modal will have this id with a suffix of _modal_table\\\")\"},\"properties6\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) class of the table.\"},\"properties7\":{\"name\":\"select\",\"example\":\"Click here\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) The text to show on the modal button.\"},\"properties8\":{\"name\":\"icon\",\"example\":\"list\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The icon to show on the select button (is prefixed with \\\"icon-\\\").\"},\"properties9\":{\"name\":\"maximum\",\"example\":\"50\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The maximum number of rows of fields allowed (by default 999 to be effectively infinite)\"},\"properties10\":{\"name\":\"fields\",\"example\":\"1,2,3\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) The fields to add to the modal. All fields must first be created in component builder as a field before you can add them here, since you must use the id of the field. Separate the field ids with commas. Do not add custom fields that are not also used in this component.\"},\"properties11\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) Use only if you would like to save raw data, since the default is best.\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Allows form fields which can have as many options as the user desires.', '', 1, 4, '', ''),
|
||||
(20, '', 'The spacer form field type provides a visual separator between parameter field elements. It is purely a visual aid and no field value is stored.', 'Spacer', '{\"properties0\":{\"name\":\"type\",\"example\":\"spacer\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be spacer.\"},\"properties1\":{\"name\":\"name\",\"example\":\"myspacer\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"The notice\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is the text to use as a spacer.\"},\"properties3\":{\"name\":\"description\",\"example\":\"The notice description\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"hr\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is whether to display a horizontal rule (\'true\' or \'false\'). If this attribute is \'true\', the label attribute will be ignored.\"},\"properties5\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"}}', 'provides a visual separator between form fields. It is purely a visual aid and no value is stored.', '', 1, 1, '', ''),
|
||||
|
9
admin/sql/updates/mysql/2.9.15.sql
Normal file
9
admin/sql/updates/mysql/2.9.15.sql
Normal file
@ -0,0 +1,9 @@
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `datadefault` CHAR(64) NOT NULL DEFAULT '' AFTER `catid`;
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `datadefault_other` CHAR(64) NOT NULL DEFAULT '' AFTER `datadefault`;
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `datalenght` CHAR(64) NOT NULL DEFAULT '' AFTER `datadefault_other`;
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `datalenght_other` CHAR(64) NOT NULL DEFAULT '' AFTER `datalenght`;
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `datatype` CHAR(64) NOT NULL DEFAULT '' AFTER `datalenght_other`;
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `has_defaults` TINYINT(1) NOT NULL DEFAULT 0 AFTER `description`;
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `indexes` CHAR(64) NOT NULL DEFAULT '' AFTER `has_defaults`;
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `null_switch` CHAR(64) NOT NULL DEFAULT '' AFTER `indexes`;
|
||||
ALTER TABLE `#__componentbuilder_fieldtype` ADD `store` INT(11) NOT NULL DEFAULT 0 AFTER `short_description`;
|
@ -59,18 +59,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'fieldTab', 'data_base', JText::_('COM_COMPONENTBUILDER_FIELD_DATA_BASE', true)); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'fieldTab', 'database', JText::_('COM_COMPONENTBUILDER_FIELD_DATABASE', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('field.data_base_left', $this); ?>
|
||||
<?php echo JLayoutHelper::render('field.database_left', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('field.data_base_right', $this); ?>
|
||||
<?php echo JLayoutHelper::render('field.database_right', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span12">
|
||||
<?php echo JLayoutHelper::render('field.data_base_fullwidth', $this); ?>
|
||||
<?php echo JLayoutHelper::render('field.database_fullwidth', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
@ -337,7 +337,7 @@ jQuery('#adminForm').on('change', '#jform_fieldtype',function (e) {
|
||||
e.preventDefault();
|
||||
// get type value
|
||||
var fieldId = jQuery("#jform_fieldtype option:selected").val();
|
||||
getFieldOptions(fieldId);
|
||||
getFieldOptions(fieldId, true);
|
||||
// get the field type text
|
||||
var fieldText = jQuery("#jform_fieldtype option:selected").text().toLowerCase();
|
||||
// now check if database input is needed
|
||||
|
@ -44,6 +44,7 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo JLayoutHelper::render('fieldtype.details_above', $this); ?>
|
||||
<div class="form-horizontal">
|
||||
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'fieldtypeTab', array('active' => 'details')); ?>
|
||||
@ -64,6 +65,17 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'fieldtypeTab', 'database_defaults', JText::_('COM_COMPONENTBUILDER_FIELDTYPE_DATABASE_DEFAULTS', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('fieldtype.database_defaults_left', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('fieldtype.database_defaults_right', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php if ($this->canDo->get('field.access')) : ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'fieldtypeTab', 'fields', JText::_('COM_COMPONENTBUILDER_FIELDTYPE_FIELDS', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
@ -122,3 +134,363 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_datalenght listeners for datalenght_vvvvwba function
|
||||
jQuery('#jform_datalenght').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwba function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwba = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datadefault listeners for datadefault_vvvvwbc function
|
||||
jQuery('#jform_datadefault').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbc function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwbc = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbe function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbe function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbe = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbf function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbf function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbf = jQuery("#jform_datatype").val();
|
||||
vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbg function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbg function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbg = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwbi function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbi function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbi function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbi = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbj function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwbj function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbj function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwbj = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbk function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwbk function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbk function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwbk = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbl function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbl(has_defaults_vvvvwbl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbl(has_defaults_vvvvwbl);
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
@ -57,7 +57,7 @@ class ComponentbuilderViewFieldtype extends JViewLegacy
|
||||
}
|
||||
|
||||
// Get Linked view data
|
||||
$this->waffields = $this->get('Waffields');
|
||||
$this->wamfields = $this->get('Wamfields');
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
|
@ -117,93 +117,93 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_location listeners for location_vvvvwbk function
|
||||
// #jform_location listeners for location_vvvvwbw function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbk(location_vvvvwbk);
|
||||
var location_vvvvwbw = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbw(location_vvvvwbw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_vvvvwbk = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbk(location_vvvvwbk);
|
||||
var location_vvvvwbw = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbw(location_vvvvwbw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_location listeners for location_vvvvwbl function
|
||||
// #jform_location listeners for location_vvvvwbx function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_vvvvwbl = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbl(location_vvvvwbl);
|
||||
var location_vvvvwbx = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbx(location_vvvvwbx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_vvvvwbl = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbl(location_vvvvwbl);
|
||||
var location_vvvvwbx = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbx(location_vvvvwbx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwbm function
|
||||
// #jform_type listeners for type_vvvvwby function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwbm = jQuery("#jform_type").val();
|
||||
vvvvwbm(type_vvvvwbm);
|
||||
var type_vvvvwby = jQuery("#jform_type").val();
|
||||
vvvvwby(type_vvvvwby);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwbm = jQuery("#jform_type").val();
|
||||
vvvvwbm(type_vvvvwbm);
|
||||
var type_vvvvwby = jQuery("#jform_type").val();
|
||||
vvvvwby(type_vvvvwby);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwbn function
|
||||
// #jform_type listeners for type_vvvvwbz function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwbn = jQuery("#jform_type").val();
|
||||
vvvvwbn(type_vvvvwbn);
|
||||
var type_vvvvwbz = jQuery("#jform_type").val();
|
||||
vvvvwbz(type_vvvvwbz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwbn = jQuery("#jform_type").val();
|
||||
vvvvwbn(type_vvvvwbn);
|
||||
var type_vvvvwbz = jQuery("#jform_type").val();
|
||||
vvvvwbz(type_vvvvwbz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwbo function
|
||||
// #jform_type listeners for type_vvvvwca function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwbo = jQuery("#jform_type").val();
|
||||
vvvvwbo(type_vvvvwbo);
|
||||
var type_vvvvwca = jQuery("#jform_type").val();
|
||||
vvvvwca(type_vvvvwca);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwbo = jQuery("#jform_type").val();
|
||||
vvvvwbo(type_vvvvwbo);
|
||||
var type_vvvvwca = jQuery("#jform_type").val();
|
||||
vvvvwca(type_vvvvwca);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwbp function
|
||||
// #jform_target listeners for target_vvvvwcb function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbp(target_vvvvwbp);
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwbp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbp(target_vvvvwbp);
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
|
||||
});
|
||||
|
||||
|
@ -126,169 +126,169 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwba function
|
||||
// #jform_protocol listeners for protocol_vvvvwbm function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwba = jQuery("#jform_protocol").val();
|
||||
vvvvwba(protocol_vvvvwba);
|
||||
var protocol_vvvvwbm = jQuery("#jform_protocol").val();
|
||||
vvvvwbm(protocol_vvvvwbm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwba = jQuery("#jform_protocol").val();
|
||||
vvvvwba(protocol_vvvvwba);
|
||||
var protocol_vvvvwbm = jQuery("#jform_protocol").val();
|
||||
vvvvwbm(protocol_vvvvwbm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbb function
|
||||
// #jform_protocol listeners for protocol_vvvvwbn function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
|
||||
vvvvwbb(protocol_vvvvwbb);
|
||||
var protocol_vvvvwbn = jQuery("#jform_protocol").val();
|
||||
vvvvwbn(protocol_vvvvwbn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
|
||||
vvvvwbb(protocol_vvvvwbb);
|
||||
var protocol_vvvvwbn = jQuery("#jform_protocol").val();
|
||||
vvvvwbn(protocol_vvvvwbn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbc function
|
||||
// #jform_protocol listeners for protocol_vvvvwbo function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwbc function
|
||||
// #jform_authentication listeners for authentication_vvvvwbo function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbc = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbc = jQuery("#jform_authentication").val();
|
||||
vvvvwbc(protocol_vvvvwbc,authentication_vvvvwbc);
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbe function
|
||||
// #jform_protocol listeners for protocol_vvvvwbq function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwbe function
|
||||
// #jform_authentication listeners for authentication_vvvvwbq function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbe = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbe = jQuery("#jform_authentication").val();
|
||||
vvvvwbe(protocol_vvvvwbe,authentication_vvvvwbe);
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbg function
|
||||
// #jform_protocol listeners for protocol_vvvvwbs function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwbg function
|
||||
// #jform_authentication listeners for authentication_vvvvwbs function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbg = jQuery("#jform_authentication").val();
|
||||
vvvvwbg(protocol_vvvvwbg,authentication_vvvvwbg);
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwbi function
|
||||
// #jform_protocol listeners for protocol_vvvvwbu function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwbi function
|
||||
// #jform_authentication listeners for authentication_vvvvwbu function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwbi = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbi = jQuery("#jform_authentication").val();
|
||||
vvvvwbi(protocol_vvvvwbi,authentication_vvvvwbi);
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
|
||||
});
|
||||
|
||||
|
@ -57,7 +57,7 @@ class ComponentbuilderViewServer extends JViewLegacy
|
||||
}
|
||||
|
||||
// Get Linked view data
|
||||
$this->waplinked_components = $this->get('Waplinked_components');
|
||||
$this->wawlinked_components = $this->get('Wawlinked_components');
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
|
@ -1,15 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="3.2" method="upgrade">
|
||||
<name>COM_COMPONENTBUILDER</name>
|
||||
<creationDate>27th April, 2019</creationDate>
|
||||
<creationDate>2nd May, 2019</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
||||
<copyright>Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||
<version>2.9.15</version>
|
||||
<version>2.9.16</version>
|
||||
<description><![CDATA[
|
||||
<h1>Component Builder (v.2.9.15)</h1>
|
||||
<h1>Component Builder (v.2.9.16)</h1>
|
||||
<div style="clear: both;"></div>
|
||||
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
||||
|
||||
|
@ -636,7 +636,24 @@
|
||||
<version>2.9.15</version>
|
||||
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.9.15/JCB_v2.9.15.zip</downloadurl>
|
||||
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.9.16/JCB_v2.9.16.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>stable</tag>
|
||||
</tags>
|
||||
<maintainer>Llewellyn van der Merwe</maintainer>
|
||||
<maintainerurl>http://www.joomlacomponentbuilder.com</maintainerurl>
|
||||
<targetplatform name="joomla" version="3.*"/>
|
||||
</update>
|
||||
<update>
|
||||
<name>Component Builder</name>
|
||||
<description>Builds Complex Joomla Components</description>
|
||||
<element>com_componentbuilder</element>
|
||||
<type>component</type>
|
||||
<version>2.9.16</version>
|
||||
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.9.16/JCB_v2.9.16.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>stable</tag>
|
||||
|
10
script.php
10
script.php
@ -3848,9 +3848,9 @@ class com_componentbuilderInstallerScript
|
||||
$fieldtype->type_title = 'Componentbuilder Fieldtype';
|
||||
$fieldtype->type_alias = 'com_componentbuilder.fieldtype';
|
||||
$fieldtype->table = '{"special": {"dbtable": "#__componentbuilder_fieldtype","key": "id","type": "Fieldtype","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
|
||||
$fieldtype->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "catid","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","short_description":"short_description"}}';
|
||||
$fieldtype->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "catid","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","null_switch":"null_switch","indexes":"indexes","datadefault_other":"datadefault_other","datadefault":"datadefault","datalenght_other":"datalenght_other","datalenght":"datalenght","short_description":"short_description","has_defaults":"has_defaults","not_required":"not_required","description":"description","store":"store","datatype":"datatype"}}';
|
||||
$fieldtype->router = 'ComponentbuilderHelperRoute::getFieldtypeRoute';
|
||||
$fieldtype->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/fieldtype.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","catid"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
|
||||
$fieldtype->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/fieldtype.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","has_defaults","store","catid"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
|
||||
|
||||
// Set the object into the content types table.
|
||||
$fieldtype_Inserted = $db->insertObject('#__content_types', $fieldtype);
|
||||
@ -4556,9 +4556,9 @@ class com_componentbuilderInstallerScript
|
||||
$fieldtype->type_title = 'Componentbuilder Fieldtype';
|
||||
$fieldtype->type_alias = 'com_componentbuilder.fieldtype';
|
||||
$fieldtype->table = '{"special": {"dbtable": "#__componentbuilder_fieldtype","key": "id","type": "Fieldtype","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
|
||||
$fieldtype->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "catid","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","short_description":"short_description"}}';
|
||||
$fieldtype->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "catid","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","null_switch":"null_switch","indexes":"indexes","datadefault_other":"datadefault_other","datadefault":"datadefault","datalenght_other":"datalenght_other","datalenght":"datalenght","short_description":"short_description","has_defaults":"has_defaults","not_required":"not_required","description":"description","store":"store","datatype":"datatype"}}';
|
||||
$fieldtype->router = 'ComponentbuilderHelperRoute::getFieldtypeRoute';
|
||||
$fieldtype->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/fieldtype.xml","hideFields": ["asset_id","checked_out","checked_out_time","version"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","catid"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
|
||||
$fieldtype->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/fieldtype.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","has_defaults","store","catid"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
|
||||
|
||||
// Check if fieldtype type is already in content_type DB.
|
||||
$fieldtype_id = null;
|
||||
@ -5426,7 +5426,7 @@ class com_componentbuilderInstallerScript
|
||||
echo '<a target="_blank" href="http://www.joomlacomponentbuilder.com" title="Component Builder">
|
||||
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
||||
</a>
|
||||
<h3>Upgrade to Version 2.9.15 Was Successful! Let us know if anything is not working as expected.</h3>';
|
||||
<h3>Upgrade to Version 2.9.16 Was Successful! Let us know if anything is not working as expected.</h3>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1405,7 +1405,13 @@ abstract class ComponentbuilderHelper
|
||||
}
|
||||
|
||||
|
||||
public static function getFieldOptions($value, $type, $settings = array(), $xml = null)
|
||||
/**
|
||||
* get field options
|
||||
*
|
||||
* @return array on success
|
||||
*
|
||||
*/
|
||||
public static function getFieldOptions($value, $type, $settings = array(), $xml = null, $db_defaults = false)
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
@ -1413,6 +1419,11 @@ abstract class ComponentbuilderHelper
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('properties', 'short_description', 'description')));
|
||||
// load database default values
|
||||
if ($db_defaults)
|
||||
{
|
||||
$query->select($db->quoteName(array('datadefault', 'datadefault_other', 'datalenght', 'datalenght_other', 'datatype', 'has_defaults', 'indexes', 'null_switch', 'store')));
|
||||
}
|
||||
$query->from($db->quoteName('#__componentbuilder_fieldtype'));
|
||||
$query->where($db->quoteName('published') . ' = 1');
|
||||
$query->where($db->quoteName($type) . ' = '. $value);
|
||||
@ -1525,6 +1536,20 @@ abstract class ComponentbuilderHelper
|
||||
}
|
||||
$field['values'] .= PHP_EOL . "/>";
|
||||
$field['values_description'] .= '</tbody></table>';
|
||||
// load the database defaults if set and wanted
|
||||
if ($db_defaults && isset($result->has_defaults) && $result->has_defaults == 1)
|
||||
{
|
||||
$field['database'] = array(
|
||||
'datatype' => $result->datatype,
|
||||
'datadefault' => $result->datadefault,
|
||||
'datadefault_other' => $result->datadefault_other,
|
||||
'datalenght' => $result->datalenght,
|
||||
'datalenght_other' => $result->datalenght_other,
|
||||
'indexes' => $result->indexes,
|
||||
'null_switch' => $result->null_switch,
|
||||
'store' => $result->store
|
||||
);
|
||||
}
|
||||
// return found field options
|
||||
return $field;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user