Major code formate to try and set a standared. Added four new fields for JavaScript files

This commit is contained in:
2017-12-15 01:10:47 +02:00
parent c9cad158e6
commit d3cbea5c82
172 changed files with 14538 additions and 14358 deletions

View File

@ -34,16 +34,16 @@ jimport('joomla.application.component.modellist');
*/
class ComponentbuilderModelCompiler extends JModelList
{
/**
/**
* Model user data.
*
* @var strings
* @var strings
*/
protected $user;
protected $userId;
protected $guest;
protected $groups;
protected $levels;
protected $user;
protected $userId;
protected $guest;
protected $groups;
protected $levels;
protected $app;
protected $input;
protected $uikitComp;
@ -55,14 +55,14 @@ class ComponentbuilderModelCompiler extends JModelList
*/
protected function getListQuery()
{
// Get the current user for authorisation checks
$this->user = JFactory::getUser();
// Get the current user for authorisation checks
$this->user = JFactory::getUser();
$this->userId = $this->user->get('id');
$this->guest = $this->user->get('guest');
$this->groups = $this->user->get('groups');
$this->authorisedGroups = $this->user->getAuthorisedGroups();
$this->groups = $this->user->get('groups');
$this->authorisedGroups = $this->user->getAuthorisedGroups();
$this->levels = $this->user->getAuthorisedViewLevels();
$this->app = JFactory::getApplication();
$this->app = JFactory::getApplication();
$this->input = $this->app->input;
$this->initSet = true;
// Make sure all records load, since no pagination allowed.
@ -94,16 +94,16 @@ class ComponentbuilderModelCompiler extends JModelList
*/
public function getItems()
{
$user = JFactory::getUser();
// check if this user has permission to access items
if (!$user->authorise('compiler.access', 'com_componentbuilder'))
{
$user = JFactory::getUser();
// check if this user has permission to access items
if (!$user->authorise('compiler.access', 'com_componentbuilder'))
{
$app = JFactory::getApplication();
$app->enqueueMessage(JText::_('Not authorised!'), 'error');
// redirect away if not a correct (TODO for now we go to default view)
$app->redirect('index.php?option=com_componentbuilder');
return false;
}
}
// load parent items
$items = parent::getItems();

View File

@ -103,14 +103,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->libraries = $libraries->toArray();
}
if (!empty($item->custom_button))
{
// Convert the custom_button field to an array.
$custom_button = new Registry;
$custom_button->loadString($item->custom_button);
$item->custom_button = $custom_button->toArray();
}
if (!empty($item->custom_get))
{
// Convert the custom_get field to an array.
@ -119,6 +111,14 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->custom_get = $custom_get->toArray();
}
if (!empty($item->custom_button))
{
// Convert the custom_button field to an array.
$custom_button = new Registry;
$custom_button->loadString($item->custom_button);
$item->custom_button = $custom_button->toArray();
}
if (!empty($item->php_controller))
{
// base64 Decode php_controller.
@ -137,6 +137,30 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->php_model = base64_decode($item->php_model);
}
if (!empty($item->js_document))
{
// base64 Decode js_document.
$item->js_document = base64_decode($item->js_document);
}
if (!empty($item->javascript_file))
{
// base64 Decode javascript_file.
$item->javascript_file = base64_decode($item->javascript_file);
}
if (!empty($item->css_document))
{
// base64 Decode css_document.
$item->css_document = base64_decode($item->css_document);
}
if (!empty($item->css))
{
// base64 Decode css.
$item->css = base64_decode($item->css);
}
if (!empty($item->php_document))
{
// base64 Decode php_document.
@ -161,24 +185,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->php_jview = base64_decode($item->php_jview);
}
if (!empty($item->js_document))
{
// base64 Decode js_document.
$item->js_document = base64_decode($item->js_document);
}
if (!empty($item->css_document))
{
// base64 Decode css_document.
$item->css_document = base64_decode($item->css_document);
}
if (!empty($item->css))
{
// base64 Decode css.
$item->css = base64_decode($item->css);
}
// check what type of custom_button array we have here (should be subform... but just incase)
// This could happen due to huge data sets
if (isset($item->custom_button) && isset($item->custom_button['name']))
@ -939,19 +945,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['libraries'] = '';
}
// Set the custom_button items to data.
if (isset($data['custom_button']) && is_array($data['custom_button']))
{
$custom_button = new JRegistry;
$custom_button->loadArray($data['custom_button']);
$data['custom_button'] = (string) $custom_button;
}
elseif (!isset($data['custom_button']))
{
// Set the empty custom_button to data
$data['custom_button'] = '';
}
// Set the custom_get items to data.
if (isset($data['custom_get']) && is_array($data['custom_get']))
{
@ -965,6 +958,19 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['custom_get'] = '';
}
// Set the custom_button items to data.
if (isset($data['custom_button']) && is_array($data['custom_button']))
{
$custom_button = new JRegistry;
$custom_button->loadArray($data['custom_button']);
$data['custom_button'] = (string) $custom_button;
}
elseif (!isset($data['custom_button']))
{
// Set the empty custom_button to data
$data['custom_button'] = '';
}
// Set the php_controller string to base64 string.
if (isset($data['php_controller']))
{
@ -983,6 +989,30 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['php_model'] = base64_encode($data['php_model']);
}
// Set the js_document string to base64 string.
if (isset($data['js_document']))
{
$data['js_document'] = base64_encode($data['js_document']);
}
// Set the javascript_file string to base64 string.
if (isset($data['javascript_file']))
{
$data['javascript_file'] = base64_encode($data['javascript_file']);
}
// Set the css_document string to base64 string.
if (isset($data['css_document']))
{
$data['css_document'] = base64_encode($data['css_document']);
}
// Set the css string to base64 string.
if (isset($data['css']))
{
$data['css'] = base64_encode($data['css']);
}
// Set the php_document string to base64 string.
if (isset($data['php_document']))
{
@ -1005,24 +1035,6 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
if (isset($data['php_jview']))
{
$data['php_jview'] = base64_encode($data['php_jview']);
}
// Set the js_document string to base64 string.
if (isset($data['js_document']))
{
$data['js_document'] = base64_encode($data['js_document']);
}
// Set the css_document string to base64 string.
if (isset($data['css_document']))
{
$data['css_document'] = base64_encode($data['css_document']);
}
// Set the css string to base64 string.
if (isset($data['css']))
{
$data['css'] = base64_encode($data['css']);
}
// Set the Params Items to data

View File

@ -272,6 +272,14 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
$item->default = base64_decode($item->default);
// decode php_model
$item->php_model = base64_decode($item->php_model);
// decode js_document
$item->js_document = base64_decode($item->js_document);
// decode javascript_file
$item->javascript_file = base64_decode($item->javascript_file);
// decode css_document
$item->css_document = base64_decode($item->css_document);
// decode css
$item->css = base64_decode($item->css);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_view
@ -280,12 +288,6 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
$item->php_jview_display = base64_decode($item->php_jview_display);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode js_document
$item->js_document = base64_decode($item->js_document);
// decode css_document
$item->css_document = base64_decode($item->css_document);
// decode css
$item->css = base64_decode($item->css);
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);

View File

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

View File

@ -30,8 +30,9 @@ jform_vvvvvydvxy_required = false;
jform_vvvvvyevxz_required = false;
jform_vvvvvyfvya_required = false;
jform_vvvvvygvyb_required = false;
jform_vvvvvygvyc_required = false;
jform_vvvvvyhvyc_required = false;
jform_vvvvvyhvyd_required = false;
jform_vvvvvyivye_required = false;
// Initial Script
jQuery(document).ready(function()
@ -51,14 +52,17 @@ jQuery(document).ready(function()
var add_css_document_vvvvvye = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvye(add_css_document_vvvvvye);
var add_js_document_vvvvvyf = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyf(add_js_document_vvvvvyf);
var add_javascript_file_vvvvvyf = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvyf(add_javascript_file_vvvvvyf);
var add_custom_button_vvvvvyg = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyg(add_custom_button_vvvvvyg);
var add_js_document_vvvvvyg = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyg(add_js_document_vvvvvyg);
var add_css_vvvvvyh = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyh(add_css_vvvvvyh);
var add_custom_button_vvvvvyh = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyh(add_custom_button_vvvvvyh);
var add_css_vvvvvyi = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyi(add_css_vvvvvyi);
});
// the vvvvvya function
@ -217,61 +221,92 @@ function vvvvvye(add_css_document_vvvvvye)
}
// the vvvvvyf function
function vvvvvyf(add_js_document_vvvvvyf)
function vvvvvyf(add_javascript_file_vvvvvyf)
{
// set the function logic
if (add_js_document_vvvvvyf == 1)
if (add_javascript_file_vvvvvyf == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
jQuery('#jform_javascript_file').closest('.control-group').show();
if (jform_vvvvvyfvya_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
updateFieldRequired('javascript_file',0);
jQuery('#jform_javascript_file').prop('required','required');
jQuery('#jform_javascript_file').attr('aria-required',true);
jQuery('#jform_javascript_file').addClass('required');
jform_vvvvvyfvya_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
jQuery('#jform_javascript_file').closest('.control-group').hide();
if (!jform_vvvvvyfvya_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
updateFieldRequired('javascript_file',1);
jQuery('#jform_javascript_file').removeAttr('required');
jQuery('#jform_javascript_file').removeAttr('aria-required');
jQuery('#jform_javascript_file').removeClass('required');
jform_vvvvvyfvya_required = true;
}
}
}
// the vvvvvyg function
function vvvvvyg(add_custom_button_vvvvvyg)
function vvvvvyg(add_js_document_vvvvvyg)
{
// set the function logic
if (add_custom_button_vvvvvyg == 1)
if (add_js_document_vvvvvyg == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvygvyb_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
jform_vvvvvygvyb_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvygvyb_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
jform_vvvvvygvyb_required = true;
}
}
}
// the vvvvvyh function
function vvvvvyh(add_custom_button_vvvvvyh)
{
// set the function logic
if (add_custom_button_vvvvvyh == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_vvvvvygvyb_required)
if (jform_vvvvvyhvyc_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
jform_vvvvvygvyb_required = false;
jform_vvvvvyhvyc_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_vvvvvygvyc_required)
if (jform_vvvvvyhvyd_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
jform_vvvvvygvyc_required = false;
jform_vvvvvyhvyd_required = false;
}
}
@ -279,53 +314,53 @@ function vvvvvyg(add_custom_button_vvvvvyg)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_vvvvvygvyb_required)
if (!jform_vvvvvyhvyc_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
jform_vvvvvygvyb_required = true;
jform_vvvvvyhvyc_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_vvvvvygvyc_required)
if (!jform_vvvvvyhvyd_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
jform_vvvvvygvyc_required = true;
jform_vvvvvyhvyd_required = true;
}
}
}
// the vvvvvyh function
function vvvvvyh(add_css_vvvvvyh)
// the vvvvvyi function
function vvvvvyi(add_css_vvvvvyi)
{
// set the function logic
if (add_css_vvvvvyh == 1)
if (add_css_vvvvvyi == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_vvvvvyhvyd_required)
if (jform_vvvvvyivye_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_vvvvvyhvyd_required = false;
jform_vvvvvyivye_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_vvvvvyhvyd_required)
if (!jform_vvvvvyivye_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_vvvvvyhvyd_required = true;
jform_vvvvvyivye_required = true;
}
}
}

