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

This commit is contained in:
2019-01-29 16:43:27 +02:00
parent 3abae0494e
commit 018eed3054
26 changed files with 2547 additions and 2146 deletions

View File

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

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

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

View File

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