View File

@ -138,30 +138,10 @@
multiple="false"
required="false"
button="true" />
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_libraries_selection"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION"
heading="h4"
class="alert alert-info note_libraries_selection" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_language_string"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION"
heading="h4"
class="note_add_language_string" />
<!-- Icon Field. Type: Media. (joomla)-->
<field type="media"
name="icon"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
directory="" />
<!-- Add_php_jview Field. Type: Radio. (joomla)-->
<!-- Add_css_document Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_jview"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_LABEL"
name="add_css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -169,10 +149,16 @@
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Add_css_document Field. Type: Radio. (joomla)-->
<!-- Icon Field. Type: Media. (joomla)-->
<field type="media"
name="icon"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
directory="" />
<!-- Add_js_document Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_DOCUMENT_LABEL"
name="add_js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -191,6 +177,31 @@
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_language_string"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION"
heading="h4"
class="note_add_language_string" />
<!-- Add_php_jview_display Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_libraries_selection"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION"
heading="h4"
class="alert alert-info note_libraries_selection" />
<!-- Libraries Field. Type: Libraries. (custom)-->
<field type="libraries"
name="libraries"
@ -201,10 +212,27 @@
default="0"
required="false"
button="true" />
<!-- Add_php_jview_display Field. Type: Radio. (joomla)-->
<!-- Add_css Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
name="add_css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_uikit_snippet"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL"
heading="h4"
class="snippet-code note_uikit_snippet" />
<!-- Add_php_view Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -223,27 +251,10 @@
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT"
required="false" />
<!-- Add_js_document Field. Type: Radio. (joomla)-->
<!-- Add_php_jview Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_uikit_snippet"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL"
heading="h4"
class="snippet-code note_uikit_snippet" />
<!-- Add_css Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_LABEL"
name="add_php_jview"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -257,6 +268,159 @@
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL"
heading="h4"
class="snippet-usage note_snippet_usage" />
<!-- Default Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="default"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_HINT"
required="true" />
<!-- Php_model Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_model"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
required="false" />
<!-- Add_javascript_file Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_javascript_file"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Js_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_HINT"
required="true" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Javascript_file Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="javascript_file"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_HINT"
required="true" />
<!-- Custom_get Field. Type: Customgets. (custom)-->
<field type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true" />
<!-- Css_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT"
required="true" />
<!-- Main_get Field. Type: Maingets. (custom)-->
<field type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="true"
button="true" />
<!-- Css Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_HINT"
required="true" />
<!-- Dynamic_get Field. Type: Dynamicgets. (custom)-->
<field type="dynamicgets"
name="dynamic_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false" />
<!-- Php_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT"
required="true" />
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="dynamic_values"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_DESCRIPTION"
heading="h4"
class="dynamic_values" />
<!-- Php_view Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
required="true" />
<!-- Add_custom_button Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_custom_button"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Php_jview_display Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true" />
<!-- Custom_button Field. Type: Subform. (joomla)-->
<field type="subform"
name="custom_button"
@ -544,89 +708,6 @@
</field>
</form>
</field>
<!-- Default Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="default"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_HINT"
required="true" />
<!-- Php_model Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_model"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
required="false" />
<!-- Add_php_view Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Php_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT"
required="true" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Php_view Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
required="true" />
<!-- Custom_get Field. Type: Customgets. (custom)-->
<field type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true" />
<!-- Php_jview_display Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true" />
<!-- Main_get Field. Type: Maingets. (custom)-->
<field type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="true"
button="true" />
<!-- Php_jview Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_jview"
@ -638,64 +719,6 @@
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT"
required="true" />
<!-- Dynamic_get Field. Type: Dynamicgets. (custom)-->
<field type="dynamicgets"
name="dynamic_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false" />
<!-- Js_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_HINT"
required="true" />
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="dynamic_values"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_DESCRIPTION"
heading="h4"
class="dynamic_values" />
<!-- Css_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT"
required="true" />
<!-- Add_custom_button Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_custom_button"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Css Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_HINT"
required="true" />
</fieldset>
<!-- Access Control Fields. -->

View File

@ -23,43 +23,43 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvzqvzi_required = false;
jform_vvvvvzrvzj_required = false;
jform_vvvvvzrvzk_required = false;
jform_vvvvvzrvzl_required = false;
jform_vvvvvzsvzk_required = false;
jform_vvvvvztvzl_required = false;
jform_vvvvvztvzm_required = false;
jform_vvvvvztvzn_required = false;
// Initial Script
jQuery(document).ready(function()
{
var target_vvvvvzq = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzq(target_vvvvvzq);
var target_vvvvvzr = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzr(target_vvvvvzr);
var target_vvvvvzs = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzs = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzs(target_vvvvvzs,type_vvvvvzs);
vvvvvzs(target_vvvvvzs);
var type_vvvvvzt = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzt = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzt(type_vvvvvzt,target_vvvvvzt);
vvvvvzt(target_vvvvvzt);
var target_vvvvvzu = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzu = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzu(target_vvvvvzu,type_vvvvvzu);
var type_vvvvvzv = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzv = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzv(type_vvvvvzv,target_vvvvvzv);
});
// the vvvvvzq function
function vvvvvzq(target_vvvvvzq)
// the vvvvvzs function
function vvvvvzs(target_vvvvvzs)
{
// set the function logic
if (target_vvvvvzq == 2)
if (target_vvvvvzs == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
if (jform_vvvvvzqvzi_required)
if (jform_vvvvvzsvzk_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_vvvvvzqvzi_required = false;
jform_vvvvvzsvzk_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
@ -68,99 +68,99 @@ function vvvvvzq(target_vvvvvzq)
else
{
jQuery('#jform_function_name').closest('.control-group').hide();
if (!jform_vvvvvzqvzi_required)
if (!jform_vvvvvzsvzk_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_vvvvvzqvzi_required = true;
jform_vvvvvzsvzk_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
// the vvvvvzr function
function vvvvvzr(target_vvvvvzr)
// the vvvvvzt function
function vvvvvzt(target_vvvvvzt)
{
// set the function logic
if (target_vvvvvzr == 1)
if (target_vvvvvzt == 1)
{
jQuery('#jform_component').closest('.control-group').show();
if (jform_vvvvvzrvzj_required)
if (jform_vvvvvztvzl_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
jform_vvvvvzrvzj_required = false;
jform_vvvvvztvzl_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvvzrvzk_required)
if (jform_vvvvvztvzm_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvvzrvzk_required = false;
jform_vvvvvztvzm_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();
if (jform_vvvvvzrvzl_required)
if (jform_vvvvvztvzn_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
jform_vvvvvzrvzl_required = false;
jform_vvvvvztvzn_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
if (!jform_vvvvvzrvzj_required)
if (!jform_vvvvvztvzl_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
jform_vvvvvzrvzj_required = true;
jform_vvvvvztvzl_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvvzrvzk_required)
if (!jform_vvvvvztvzm_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvvzrvzk_required = true;
jform_vvvvvztvzm_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();
if (!jform_vvvvvzrvzl_required)
if (!jform_vvvvvztvzn_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
jform_vvvvvzrvzl_required = true;
jform_vvvvvztvzn_required = true;
}
}
}
// the vvvvvzs function
function vvvvvzs(target_vvvvvzs,type_vvvvvzs)
// the vvvvvzu function
function vvvvvzu(target_vvvvvzu,type_vvvvvzu)
{
// set the function logic
if (target_vvvvvzs == 1 && type_vvvvvzs == 1)
if (target_vvvvvzu == 1 && type_vvvvvzu == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@ -172,11 +172,11 @@ function vvvvvzs(target_vvvvvzs,type_vvvvvzs)
}
}
// the vvvvvzt function
function vvvvvzt(type_vvvvvzt,target_vvvvvzt)
// the vvvvvzv function
function vvvvvzv(type_vvvvvzv,target_vvvvvzv)
{
// set the function logic
if (type_vvvvvzt == 1 && target_vvvvvzt == 1)
if (type_vvvvvzv == 1 && target_vvvvvzv == 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

@ -23,210 +23,96 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvwacvzo_required = false;
jform_vvvvwadvzp_required = false;
jform_vvvvwaevzq_required = false;
jform_vvvvwafvzr_required = false;
jform_vvvvwaivzs_required = false;
jform_vvvvwajvzt_required = false;
jform_vvvvwagvzs_required = false;
jform_vvvvwahvzt_required = false;
jform_vvvvwakvzu_required = false;
jform_vvvvwalvzv_required = false;
jform_vvvvwamvzw_required = false;
jform_vvvvwanvzx_required = false;
// Initial Script
jQuery(document).ready(function()
{
var datalenght_vvvvwac = jQuery("#jform_datalenght").val();
vvvvwac(datalenght_vvvvwac);
var datalenght_vvvvwae = jQuery("#jform_datalenght").val();
vvvvwae(datalenght_vvvvwae);
var datadefault_vvvvwad = jQuery("#jform_datadefault").val();
vvvvwad(datadefault_vvvvwad);
var datadefault_vvvvwaf = jQuery("#jform_datadefault").val();
vvvvwaf(datadefault_vvvvwaf);
var datatype_vvvvwae = jQuery("#jform_datatype").val();
vvvvwae(datatype_vvvvwae);
var datatype_vvvvwaf = jQuery("#jform_datatype").val();
vvvvwaf(datatype_vvvvwaf);
var store_vvvvwag = jQuery("#jform_store").val();
var datatype_vvvvwag = jQuery("#jform_datatype").val();
vvvvwag(store_vvvvwag,datatype_vvvvwag);
vvvvwag(datatype_vvvvwag);
var add_css_view_vvvvwai = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwai(add_css_view_vvvvwai);
var datatype_vvvvwah = jQuery("#jform_datatype").val();
vvvvwah(datatype_vvvvwah);
var add_css_views_vvvvwaj = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwaj(add_css_views_vvvvwaj);
var store_vvvvwai = jQuery("#jform_store").val();
var datatype_vvvvwai = jQuery("#jform_datatype").val();
vvvvwai(store_vvvvwai,datatype_vvvvwai);
var add_javascript_view_footer_vvvvwak = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwak(add_javascript_view_footer_vvvvwak);
var add_css_view_vvvvwak = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwak(add_css_view_vvvvwak);
var add_javascript_views_footer_vvvvwal = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwal(add_javascript_views_footer_vvvvwal);
var add_css_views_vvvvwal = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwal(add_css_views_vvvvwal);
var add_javascript_view_footer_vvvvwam = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwam(add_javascript_view_footer_vvvvwam);
var add_javascript_views_footer_vvvvwan = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwan(add_javascript_views_footer_vvvvwan);
});
// the vvvvwac function
function vvvvwac(datalenght_vvvvwac)
// the vvvvwae function
function vvvvwae(datalenght_vvvvwae)
{
if (isSet(datalenght_vvvvwac) && datalenght_vvvvwac.constructor !== Array)
if (isSet(datalenght_vvvvwae) && datalenght_vvvvwae.constructor !== Array)
{
var temp_vvvvwac = datalenght_vvvvwac;
var datalenght_vvvvwac = [];
datalenght_vvvvwac.push(temp_vvvvwac);
var temp_vvvvwae = datalenght_vvvvwae;
var datalenght_vvvvwae = [];
datalenght_vvvvwae.push(temp_vvvvwae);
}
else if (!isSet(datalenght_vvvvwac))
else if (!isSet(datalenght_vvvvwae))
{
var datalenght_vvvvwac = [];
var datalenght_vvvvwae = [];
}
var datalenght = datalenght_vvvvwac.some(datalenght_vvvvwac_SomeFunc);
var datalenght = datalenght_vvvvwae.some(datalenght_vvvvwae_SomeFunc);
// set this function logic
if (datalenght)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
if (jform_vvvvwacvzo_required)
if (jform_vvvvwaevzq_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_vvvvwacvzo_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
if (!jform_vvvvwacvzo_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_vvvvwacvzo_required = true;
}
}
}
// the vvvvwac Some function
function datalenght_vvvvwac_SomeFunc(datalenght_vvvvwac)
{
// set the function logic
if (datalenght_vvvvwac == 'Other')
{
return true;
}
return false;
}
// the vvvvwad function
function vvvvwad(datadefault_vvvvwad)
{
if (isSet(datadefault_vvvvwad) && datadefault_vvvvwad.constructor !== Array)
{
var temp_vvvvwad = datadefault_vvvvwad;
var datadefault_vvvvwad = [];
datadefault_vvvvwad.push(temp_vvvvwad);
}
else if (!isSet(datadefault_vvvvwad))
{
var datadefault_vvvvwad = [];
}
var datadefault = datadefault_vvvvwad.some(datadefault_vvvvwad_SomeFunc);
// set this function logic
if (datadefault)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvwadvzp_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_vvvvwadvzp_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvwadvzp_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_vvvvwadvzp_required = true;
}
}
}
// the vvvvwad Some function
function datadefault_vvvvwad_SomeFunc(datadefault_vvvvwad)
{
// set the function logic
if (datadefault_vvvvwad == 'Other')
{
return true;
}
return false;
}
// the vvvvwae function
function vvvvwae(datatype_vvvvwae)
{
if (isSet(datatype_vvvvwae) && datatype_vvvvwae.constructor !== Array)
{
var temp_vvvvwae = datatype_vvvvwae;
var datatype_vvvvwae = [];
datatype_vvvvwae.push(temp_vvvvwae);
}
else if (!isSet(datatype_vvvvwae))
{
var datatype_vvvvwae = [];
}
var datatype = datatype_vvvvwae.some(datatype_vvvvwae_SomeFunc);
// set this function logic
if (datatype)
{
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
if (jform_vvvvwaevzq_required)
{
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwaevzq_required = false;
}
}
else
{
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
jQuery('#jform_datalenght_other').closest('.control-group').hide();
if (!jform_vvvvwaevzq_required)
{
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('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_vvvvwaevzq_required = true;
}
}
}
// the vvvvwae Some function
function datatype_vvvvwae_SomeFunc(datatype_vvvvwae)
function datalenght_vvvvwae_SomeFunc(datalenght_vvvvwae)
{
// set the function logic
if (datatype_vvvvwae == 'CHAR' || datatype_vvvvwae == 'VARCHAR' || datatype_vvvvwae == 'DATETIME' || datatype_vvvvwae == 'DATE' || datatype_vvvvwae == 'TIME' || datatype_vvvvwae == 'INT' || datatype_vvvvwae == 'TINYINT' || datatype_vvvvwae == 'BIGINT' || datatype_vvvvwae == 'FLOAT' || datatype_vvvvwae == 'DECIMAL' || datatype_vvvvwae == 'DOUBLE')
if (datalenght_vvvvwae == 'Other')
{
return true;
}
@ -234,54 +120,54 @@ function datatype_vvvvwae_SomeFunc(datatype_vvvvwae)
}
// the vvvvwaf function
function vvvvwaf(datatype_vvvvwaf)
function vvvvwaf(datadefault_vvvvwaf)
{
if (isSet(datatype_vvvvwaf) && datatype_vvvvwaf.constructor !== Array)
if (isSet(datadefault_vvvvwaf) && datadefault_vvvvwaf.constructor !== Array)
{
var temp_vvvvwaf = datatype_vvvvwaf;
var datatype_vvvvwaf = [];
datatype_vvvvwaf.push(temp_vvvvwaf);
var temp_vvvvwaf = datadefault_vvvvwaf;
var datadefault_vvvvwaf = [];
datadefault_vvvvwaf.push(temp_vvvvwaf);
}
else if (!isSet(datatype_vvvvwaf))
else if (!isSet(datadefault_vvvvwaf))
{
var datatype_vvvvwaf = [];
var datadefault_vvvvwaf = [];
}
var datatype = datatype_vvvvwaf.some(datatype_vvvvwaf_SomeFunc);
var datadefault = datadefault_vvvvwaf.some(datadefault_vvvvwaf_SomeFunc);
// set this function logic
if (datatype)
if (datadefault)
{
jQuery('#jform_store').closest('.control-group').show();
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvwafvzr_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('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_vvvvwafvzr_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvwafvzr_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('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_vvvvwafvzr_required = true;
}
}
}
// the vvvvwaf Some function
function datatype_vvvvwaf_SomeFunc(datatype_vvvvwaf)
function datadefault_vvvvwaf_SomeFunc(datadefault_vvvvwaf)
{
// set the function logic
if (datatype_vvvvwaf == 'CHAR' || datatype_vvvvwaf == 'VARCHAR' || datatype_vvvvwaf == 'TEXT' || datatype_vvvvwaf == 'MEDIUMTEXT' || datatype_vvvvwaf == 'LONGTEXT')
if (datadefault_vvvvwaf == 'Other')
{
return true;
}
@ -289,20 +175,8 @@ function datatype_vvvvwaf_SomeFunc(datatype_vvvvwaf)
}
// the vvvvwag function
function vvvvwag(store_vvvvwag,datatype_vvvvwag)
function vvvvwag(datatype_vvvvwag)
{
if (isSet(store_vvvvwag) && store_vvvvwag.constructor !== Array)
{
var temp_vvvvwag = store_vvvvwag;
var store_vvvvwag = [];
store_vvvvwag.push(temp_vvvvwag);
}
else if (!isSet(store_vvvvwag))
{
var store_vvvvwag = [];
}
var store = store_vvvvwag.some(store_vvvvwag_SomeFunc);
if (isSet(datatype_vvvvwag) && datatype_vvvvwag.constructor !== Array)
{
var temp_vvvvwag = datatype_vvvvwag;
@ -316,6 +190,132 @@ function vvvvwag(store_vvvvwag,datatype_vvvvwag)
var datatype = datatype_vvvvwag.some(datatype_vvvvwag_SomeFunc);
// set this function logic
if (datatype)
{
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
if (jform_vvvvwagvzs_required)
{
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvwagvzs_required = false;
}
}
else
{
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
if (!jform_vvvvwagvzs_required)
{
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvwagvzs_required = true;
}
}
}
// the vvvvwag Some function
function datatype_vvvvwag_SomeFunc(datatype_vvvvwag)
{
// set the function logic
if (datatype_vvvvwag == 'CHAR' || datatype_vvvvwag == 'VARCHAR' || datatype_vvvvwag == 'DATETIME' || datatype_vvvvwag == 'DATE' || datatype_vvvvwag == 'TIME' || datatype_vvvvwag == 'INT' || datatype_vvvvwag == 'TINYINT' || datatype_vvvvwag == 'BIGINT' || datatype_vvvvwag == 'FLOAT' || datatype_vvvvwag == 'DECIMAL' || datatype_vvvvwag == 'DOUBLE')
{
return true;
}
return false;
}
// the vvvvwah function
function vvvvwah(datatype_vvvvwah)
{
if (isSet(datatype_vvvvwah) && datatype_vvvvwah.constructor !== Array)
{
var temp_vvvvwah = datatype_vvvvwah;
var datatype_vvvvwah = [];
datatype_vvvvwah.push(temp_vvvvwah);
}
else if (!isSet(datatype_vvvvwah))
{
var datatype_vvvvwah = [];
}
var datatype = datatype_vvvvwah.some(datatype_vvvvwah_SomeFunc);
// set this function logic
if (datatype)
{
jQuery('#jform_store').closest('.control-group').show();
if (jform_vvvvwahvzt_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvwahvzt_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_vvvvwahvzt_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvwahvzt_required = true;
}
}
}
// the vvvvwah Some function
function datatype_vvvvwah_SomeFunc(datatype_vvvvwah)
{
// set the function logic
if (datatype_vvvvwah == 'CHAR' || datatype_vvvvwah == 'VARCHAR' || datatype_vvvvwah == 'TEXT' || datatype_vvvvwah == 'MEDIUMTEXT' || datatype_vvvvwah == 'LONGTEXT')
{
return true;
}
return false;
}
// the vvvvwai function
function vvvvwai(store_vvvvwai,datatype_vvvvwai)
{
if (isSet(store_vvvvwai) && store_vvvvwai.constructor !== Array)
{
var temp_vvvvwai = store_vvvvwai;
var store_vvvvwai = [];
store_vvvvwai.push(temp_vvvvwai);
}
else if (!isSet(store_vvvvwai))
{
var store_vvvvwai = [];
}
var store = store_vvvvwai.some(store_vvvvwai_SomeFunc);
if (isSet(datatype_vvvvwai) && datatype_vvvvwai.constructor !== Array)
{
var temp_vvvvwai = datatype_vvvvwai;
var datatype_vvvvwai = [];
datatype_vvvvwai.push(temp_vvvvwai);
}
else if (!isSet(datatype_vvvvwai))
{
var datatype_vvvvwai = [];
}
var datatype = datatype_vvvvwai.some(datatype_vvvvwai_SomeFunc);
// set this function logic
if (store && datatype)
{
@ -327,148 +327,148 @@ function vvvvwag(store_vvvvwag,datatype_vvvvwag)
}
}
// the vvvvwag Some function
function store_vvvvwag_SomeFunc(store_vvvvwag)
// the vvvvwai Some function
function store_vvvvwai_SomeFunc(store_vvvvwai)
{
// set the function logic
if (store_vvvvwag == 4)
if (store_vvvvwai == 4)
{
return true;
}
return false;
}
// the vvvvwag Some function
function datatype_vvvvwag_SomeFunc(datatype_vvvvwag)
// the vvvvwai Some function
function datatype_vvvvwai_SomeFunc(datatype_vvvvwai)
{
// set the function logic
if (datatype_vvvvwag == 'CHAR' || datatype_vvvvwag == 'VARCHAR' || datatype_vvvvwag == 'TEXT' || datatype_vvvvwag == 'MEDIUMTEXT' || datatype_vvvvwag == 'LONGTEXT')
if (datatype_vvvvwai == 'CHAR' || datatype_vvvvwai == 'VARCHAR' || datatype_vvvvwai == 'TEXT' || datatype_vvvvwai == 'MEDIUMTEXT' || datatype_vvvvwai == 'LONGTEXT')
{
return true;
}
return false;
}
// the vvvvwai function
function vvvvwai(add_css_view_vvvvwai)
// the vvvvwak function
function vvvvwak(add_css_view_vvvvwak)
{
// set the function logic
if (add_css_view_vvvvwai == 1)
if (add_css_view_vvvvwak == 1)
{
jQuery('#jform_css_view').closest('.control-group').show();
if (jform_vvvvwaivzs_required)
if (jform_vvvvwakvzu_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_vvvvwaivzs_required = false;
}
}
else
{
jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_vvvvwaivzs_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_vvvvwaivzs_required = true;
}
}
}
// the vvvvwaj function
function vvvvwaj(add_css_views_vvvvwaj)
{
// set the function logic
if (add_css_views_vvvvwaj == 1)
{
jQuery('#jform_css_views').closest('.control-group').show();
if (jform_vvvvwajvzt_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_vvvvwajvzt_required = false;
}
}
else
{
jQuery('#jform_css_views').closest('.control-group').hide();
if (!jform_vvvvwajvzt_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_vvvvwajvzt_required = true;
}
}
}
// the vvvvwak function
function vvvvwak(add_javascript_view_footer_vvvvwak)
{
// set the function logic
if (add_javascript_view_footer_vvvvwak == 1)
{
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
if (jform_vvvvwakvzu_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_vvvvwakvzu_required = false;
}
}
else
{
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_vvvvwakvzu_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');
updateFieldRequired('css_view',1);
jQuery('#jform_css_view').removeAttr('required');
jQuery('#jform_css_view').removeAttr('aria-required');
jQuery('#jform_css_view').removeClass('required');
jform_vvvvwakvzu_required = true;
}
}
}
// the vvvvwal function
function vvvvwal(add_javascript_views_footer_vvvvwal)
function vvvvwal(add_css_views_vvvvwal)
{
// set the function logic
if (add_javascript_views_footer_vvvvwal == 1)
if (add_css_views_vvvvwal == 1)
{
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
jQuery('#jform_css_views').closest('.control-group').show();
if (jform_vvvvwalvzv_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');
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_vvvvwalvzv_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
jQuery('#jform_css_views').closest('.control-group').hide();
if (!jform_vvvvwalvzv_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_vvvvwalvzv_required = true;
}
}
}
// the vvvvwam function
function vvvvwam(add_javascript_view_footer_vvvvwam)
{
// set the function logic
if (add_javascript_view_footer_vvvvwam == 1)
{
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
if (jform_vvvvwamvzw_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_vvvvwamvzw_required = false;
}
}
else
{
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
if (!jform_vvvvwamvzw_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_vvvvwamvzw_required = true;
}
}
}
// the vvvvwan function
function vvvvwan(add_javascript_views_footer_vvvvwan)
{
// set the function logic
if (add_javascript_views_footer_vvvvwan == 1)
{
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
if (jform_vvvvwanvzx_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_vvvvwanvzx_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
if (!jform_vvvvwanvzx_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_vvvvwalvzv_required = true;
jform_vvvvwanvzx_required = true;
}
}
}

View File

@ -23,207 +23,97 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvwamvzy_required = false;
jform_vvvvwanvzz_required = false;
jform_vvvvwaowaa_required = false;
jform_vvvvwapwab_required = false;
jform_vvvvwaqwac_required = false;
jform_vvvvwarwad_required = false;
jform_vvvvwaswae_required = false;
jform_vvvvwatwaf_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_vvvvwam = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwam(location_vvvvwam);
var location_vvvvwao = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwao(location_vvvvwao);
var location_vvvvwan = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwan(location_vvvvwan);
var type_vvvvwao = jQuery("#jform_type").val();
vvvvwao(type_vvvvwao);
var type_vvvvwap = jQuery("#jform_type").val();
vvvvwap(type_vvvvwap);
var location_vvvvwap = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwap(location_vvvvwap);
var type_vvvvwaq = jQuery("#jform_type").val();
vvvvwaq(type_vvvvwaq);
var target_vvvvwar = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwar(target_vvvvwar);
var type_vvvvwar = jQuery("#jform_type").val();
vvvvwar(type_vvvvwar);
var type_vvvvwas = jQuery("#jform_type").val();
vvvvwas(type_vvvvwas);
var target_vvvvwat = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwat(target_vvvvwat);
});
// the vvvvwam function
function vvvvwam(location_vvvvwam)
// the vvvvwao function
function vvvvwao(location_vvvvwao)
{
// set the function logic
if (location_vvvvwam == 1)
if (location_vvvvwao == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
if (jform_vvvvwamvzy_required)
if (jform_vvvvwaowaa_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_vvvvwamvzy_required = false;
}
}
else
{
jQuery('#jform_admin_view').closest('.control-group').hide();
if (!jform_vvvvwamvzy_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_vvvvwamvzy_required = true;
}
}
}
// the vvvvwan function
function vvvvwan(location_vvvvwan)
{
// set the function logic
if (location_vvvvwan == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
if (jform_vvvvwanvzz_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_vvvvwanvzz_required = false;
}
}
else
{
jQuery('#jform_site_view').closest('.control-group').hide();
if (!jform_vvvvwanvzz_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_vvvvwanvzz_required = true;
}
}
}
// the vvvvwao function
function vvvvwao(type_vvvvwao)
{
if (isSet(type_vvvvwao) && type_vvvvwao.constructor !== Array)
{
var temp_vvvvwao = type_vvvvwao;
var type_vvvvwao = [];
type_vvvvwao.push(temp_vvvvwao);
}
else if (!isSet(type_vvvvwao))
{
var type_vvvvwao = [];
}
var type = type_vvvvwao.some(type_vvvvwao_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvwaowaa_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwaowaa_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
jQuery('#jform_admin_view').closest('.control-group').hide();
if (!jform_vvvvwaowaa_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('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_vvvvwaowaa_required = true;
}
}
}
// the vvvvwao Some function
function type_vvvvwao_SomeFunc(type_vvvvwao)
// the vvvvwap function
function vvvvwap(location_vvvvwap)
{
// set the function logic
if (type_vvvvwao == 3)
if (location_vvvvwap == 2)
{
return true;
}
return false;
}
// the vvvvwap function
function vvvvwap(type_vvvvwap)
{
if (isSet(type_vvvvwap) && type_vvvvwap.constructor !== Array)
{
var temp_vvvvwap = type_vvvvwap;
var type_vvvvwap = [];
type_vvvvwap.push(temp_vvvvwap);
}
else if (!isSet(type_vvvvwap))
{
var type_vvvvwap = [];
}
var type = type_vvvvwap.some(type_vvvvwap_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
jQuery('#jform_site_view').closest('.control-group').show();
if (jform_vvvvwapwab_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('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_vvvvwapwab_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
jQuery('#jform_site_view').closest('.control-group').hide();
if (!jform_vvvvwapwab_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('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_vvvvwapwab_required = true;
}
}
}
// the vvvvwap Some function
function type_vvvvwap_SomeFunc(type_vvvvwap)
{
// set the function logic
if (type_vvvvwap == 1)
{
return true;
}
return false;
}
// the vvvvwaq function
function vvvvwaq(type_vvvvwaq)
{
@ -243,26 +133,26 @@ function vvvvwaq(type_vvvvwaq)
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvwaqwac_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwaqwac_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_vvvvwaqwac_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwaqwac_required = true;
}
}
@ -272,7 +162,7 @@ function vvvvwaq(type_vvvvwaq)
function type_vvvvwaq_SomeFunc(type_vvvvwaq)
{
// set the function logic
if (type_vvvvwaq == 2)
if (type_vvvvwaq == 3)
{
return true;
}
@ -280,32 +170,142 @@ function type_vvvvwaq_SomeFunc(type_vvvvwaq)
}
// the vvvvwar function
function vvvvwar(target_vvvvwar)
function vvvvwar(type_vvvvwar)
{
// set the function logic
if (target_vvvvwar == 1)
if (isSet(type_vvvvwar) && type_vvvvwar.constructor !== Array)
{
jQuery('#jform_groups').closest('.control-group').show();
var temp_vvvvwar = type_vvvvwar;
var type_vvvvwar = [];
type_vvvvwar.push(temp_vvvvwar);
}
else if (!isSet(type_vvvvwar))
{
var type_vvvvwar = [];
}
var type = type_vvvvwar.some(type_vvvvwar_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_vvvvwarwad_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwarwad_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_vvvvwarwad_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwarwad_required = true;
}
}
}
// the vvvvwar Some function
function type_vvvvwar_SomeFunc(type_vvvvwar)
{
// set the function logic
if (type_vvvvwar == 1)
{
return true;
}
return false;
}
// the vvvvwas function
function vvvvwas(type_vvvvwas)
{
if (isSet(type_vvvvwas) && type_vvvvwas.constructor !== Array)
{
var temp_vvvvwas = type_vvvvwas;
var type_vvvvwas = [];
type_vvvvwas.push(temp_vvvvwas);
}
else if (!isSet(type_vvvvwas))
{
var type_vvvvwas = [];
}
var type = type_vvvvwas.some(type_vvvvwas_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_vvvvwaswae_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvwaswae_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_vvvvwaswae_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvwaswae_required = true;
}
}
}
// the vvvvwas Some function
function type_vvvvwas_SomeFunc(type_vvvvwas)
{
// set the function logic
if (type_vvvvwas == 2)
{
return true;
}
return false;
}
// the vvvvwat function
function vvvvwat(target_vvvvwat)
{
// set the function logic
if (target_vvvvwat == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
if (jform_vvvvwatwaf_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_vvvvwatwaf_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_vvvvwatwaf_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_vvvvwarwad_required = true;
jform_vvvvwatwaf_required = true;
}
}
}

View File

@ -23,42 +23,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvytvyp_required = false;
jform_vvvvvyvvyr_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyt(add_php_view_vvvvvyt);
var add_php_view_vvvvvyv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyv(add_php_view_vvvvvyv);
});
// the vvvvvyt function
function vvvvvyt(add_php_view_vvvvvyt)
// the vvvvvyv function
function vvvvvyv(add_php_view_vvvvvyv)
{
// set the function logic
if (add_php_view_vvvvvyt == 1)
if (add_php_view_vvvvvyv == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvytvyp_required)
if (jform_vvvvvyvvyr_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvytvyp_required = false;
jform_vvvvvyvvyr_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvytvyp_required)
if (!jform_vvvvvyvvyr_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvytvyp_required = true;
jform_vvvvvyvvyr_required = true;
}
}
}

View File

@ -23,18 +23,12 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvzvvzm_required = false;
jform_vvvvwabvzn_required = false;
jform_vvvvvzxvzo_required = false;
jform_vvvvwadvzp_required = false;
// Initial Script
jQuery(document).ready(function()
{
var how_vvvvvzu = jQuery("#jform_how").val();
vvvvvzu(how_vvvvvzu);
var how_vvvvvzv = jQuery("#jform_how").val();
vvvvvzv(how_vvvvvzv);
var how_vvvvvzw = jQuery("#jform_how").val();
vvvvvzw(how_vvvvvzw);
@ -50,103 +44,16 @@ jQuery(document).ready(function()
var how_vvvvwaa = jQuery("#jform_how").val();
vvvvwaa(how_vvvvwaa);
var type_vvvvwab = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwab(type_vvvvwab);
var how_vvvvwab = jQuery("#jform_how").val();
vvvvwab(how_vvvvwab);
var how_vvvvwac = jQuery("#jform_how").val();
vvvvwac(how_vvvvwac);
var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val();
vvvvwad(type_vvvvwad);
});
// the vvvvvzu function
function vvvvvzu(how_vvvvvzu)
{
if (isSet(how_vvvvvzu) && how_vvvvvzu.constructor !== Array)
{
var temp_vvvvvzu = how_vvvvvzu;
var how_vvvvvzu = [];
how_vvvvvzu.push(temp_vvvvvzu);
}
else if (!isSet(how_vvvvvzu))
{
var how_vvvvvzu = [];
}
var how = how_vvvvvzu.some(how_vvvvvzu_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 vvvvvzu Some function
function how_vvvvvzu_SomeFunc(how_vvvvvzu)
{
// set the function logic
if (how_vvvvvzu == 2)
{
return true;
}
return false;
}
// the vvvvvzv function
function vvvvvzv(how_vvvvvzv)
{
if (isSet(how_vvvvvzv) && how_vvvvvzv.constructor !== Array)
{
var temp_vvvvvzv = how_vvvvvzv;
var how_vvvvvzv = [];
how_vvvvvzv.push(temp_vvvvvzv);
}
else if (!isSet(how_vvvvvzv))
{
var how_vvvvvzv = [];
}
var how = how_vvvvvzv.some(how_vvvvvzv_SomeFunc);
// set this function logic
if (how)
{
jQuery('#jform_php_setdocument').closest('.control-group').show();
if (jform_vvvvvzvvzm_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_vvvvvzvvzm_required = false;
}
}
else
{
jQuery('#jform_php_setdocument').closest('.control-group').hide();
if (!jform_vvvvvzvvzm_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_vvvvvzvvzm_required = true;
}
}
}
// the vvvvvzv Some function
function how_vvvvvzv_SomeFunc(how_vvvvvzv)
{
// set the function logic
if (how_vvvvvzv == 3)
{
return true;
}
return false;
}
// the vvvvvzw function
function vvvvvzw(how_vvvvvzw)
{
@ -166,11 +73,11 @@ function vvvvvzw(how_vvvvvzw)
// set this function logic
if (how)
{
jQuery('.note_display_library_config').closest('.control-group').show();
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
}
else
{
jQuery('.note_display_library_config').closest('.control-group').hide();
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
}
}
@ -178,7 +85,7 @@ function vvvvvzw(how_vvvvvzw)
function how_vvvvvzw_SomeFunc(how_vvvvvzw)
{
// set the function logic
if (how_vvvvvzw == 2 || how_vvvvvzw == 3)
if (how_vvvvvzw == 2)
{
return true;
}
@ -204,11 +111,28 @@ function vvvvvzx(how_vvvvvzx)
// set this function logic
if (how)
{
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
jQuery('#jform_php_setdocument').closest('.control-group').show();
if (jform_vvvvvzxvzo_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_vvvvvzxvzo_required = false;
}
}
else
{
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
jQuery('#jform_php_setdocument').closest('.control-group').hide();
if (!jform_vvvvvzxvzo_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_vvvvvzxvzo_required = true;
}
}
}
@ -216,7 +140,7 @@ function vvvvvzx(how_vvvvvzx)
function how_vvvvvzx_SomeFunc(how_vvvvvzx)
{
// set the function logic
if (how_vvvvvzx == 1 || how_vvvvvzx == 2 || how_vvvvvzx == 3)
if (how_vvvvvzx == 3)
{
return true;
}
@ -242,15 +166,11 @@ function vvvvvzy(how_vvvvvzy)
// 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_config').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_config').closest('.control-group').hide();
}
}
@ -258,7 +178,7 @@ function vvvvvzy(how_vvvvvzy)
function how_vvvvvzy_SomeFunc(how_vvvvvzy)
{
// set the function logic
if (how_vvvvvzy == 0)
if (how_vvvvvzy == 2 || how_vvvvvzy == 3)
{
return true;
}
@ -284,13 +204,11 @@ function vvvvvzz(how_vvvvvzz)
// set this function logic
if (how)
{
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
}
else
{
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
}
}
@ -298,7 +216,7 @@ function vvvvvzz(how_vvvvvzz)
function how_vvvvvzz_SomeFunc(how_vvvvvzz)
{
// set the function logic
if (how_vvvvvzz == 1)
if (how_vvvvvzz == 1 || how_vvvvvzz == 2 || how_vvvvvzz == 3)
{
return true;
}
@ -321,6 +239,88 @@ function vvvvwaa(how_vvvvwaa)
var how = how_vvvvwaa.some(how_vvvvwaa_SomeFunc);
// set this function logic
if (how)
{
jQuery('.note_no_behaviour_one').closest('.control-group').show();
jQuery('.note_no_behaviour_three').closest('.control-group').show();
jQuery('.note_no_behaviour_two').closest('.control-group').show();
}
else
{
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
}
}
// the vvvvwaa Some function
function how_vvvvwaa_SomeFunc(how_vvvvwaa)
{
// set the function logic
if (how_vvvvwaa == 0)
{
return true;
}
return false;
}
// the vvvvwab function
function vvvvwab(how_vvvvwab)
{
if (isSet(how_vvvvwab) && how_vvvvwab.constructor !== Array)
{
var temp_vvvvwab = how_vvvvwab;
var how_vvvvwab = [];
how_vvvvwab.push(temp_vvvvwab);
}
else if (!isSet(how_vvvvwab))
{
var how_vvvvwab = [];
}
var how = how_vvvvwab.some(how_vvvvwab_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 vvvvwab Some function
function how_vvvvwab_SomeFunc(how_vvvvwab)
{
// set the function logic
if (how_vvvvwab == 1)
{
return true;
}
return false;
}
// the vvvvwac function
function vvvvwac(how_vvvvwac)
{
if (isSet(how_vvvvwac) && how_vvvvwac.constructor !== Array)
{
var temp_vvvvwac = how_vvvvwac;
var how_vvvvwac = [];
how_vvvvwac.push(temp_vvvvwac);
}
else if (!isSet(how_vvvvwac))
{
var how_vvvvwac = [];
}
var how = how_vvvvwac.some(how_vvvvwac_SomeFunc);
// set this function logic
if (how)
{
@ -336,44 +336,44 @@ function vvvvwaa(how_vvvvwaa)
}
}
// the vvvvwaa Some function
function how_vvvvwaa_SomeFunc(how_vvvvwaa)
// the vvvvwac Some function
function how_vvvvwac_SomeFunc(how_vvvvwac)
{
// set the function logic
if (how_vvvvwaa == 4)
if (how_vvvvwac == 4)
{
return true;
}
return false;
}
// the vvvvwab function
function vvvvwab(type_vvvvwab)
// the vvvvwad function
function vvvvwad(type_vvvvwad)
{
// set the function logic
if (type_vvvvwab == 2)
if (type_vvvvwad == 2)
{
jQuery('#jform_libraries').closest('.control-group').show();
if (jform_vvvvwabvzn_required)
if (jform_vvvvwadvzp_required)
{
updateFieldRequired('libraries',0);
jQuery('#jform_libraries').prop('required','required');
jQuery('#jform_libraries').attr('aria-required',true);
jQuery('#jform_libraries').addClass('required');
jform_vvvvwabvzn_required = false;
jform_vvvvwadvzp_required = false;
}
}
else
{
jQuery('#jform_libraries').closest('.control-group').hide();
if (!jform_vvvvwabvzn_required)
if (!jform_vvvvwadvzp_required)
{
updateFieldRequired('libraries',1);
jQuery('#jform_libraries').removeAttr('required');
jQuery('#jform_libraries').removeAttr('aria-required');
jQuery('#jform_libraries').removeClass('required');
jform_vvvvwabvzn_required = true;
jform_vvvvwadvzp_required = true;
}
}
}

View File

@ -23,7 +23,6 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvyivye_required = false;
jform_vvvvvyjvyf_required = false;
jform_vvvvvykvyg_required = false;
jform_vvvvvylvyh_required = false;
@ -32,274 +31,310 @@ jform_vvvvvynvyj_required = false;
jform_vvvvvyovyk_required = false;
jform_vvvvvypvyl_required = false;
jform_vvvvvyqvym_required = false;
jform_vvvvvyqvyn_required = false;
jform_vvvvvyrvyn_required = false;
jform_vvvvvysvyo_required = false;
jform_vvvvvysvyp_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyi = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyi(add_php_view_vvvvvyi);
var add_php_view_vvvvvyj = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyj(add_php_view_vvvvvyj);
var add_php_jview_display_vvvvvyj = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvyj(add_php_jview_display_vvvvvyj);
var add_php_jview_display_vvvvvyk = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvyk(add_php_jview_display_vvvvvyk);
var add_php_jview_vvvvvyk = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyk(add_php_jview_vvvvvyk);
var add_php_jview_vvvvvyl = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyl(add_php_jview_vvvvvyl);
var add_php_document_vvvvvyl = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyl(add_php_document_vvvvvyl);
var add_php_document_vvvvvym = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvym(add_php_document_vvvvvym);
var add_css_document_vvvvvym = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvym(add_css_document_vvvvvym);
var add_css_document_vvvvvyn = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvyn(add_css_document_vvvvvyn);
var add_js_document_vvvvvyn = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyn(add_js_document_vvvvvyn);
var add_javascript_file_vvvvvyo = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
vvvvvyo(add_javascript_file_vvvvvyo);
var add_css_vvvvvyo = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyo(add_css_vvvvvyo);
var add_js_document_vvvvvyp = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyp(add_js_document_vvvvvyp);
var add_php_ajax_vvvvvyp = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyp(add_php_ajax_vvvvvyp);
var add_css_vvvvvyq = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyq(add_css_vvvvvyq);
var add_custom_button_vvvvvyq = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyq(add_custom_button_vvvvvyq);
var add_php_ajax_vvvvvyr = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyr(add_php_ajax_vvvvvyr);
var button_position_vvvvvyr = jQuery("#jform_button_position").val();
vvvvvyr(button_position_vvvvvyr);
var add_custom_button_vvvvvys = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvys(add_custom_button_vvvvvys);
var button_position_vvvvvyt = jQuery("#jform_button_position").val();
vvvvvyt(button_position_vvvvvyt);
});
// the vvvvvyi function
function vvvvvyi(add_php_view_vvvvvyi)
// the vvvvvyj function
function vvvvvyj(add_php_view_vvvvvyj)
{
// set the function logic
if (add_php_view_vvvvvyi == 1)
if (add_php_view_vvvvvyj == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvyivye_required)
if (jform_vvvvvyjvyf_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvyivye_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvyivye_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvyivye_required = true;
}
}
}
// the vvvvvyj function
function vvvvvyj(add_php_jview_display_vvvvvyj)
{
// set the function logic
if (add_php_jview_display_vvvvvyj == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvyjvyf_required)
{
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvyjvyf_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvyjvyf_required)
{
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvyjvyf_required = true;
}
}
}
// the vvvvvyk function
function vvvvvyk(add_php_jview_vvvvvyk)
function vvvvvyk(add_php_jview_display_vvvvvyk)
{
// set the function logic
if (add_php_jview_vvvvvyk == 1)
if (add_php_jview_display_vvvvvyk == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvykvyg_required)
{
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvykvyg_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvykvyg_required)
{
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
jform_vvvvvykvyg_required = true;
}
}
}
// the vvvvvyl function
function vvvvvyl(add_php_document_vvvvvyl)
function vvvvvyl(add_php_jview_vvvvvyl)
{
// set the function logic
if (add_php_document_vvvvvyl == 1)
if (add_php_jview_vvvvvyl == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvylvyh_required)
{
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
jform_vvvvvylvyh_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvylvyh_required)
{
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvylvyh_required = true;
}
}
}
// the vvvvvym function
function vvvvvym(add_css_document_vvvvvym)
function vvvvvym(add_php_document_vvvvvym)
{
// set the function logic
if (add_css_document_vvvvvym == 1)
if (add_php_document_vvvvvym == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvymvyi_required)
{
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
jform_vvvvvymvyi_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvymvyi_required)
{
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
jform_vvvvvymvyi_required = true;
}
}
}
// the vvvvvyn function
function vvvvvyn(add_js_document_vvvvvyn)
function vvvvvyn(add_css_document_vvvvvyn)
{
// set the function logic
if (add_js_document_vvvvvyn == 1)
if (add_css_document_vvvvvyn == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvynvyj_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
jform_vvvvvynvyj_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvynvyj_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
jform_vvvvvynvyj_required = true;
}
}
}
// the vvvvvyo function
function vvvvvyo(add_css_vvvvvyo)
function vvvvvyo(add_javascript_file_vvvvvyo)
{
// set the function logic
if (add_css_vvvvvyo == 1)
if (add_javascript_file_vvvvvyo == 1)
{
jQuery('#jform_css').closest('.control-group').show();
jQuery('#jform_javascript_file').closest('.control-group').show();
if (jform_vvvvvyovyk_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
updateFieldRequired('javascript_file',0);
jQuery('#jform_javascript_file').prop('required','required');
jQuery('#jform_javascript_file').attr('aria-required',true);
jQuery('#jform_javascript_file').addClass('required');
jform_vvvvvyovyk_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
jQuery('#jform_javascript_file').closest('.control-group').hide();
if (!jform_vvvvvyovyk_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
updateFieldRequired('javascript_file',1);
jQuery('#jform_javascript_file').removeAttr('required');
jQuery('#jform_javascript_file').removeAttr('aria-required');
jQuery('#jform_javascript_file').removeClass('required');
jform_vvvvvyovyk_required = true;
}
}
}
// the vvvvvyp function
function vvvvvyp(add_php_ajax_vvvvvyp)
function vvvvvyp(add_js_document_vvvvvyp)
{
// set the function logic
if (add_php_ajax_vvvvvyp == 1)
if (add_js_document_vvvvvyp == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvypvyl_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
jform_vvvvvypvyl_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvypvyl_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
jform_vvvvvypvyl_required = true;
}
}
}
// the vvvvvyq function
function vvvvvyq(add_css_vvvvvyq)
{
// set the function logic
if (add_css_vvvvvyq == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_vvvvvyqvym_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_vvvvvyqvym_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_vvvvvyqvym_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_vvvvvyqvym_required = true;
}
}
}
// the vvvvvyr function
function vvvvvyr(add_php_ajax_vvvvvyr)
{
// set the function logic
if (add_php_ajax_vvvvvyr == 1)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
if (jform_vvvvvypvyl_required)
if (jform_vvvvvyrvyn_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
jform_vvvvvypvyl_required = false;
jform_vvvvvyrvyn_required = false;
}
}
@ -307,42 +342,42 @@ function vvvvvyp(add_php_ajax_vvvvvyp)
{
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
if (!jform_vvvvvypvyl_required)
if (!jform_vvvvvyrvyn_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
jform_vvvvvypvyl_required = true;
jform_vvvvvyrvyn_required = true;
}
}
}
// the vvvvvyq function
function vvvvvyq(add_custom_button_vvvvvyq)
// the vvvvvys function
function vvvvvys(add_custom_button_vvvvvys)
{
// set the function logic
if (add_custom_button_vvvvvyq == 1)
if (add_custom_button_vvvvvys == 1)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_vvvvvyqvym_required)
if (jform_vvvvvysvyo_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
jform_vvvvvyqvym_required = false;
jform_vvvvvysvyo_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_vvvvvyqvyn_required)
if (jform_vvvvvysvyp_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
jform_vvvvvyqvyn_required = false;
jform_vvvvvysvyp_required = false;
}
}
@ -350,40 +385,40 @@ function vvvvvyq(add_custom_button_vvvvvyq)
{
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_vvvvvyqvym_required)
if (!jform_vvvvvysvyo_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
jform_vvvvvyqvym_required = true;
jform_vvvvvysvyo_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_vvvvvyqvyn_required)
if (!jform_vvvvvysvyp_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
jform_vvvvvyqvyn_required = true;
jform_vvvvvysvyp_required = true;
}
}
}
// the vvvvvyr function
function vvvvvyr(button_position_vvvvvyr)
// the vvvvvyt function
function vvvvvyt(button_position_vvvvvyt)
{
if (isSet(button_position_vvvvvyr) && button_position_vvvvvyr.constructor !== Array)
if (isSet(button_position_vvvvvyt) && button_position_vvvvvyt.constructor !== Array)
{
var temp_vvvvvyr = button_position_vvvvvyr;
var button_position_vvvvvyr = [];
button_position_vvvvvyr.push(temp_vvvvvyr);
var temp_vvvvvyt = button_position_vvvvvyt;
var button_position_vvvvvyt = [];
button_position_vvvvvyt.push(temp_vvvvvyt);
}
else if (!isSet(button_position_vvvvvyr))
else if (!isSet(button_position_vvvvvyt))
{
var button_position_vvvvvyr = [];
var button_position_vvvvvyt = [];
}
var button_position = button_position_vvvvvyr.some(button_position_vvvvvyr_SomeFunc);
var button_position = button_position_vvvvvyt.some(button_position_vvvvvyt_SomeFunc);
// set this function logic
@ -397,11 +432,11 @@ function vvvvvyr(button_position_vvvvvyr)
}
}
// the vvvvvyr Some function
function button_position_vvvvvyr_SomeFunc(button_position_vvvvvyr)
// the vvvvvyt Some function
function button_position_vvvvvyt_SomeFunc(button_position_vvvvvyt)
{
// set the function logic
if (button_position_vvvvvyr == 5)
if (button_position_vvvvvyt == 5)
{
return true;
}

View File

@ -138,27 +138,6 @@
multiple="false"
required="false"
button="true" />
<!-- Js_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_HINT"
required="true" />
<!-- Libraries Field. Type: Libraries. (custom)-->
<field type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true" />
<!-- Css Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css"
@ -170,6 +149,16 @@
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_CSS_HINT"
required="true" />
<!-- Libraries Field. Type: Libraries. (custom)-->
<field type="libraries"
name="libraries"
label="COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_LIBRARIES_DESCRIPTION"
class="list_class"
multiple="true"
default="0"
required="false"
button="true" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_add_language_string"
@ -177,6 +166,17 @@
description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION"
heading="h4"
class="note_add_language_string" />
<!-- Js_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_HINT"
required="true" />
<!-- Add_php_document Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_document"
@ -188,6 +188,12 @@
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_uikit_snippet"
label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_UIKIT_SNIPPET_LABEL"
heading="h4"
class="snippet-code note_uikit_snippet" />
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_libraries_selection"
@ -195,17 +201,12 @@
description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION"
heading="h4"
class="alert alert-info note_libraries_selection" />
<!-- Add_php_jview_display Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_snippet_usage"
label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_SNIPPET_USAGE_LABEL"
heading="h4"
class="snippet-usage note_snippet_usage" />
<!-- Css_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="css_document"
@ -217,12 +218,16 @@
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_HINT"
required="true" />
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_uikit_snippet"
label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_UIKIT_SNIPPET_LABEL"
heading="h4"
class="snippet-code note_uikit_snippet" />
<!-- Default Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="default"
label="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_HINT"
required="true" />
<!-- Php_ajaxmethod Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_ajaxmethod"
@ -234,12 +239,17 @@
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_HINT"
required="true" />
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_snippet_usage"
label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_SNIPPET_USAGE_LABEL"
heading="h4"
class="snippet-usage note_snippet_usage" />
<!-- Add_php_jview_display Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Add_php_view Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_view"
@ -251,15 +261,16 @@
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Default Field. Type: Textarea. (joomla)-->
<!-- Javascript_file Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="default"
label="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_LABEL"
rows="20"
name="javascript_file"
label="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_HINT"
hint="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_HINT"
required="true" />
<!-- Add_php_jview Field. Type: Radio. (joomla)-->
<field type="radio"
@ -283,25 +294,15 @@
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_HINT"
required="false" />
<!-- Php_controller Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_controller"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_HINT"
required="false" />
<!-- Not_required Field. Type: Hidden. (joomla)-->
<field type="hidden"
name="not_required"
default="[]" />
<!-- Add_js_document Field. Type: Radio. (joomla)-->
<!-- Add_javascript_file Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JS_DOCUMENT_LABEL"
name="add_javascript_file"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JAVASCRIPT_FILE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -315,10 +316,10 @@
label="COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true" />
<!-- Add_css_document Field. Type: Radio. (joomla)-->
<!-- Add_js_document Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_css_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_DOCUMENT_LABEL"
name="add_js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -334,10 +335,10 @@
multiple="false"
required="true"
button="true" />
<!-- Add_css Field. Type: Radio. (joomla)-->
<!-- Add_css_document Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_LABEL"
name="add_css_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -352,10 +353,10 @@
description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false" />
<!-- Add_php_ajax Field. Type: Radio. (joomla)-->
<!-- Add_css Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_ajax"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_AJAX_LABEL"
name="add_css"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@ -370,6 +371,28 @@
description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_VALUES_DESCRIPTION"
heading="h4"
class="dynamic_values" />
<!-- Add_php_ajax Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_php_ajax"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_PHP_AJAX_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Add_custom_button Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_custom_button"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Ajax_input Field. Type: Subform. (joomla)-->
<field type="subform"
name="ajax_input"
@ -477,28 +500,6 @@
class="inputbox" />
</form>
</field>
<!-- Add_custom_button Field. Type: Radio. (joomla)-->
<field type="radio"
name="add_custom_button"
label="COM_COMPONENTBUILDER_SITE_VIEW_ADD_CUSTOM_BUTTON_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set.-->
<option value="1">COM_COMPONENTBUILDER_SITE_VIEW_YES</option>
<option value="0">COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Php_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_HINT"
required="true" />
<!-- Button_position Field. Type: List. (joomla)-->
<field type="list"
name="button_position"
@ -517,6 +518,24 @@
<option value="4">COM_COMPONENTBUILDER_SITE_VIEW_BOTTOM_LEFT</option>
<option value="5">COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM</option>
</field>
<!-- Php_document Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_HINT"
required="true" />
<!-- Note_custom_toolbar_placeholder Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_custom_toolbar_placeholder"
description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_CUSTOM_TOOLBAR_PLACEHOLDER_DESCRIPTION"
heading="h4"
class="note_custom_toolbar_placeholder"
showon="button_position:5" />
<!-- Php_view Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_view"
@ -528,24 +547,6 @@
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_HINT"
required="true" />
<!-- Note_custom_toolbar_placeholder Field. Type: Note. A None Database Field. (joomla)-->
<field type="note"
name="note_custom_toolbar_placeholder"
description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_CUSTOM_TOOLBAR_PLACEHOLDER_DESCRIPTION"
heading="h4"
class="note_custom_toolbar_placeholder"
showon="button_position:5" />
<!-- Php_jview_display Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true" />
<!-- Custom_button Field. Type: Subform. (joomla)-->
<field type="subform"
name="custom_button"
@ -833,6 +834,28 @@
</field>
</form>
</field>
<!-- Php_jview_display Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true" />
<!-- Php_controller Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_controller"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_HINT"
required="false" />
<!-- Php_jview Field. Type: Textarea. (joomla)-->
<field type="textarea"
name="php_jview"

View File

@ -23,42 +23,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvysvyo_required = false;
jform_vvvvvyuvyq_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvys = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvys(add_php_view_vvvvvys);
var add_php_view_vvvvvyu = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyu(add_php_view_vvvvvyu);
});
// the vvvvvys function
function vvvvvys(add_php_view_vvvvvys)
// the vvvvvyu function
function vvvvvyu(add_php_view_vvvvvyu)
{
// set the function logic
if (add_php_view_vvvvvys == 1)
if (add_php_view_vvvvvyu == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvysvyo_required)
if (jform_vvvvvyuvyq_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvysvyo_required = false;
jform_vvvvvyuvyq_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvysvyo_required)
if (!jform_vvvvvyuvyq_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvysvyo_required = true;
jform_vvvvvyuvyq_required = true;
}
}
}

View File

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

View File

@ -34,16 +34,16 @@ jimport('joomla.application.component.modellist');
*/
class ComponentbuilderModelGet_snippets extends JModelList
{
/**
/**
* Model user data.
*
* @var strings
* @var strings
*/
protected $user;
protected $userId;
protected $guest;
protected $groups;
protected $levels;
protected $user;
protected $userId;
protected $guest;
protected $groups;
protected $levels;
protected $app;
protected $input;
protected $uikitComp;
@ -55,14 +55,14 @@ class ComponentbuilderModelGet_snippets extends JModelList
*/
protected function getListQuery()
{
// Get the current user for authorisation checks
$this->user = JFactory::getUser();
// Get the current user for authorisation checks
$this->user = JFactory::getUser();
$this->userId = $this->user->get('id');
$this->guest = $this->user->get('guest');
$this->groups = $this->user->get('groups');
$this->authorisedGroups = $this->user->getAuthorisedGroups();
$this->groups = $this->user->get('groups');
$this->authorisedGroups = $this->user->getAuthorisedGroups();
$this->levels = $this->user->getAuthorisedViewLevels();
$this->app = JFactory::getApplication();
$this->app = JFactory::getApplication();
$this->input = $this->app->input;
$this->initSet = true;
// Make sure all records load, since no pagination allowed.
@ -102,16 +102,16 @@ class ComponentbuilderModelGet_snippets extends JModelList
*/
public function getItems()
{
$user = JFactory::getUser();
// check if this user has permission to access items
if (!$user->authorise('get_snippets.access', 'com_componentbuilder'))
{
$user = JFactory::getUser();
// check if this user has permission to access items
if (!$user->authorise('get_snippets.access', 'com_componentbuilder'))
{
$app = JFactory::getApplication();
$app->enqueueMessage(JText::_('Not authorised!'), 'error');
// redirect away if not a correct (TODO for now we go to default view)
$app->redirect('index.php?option=com_componentbuilder');
return false;
}
}
// load parent items
$items = parent::getItems();

View File

@ -127,48 +127,48 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$item->custom_button = $custom_button->toArray();
}
if (!empty($item->js_document))
{
// base64 Decode js_document.
$item->js_document = base64_decode($item->js_document);
}
if (!empty($item->css))
{
// base64 Decode css.
$item->css = base64_decode($item->css);
}
if (!empty($item->js_document))
{
// base64 Decode js_document.
$item->js_document = base64_decode($item->js_document);
}
if (!empty($item->css_document))
{
// base64 Decode css_document.
$item->css_document = base64_decode($item->css_document);
}
if (!empty($item->php_ajaxmethod))
{
// base64 Decode php_ajaxmethod.
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
}
if (!empty($item->default))
{
// base64 Decode default.
$item->default = base64_decode($item->default);
}
if (!empty($item->php_ajaxmethod))
{
// base64 Decode php_ajaxmethod.
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
}
if (!empty($item->javascript_file))
{
// base64 Decode javascript_file.
$item->javascript_file = base64_decode($item->javascript_file);
}
if (!empty($item->php_model))
{
// base64 Decode php_model.
$item->php_model = base64_decode($item->php_model);
}
if (!empty($item->php_controller))
{
// base64 Decode php_controller.
$item->php_controller = base64_decode($item->php_controller);
}
if (!empty($item->php_document))
{
// base64 Decode php_document.
@ -187,6 +187,12 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$item->php_jview_display = base64_decode($item->php_jview_display);
}
if (!empty($item->php_controller))
{
// base64 Decode php_controller.
$item->php_controller = base64_decode($item->php_controller);
}
if (!empty($item->php_jview))
{
// base64 Decode php_jview.
@ -1010,48 +1016,48 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$data['custom_button'] = '';
}
// Set the js_document string to base64 string.
if (isset($data['js_document']))
{
$data['js_document'] = base64_encode($data['js_document']);
}
// Set the css string to base64 string.
if (isset($data['css']))
{
$data['css'] = base64_encode($data['css']);
}
// Set the js_document string to base64 string.
if (isset($data['js_document']))
{
$data['js_document'] = base64_encode($data['js_document']);
}
// Set the css_document string to base64 string.
if (isset($data['css_document']))
{
$data['css_document'] = base64_encode($data['css_document']);
}
// Set the php_ajaxmethod string to base64 string.
if (isset($data['php_ajaxmethod']))
{
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
}
// Set the default string to base64 string.
if (isset($data['default']))
{
$data['default'] = base64_encode($data['default']);
}
// Set the php_ajaxmethod string to base64 string.
if (isset($data['php_ajaxmethod']))
{
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
}
// Set the javascript_file string to base64 string.
if (isset($data['javascript_file']))
{
$data['javascript_file'] = base64_encode($data['javascript_file']);
}
// Set the php_model string to base64 string.
if (isset($data['php_model']))
{
$data['php_model'] = base64_encode($data['php_model']);
}
// Set the php_controller string to base64 string.
if (isset($data['php_controller']))
{
$data['php_controller'] = base64_encode($data['php_controller']);
}
// Set the php_document string to base64 string.
if (isset($data['php_document']))
{
@ -1070,6 +1076,12 @@ class ComponentbuilderModelSite_view extends JModelAdmin
$data['php_jview_display'] = base64_encode($data['php_jview_display']);
}
// Set the php_controller string to base64 string.
if (isset($data['php_controller']))
{
$data['php_controller'] = base64_encode($data['php_controller']);
}
// Set the php_jview string to base64 string.
if (isset($data['php_jview']))
{

View File

@ -266,26 +266,28 @@ class ComponentbuilderModelSite_views extends JModelList
continue;
}
// decode js_document
$item->js_document = base64_decode($item->js_document);
// decode css
$item->css = base64_decode($item->css);
// decode js_document
$item->js_document = base64_decode($item->js_document);
// decode css_document
$item->css_document = base64_decode($item->css_document);
// decode php_ajaxmethod
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
// decode default
$item->default = base64_decode($item->default);
// decode php_ajaxmethod
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
// decode javascript_file
$item->javascript_file = base64_decode($item->javascript_file);
// decode php_model
$item->php_model = base64_decode($item->php_model);
// decode php_controller
$item->php_controller = base64_decode($item->php_controller);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_view
$item->php_view = base64_decode($item->php_view);
// decode php_jview_display
$item->php_jview_display = base64_decode($item->php_jview_display);
// decode php_controller
$item->php_controller = base64_decode($item->php_controller);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// unset the values we don't want exported.