Added the feature to use admin and custom admin views as the dashboard of the back-end of a component, requested in gh-148
This commit is contained in:
@ -274,11 +274,13 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
{
|
||||
// get the view name & id
|
||||
$values = $this->getViewID();
|
||||
// set the button ID
|
||||
$css_class = 'control-group-'.ComponentbuilderHelper::safeString($type. '-' . $size, 'L', '-');
|
||||
// check if new item
|
||||
$ref = '';
|
||||
if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view']))
|
||||
{
|
||||
// only load referal if not new item.
|
||||
// only load referral if not new item.
|
||||
$ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id'];
|
||||
// get item id
|
||||
if ($id = ComponentbuilderHelper::getVar($type, $values['a_id'], $values['a_view'], 'id'))
|
||||
@ -299,7 +301,7 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
$button = array();
|
||||
if (1 == $size)
|
||||
{
|
||||
$button[] = '<div class="control-group">';
|
||||
$button[] = '<div class="control-group '.$css_class.'">';
|
||||
$button[] = '<div class="control-label">';
|
||||
$button[] = '<label>' . ComponentbuilderHelper::safeString($type, 'Ww') . '</label>';
|
||||
$button[] = '</div>';
|
||||
@ -326,7 +328,7 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
// only return notice if big button
|
||||
if (1 == $size)
|
||||
{
|
||||
return '<div class="control-group"><div class="alert alert-info">' . JText::sprintf('COM_COMPONENTBUILDER_BUTTON_TO_CREATE_S_WILL_SHOW_ONCE_S_IS_SAVED_FOR_THE_FIRST_TIME', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')) . '</div></div>';
|
||||
return '<div class="control-group '.$css_class.'"><div class="alert alert-info">' . JText::sprintf('COM_COMPONENTBUILDER_BUTTON_TO_CREATE_S_WILL_SHOW_ONCE_S_IS_SAVED_FOR_THE_FIRST_TIME', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')) . '</div></div>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -228,6 +228,8 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
|
||||
public function install($p_file)
|
||||
{
|
||||
$this->setState('action', 'install');
|
||||
|
||||
// Set FTP credentials, if given.
|
||||
JClientHelper::setCredentialsFromRequest('ftp');
|
||||
$app = JFactory::getApplication();
|
||||
@ -235,7 +237,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
// Load installer plugins for assistance if required:
|
||||
JPluginHelper::importPlugin('installer');
|
||||
$dispatcher = JEventDispatcher::getInstance();
|
||||
|
||||
|
||||
$package = null;
|
||||
|
||||
// This event allows an input pre-treatment, a custom pre-packing or custom installation.
|
||||
@ -246,7 +248,8 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
{
|
||||
return true;
|
||||
}
|
||||
elseif (in_array(false, $results, true))
|
||||
|
||||
if (in_array(false, $results, true))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@ -256,8 +259,10 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
|
||||
// Unpack the downloaded package file.
|
||||
$package = JInstallerHelper::unpack($tmp_dest . '/' . $p_file, true);
|
||||
// insure the install type is folder
|
||||
|
||||
// insure the install type is folder (JCB zip file is in the folder)
|
||||
$installType = 'folder';
|
||||
|
||||
// This event allows a custom installation of the package or a customization of the package:
|
||||
$results = $dispatcher->trigger('onInstallerBeforeInstaller', array($this, &$package));
|
||||
|
||||
@ -300,7 +305,7 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
$dispatcher->trigger('onInstallerAfterInstaller', array($this, &$package, $installer, &$result, &$msg));
|
||||
|
||||
// Set some model state values.
|
||||
$app = JFactory::getApplication();
|
||||
$app = JFactory::getApplication();
|
||||
$app->enqueueMessage($msg, $msgType);
|
||||
$this->setState('name', $installer->get('name'));
|
||||
$this->setState('result', $result);
|
||||
@ -317,6 +322,16 @@ class ComponentbuilderModelCompiler extends JModelList
|
||||
|
||||
JInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']);
|
||||
|
||||
// Clear the cached extension data and menu cache
|
||||
$this->cleanCache('_system', 0);
|
||||
$this->cleanCache('_system', 1);
|
||||
$this->cleanCache('com_modules', 0);
|
||||
$this->cleanCache('com_modules', 1);
|
||||
$this->cleanCache('com_plugins', 0);
|
||||
$this->cleanCache('com_plugins', 1);
|
||||
$this->cleanCache('mod_menu', 0);
|
||||
$this->cleanCache('mod_menu', 1);
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
217
admin/models/fields/dynamicdashboard.php
Normal file
217
admin/models/fields/dynamicdashboard.php
Normal file
@ -0,0 +1,217 @@
|
||||
<?php
|
||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||
__ __ _ _____ _ _ __ __ _ _ _
|
||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||
| |
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.6.x
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage dynamicdashboard.php
|
||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
@copyright Copyright (C) 2015. All Rights Reserved
|
||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
Builds Complex Joomla Components
|
||||
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Dynamicdashboard Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldDynamicdashboard extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The dynamicdashboard field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'dynamicdashboard';
|
||||
/**
|
||||
* Override to add new button
|
||||
*
|
||||
* @return string The field input markup.
|
||||
*
|
||||
* @since 3.2
|
||||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// see if we should add buttons
|
||||
$setButton = $this->getAttribute('button');
|
||||
// get html
|
||||
$html = parent::getInput();
|
||||
// if true set button
|
||||
if ($setButton === 'true')
|
||||
{
|
||||
$button = array();
|
||||
$script = array();
|
||||
$buttonName = $this->getAttribute('name');
|
||||
// get the input from url
|
||||
$app = JFactory::getApplication();
|
||||
$jinput = $app->input;
|
||||
// get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// check if new item
|
||||
$ref = '';
|
||||
$refJ = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// only load referal if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
}
|
||||
$user = JFactory::getUser();
|
||||
// only add if user allowed to create custom_admin_view
|
||||
if ($user->authorise('core.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build Create button
|
||||
$buttonNamee = trim($buttonName);
|
||||
$buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
|
||||
$buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
|
||||
$buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
|
||||
$buttonNamee = ucfirst(strtolower($buttonNamee));
|
||||
$button[] = '<a id="'.$buttonName.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_CREATE_NEW_S', $buttonNamee).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
|
||||
href="index.php?option=com_componentbuilder&view=custom_admin_view&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span></a>';
|
||||
}
|
||||
// only add if user allowed to edit custom_admin_view
|
||||
if (($buttonName === 'custom_admin_view' || $buttonName === 'custom_admin_views') && $user->authorise('core.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build edit button
|
||||
$buttonNamee = trim($buttonName);
|
||||
$buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
|
||||
$buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
|
||||
$buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
|
||||
$buttonNamee = ucfirst(strtolower($buttonNamee));
|
||||
$button[] = '<a id="'.$buttonName.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_EDIT_S', $buttonNamee).'" style="display: none; padding: 4px 4px 4px 7px;" href="#" >
|
||||
<span class="icon-edit"></span></a>';
|
||||
// build script
|
||||
$script[] = "
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
|
||||
e.preventDefault();
|
||||
var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
|
||||
".$buttonName."Button(".$buttonName."Value);
|
||||
});
|
||||
var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
|
||||
".$buttonName."Button(".$buttonName."Value);
|
||||
});
|
||||
function ".$buttonName."Button(value) {
|
||||
if (value > 0) {
|
||||
// hide the create button
|
||||
jQuery('#".$buttonName."Create').hide();
|
||||
// show edit button
|
||||
jQuery('#".$buttonName."Edit').show();
|
||||
var url = 'index.php?option=com_componentbuilder&view=custom_admin_views&task=custom_admin_view.edit&id='+value+'".$refJ."';
|
||||
jQuery('#".$buttonName."Edit').attr('href', url);
|
||||
} else {
|
||||
// show the create button
|
||||
jQuery('#".$buttonName."Create').show();
|
||||
// hide edit button
|
||||
jQuery('#".$buttonName."Edit').hide();
|
||||
}
|
||||
}";
|
||||
}
|
||||
// check if button was created for custom_admin_view field.
|
||||
if (is_array($button) && count($button) > 0)
|
||||
{
|
||||
// Load the needed script.
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration(implode(' ',$script));
|
||||
// return the button attached to input field.
|
||||
return '<div class="input-append">' .$html . implode('',$button).'</div>';
|
||||
}
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
public function getOptions()
|
||||
{
|
||||
// load the db opbject
|
||||
$db = JFactory::getDBO();
|
||||
// get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// get the id
|
||||
$ID = $jinput->getInt('id', 0);
|
||||
// set the targets
|
||||
$targets = array('adminview' => 'admin_view', 'customadminview' => 'custom_admin_view');
|
||||
$t = array('adminview' => 'A', 'customadminview' => 'C');
|
||||
// rest the options
|
||||
$options = array();
|
||||
// reset the custom admin views array
|
||||
$views = false;
|
||||
if (is_numeric($ID) && $ID >= 1)
|
||||
{
|
||||
// get the linked back-end views
|
||||
foreach ($targets as $target => $view)
|
||||
{
|
||||
if ($result = ComponentbuilderHelper::getVar('component_'.$view.'s', (int) $ID, 'joomla_component', 'add'.$view.'s'))
|
||||
{
|
||||
$views[$target] = $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// not linked so there is none available
|
||||
return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE')));
|
||||
}
|
||||
// check if we found any values
|
||||
if (ComponentbuilderHelper::checkArray($views))
|
||||
{
|
||||
foreach ($targets as $target => $view)
|
||||
{
|
||||
if (isset($views[$target]) && ComponentbuilderHelper::checkJson($views[$target]))
|
||||
{
|
||||
// convert to an array
|
||||
$value = json_decode($views[$target], true);
|
||||
$type = ComponentbuilderHelper::safeString($view, 'w');
|
||||
if (ComponentbuilderHelper::checkArray($value))
|
||||
{
|
||||
foreach ($value as $_view)
|
||||
{
|
||||
if (isset($_view[$target]) && is_numeric($_view[$target]))
|
||||
{
|
||||
// set the view to the selections if found
|
||||
if ($name = ComponentbuilderHelper::getVar($view, (int) $_view[$target], 'id', 'system_name'))
|
||||
{
|
||||
$options[] = JHtml::_('select.option', $t[$target].'_'.$_view[$target], $name.' ['.$type.']');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// return found options
|
||||
if (ComponentbuilderHelper::checkArray($options))
|
||||
{
|
||||
array_unshift($options , JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_SELECT_AN_OPTION')));
|
||||
return $options;
|
||||
}
|
||||
// not linked so there is none available
|
||||
return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE')));
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -23,294 +23,294 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvybvxx_required = false;
|
||||
jform_vvvvvycvxy_required = false;
|
||||
jform_vvvvvydvxz_required = false;
|
||||
jform_vvvvvyevya_required = false;
|
||||
jform_vvvvvyfvyb_required = false;
|
||||
jform_vvvvvygvyc_required = false;
|
||||
jform_vvvvvyhvyd_required = false;
|
||||
jform_vvvvvyivye_required = false;
|
||||
jform_vvvvvyivyf_required = false;
|
||||
jform_vvvvvyjvyg_required = false;
|
||||
jform_vvvvvykvyh_required = false;
|
||||
jform_vvvvvydvxx_required = false;
|
||||
jform_vvvvvyevxy_required = false;
|
||||
jform_vvvvvyfvxz_required = false;
|
||||
jform_vvvvvygvya_required = false;
|
||||
jform_vvvvvyhvyb_required = false;
|
||||
jform_vvvvvyivyc_required = false;
|
||||
jform_vvvvvyjvyd_required = false;
|
||||
jform_vvvvvykvye_required = false;
|
||||
jform_vvvvvykvyf_required = false;
|
||||
jform_vvvvvylvyg_required = false;
|
||||
jform_vvvvvymvyh_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyb = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyb(add_php_view_vvvvvyb);
|
||||
var add_php_view_vvvvvyd = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyd(add_php_view_vvvvvyd);
|
||||
|
||||
var add_php_jview_display_vvvvvyc = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyc(add_php_jview_display_vvvvvyc);
|
||||
var add_php_jview_display_vvvvvye = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvye(add_php_jview_display_vvvvvye);
|
||||
|
||||
var add_php_jview_vvvvvyd = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyd(add_php_jview_vvvvvyd);
|
||||
var add_php_jview_vvvvvyf = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyf(add_php_jview_vvvvvyf);
|
||||
|
||||
var add_php_document_vvvvvye = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvye(add_php_document_vvvvvye);
|
||||
var add_php_document_vvvvvyg = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyg(add_php_document_vvvvvyg);
|
||||
|
||||
var add_css_document_vvvvvyf = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyf(add_css_document_vvvvvyf);
|
||||
var add_css_document_vvvvvyh = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyh(add_css_document_vvvvvyh);
|
||||
|
||||
var add_javascript_file_vvvvvyg = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyg(add_javascript_file_vvvvvyg);
|
||||
var add_javascript_file_vvvvvyi = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyi(add_javascript_file_vvvvvyi);
|
||||
|
||||
var add_js_document_vvvvvyh = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyh(add_js_document_vvvvvyh);
|
||||
var add_js_document_vvvvvyj = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyj(add_js_document_vvvvvyj);
|
||||
|
||||
var add_custom_button_vvvvvyi = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyi(add_custom_button_vvvvvyi);
|
||||
var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyk(add_custom_button_vvvvvyk);
|
||||
|
||||
var add_css_vvvvvyj = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyj(add_css_vvvvvyj);
|
||||
var add_css_vvvvvyl = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyl(add_css_vvvvvyl);
|
||||
|
||||
var add_php_ajax_vvvvvyk = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyk(add_php_ajax_vvvvvyk);
|
||||
var add_php_ajax_vvvvvym = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_ajax_vvvvvym);
|
||||
});
|
||||
|
||||
// the vvvvvyb function
|
||||
function vvvvvyb(add_php_view_vvvvvyb)
|
||||
// the vvvvvyd function
|
||||
function vvvvvyd(add_php_view_vvvvvyd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyb == 1)
|
||||
if (add_php_view_vvvvvyd == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvybvxx_required)
|
||||
if (jform_vvvvvydvxx_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_vvvvvybvxx_required = false;
|
||||
jform_vvvvvydvxx_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvybvxx_required)
|
||||
if (!jform_vvvvvydvxx_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_vvvvvybvxx_required = true;
|
||||
jform_vvvvvydvxx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyc function
|
||||
function vvvvvyc(add_php_jview_display_vvvvvyc)
|
||||
// the vvvvvye function
|
||||
function vvvvvye(add_php_jview_display_vvvvvye)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvvyc == 1)
|
||||
if (add_php_jview_display_vvvvvye == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display').closest('.control-group').show();
|
||||
if (jform_vvvvvycvxy_required)
|
||||
if (jform_vvvvvyevxy_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_vvvvvycvxy_required = false;
|
||||
jform_vvvvvyevxy_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview_display').closest('.control-group').hide();
|
||||
if (!jform_vvvvvycvxy_required)
|
||||
if (!jform_vvvvvyevxy_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_vvvvvycvxy_required = true;
|
||||
jform_vvvvvyevxy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyd function
|
||||
function vvvvvyd(add_php_jview_vvvvvyd)
|
||||
// the vvvvvyf function
|
||||
function vvvvvyf(add_php_jview_vvvvvyf)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvvyd == 1)
|
||||
if (add_php_jview_vvvvvyf == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview').closest('.control-group').show();
|
||||
if (jform_vvvvvydvxz_required)
|
||||
if (jform_vvvvvyfvxz_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_vvvvvydvxz_required = false;
|
||||
jform_vvvvvyfvxz_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview').closest('.control-group').hide();
|
||||
if (!jform_vvvvvydvxz_required)
|
||||
if (!jform_vvvvvyfvxz_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_vvvvvydvxz_required = true;
|
||||
jform_vvvvvyfvxz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvye function
|
||||
function vvvvvye(add_php_document_vvvvvye)
|
||||
// the vvvvvyg function
|
||||
function vvvvvyg(add_php_document_vvvvvyg)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvye == 1)
|
||||
if (add_php_document_vvvvvyg == 1)
|
||||
{
|
||||
jQuery('#jform_php_document').closest('.control-group').show();
|
||||
if (jform_vvvvvyevya_required)
|
||||
if (jform_vvvvvygvya_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_vvvvvyevya_required = false;
|
||||
jform_vvvvvygvya_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyevya_required)
|
||||
if (!jform_vvvvvygvya_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_vvvvvyevya_required = true;
|
||||
jform_vvvvvygvya_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyf function
|
||||
function vvvvvyf(add_css_document_vvvvvyf)
|
||||
// the vvvvvyh function
|
||||
function vvvvvyh(add_css_document_vvvvvyh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvvyf == 1)
|
||||
if (add_css_document_vvvvvyh == 1)
|
||||
{
|
||||
jQuery('#jform_css_document').closest('.control-group').show();
|
||||
if (jform_vvvvvyfvyb_required)
|
||||
if (jform_vvvvvyhvyb_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_vvvvvyfvyb_required = false;
|
||||
jform_vvvvvyhvyb_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyfvyb_required)
|
||||
if (!jform_vvvvvyhvyb_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_vvvvvyfvyb_required = true;
|
||||
jform_vvvvvyhvyb_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyg function
|
||||
function vvvvvyg(add_javascript_file_vvvvvyg)
|
||||
// the vvvvvyi function
|
||||
function vvvvvyi(add_javascript_file_vvvvvyi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvvyg == 1)
|
||||
if (add_javascript_file_vvvvvyi == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file').closest('.control-group').show();
|
||||
if (jform_vvvvvygvyc_required)
|
||||
if (jform_vvvvvyivyc_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_vvvvvygvyc_required = false;
|
||||
jform_vvvvvyivyc_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_file').closest('.control-group').hide();
|
||||
if (!jform_vvvvvygvyc_required)
|
||||
if (!jform_vvvvvyivyc_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_vvvvvygvyc_required = true;
|
||||
jform_vvvvvyivyc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyh function
|
||||
function vvvvvyh(add_js_document_vvvvvyh)
|
||||
// the vvvvvyj function
|
||||
function vvvvvyj(add_js_document_vvvvvyj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvvyh == 1)
|
||||
if (add_js_document_vvvvvyj == 1)
|
||||
{
|
||||
jQuery('#jform_js_document').closest('.control-group').show();
|
||||
if (jform_vvvvvyhvyd_required)
|
||||
if (jform_vvvvvyjvyd_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_vvvvvyhvyd_required = false;
|
||||
jform_vvvvvyjvyd_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_js_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyhvyd_required)
|
||||
if (!jform_vvvvvyjvyd_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_vvvvvyhvyd_required = true;
|
||||
jform_vvvvvyjvyd_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyi function
|
||||
function vvvvvyi(add_custom_button_vvvvvyi)
|
||||
// the vvvvvyk function
|
||||
function vvvvvyk(add_custom_button_vvvvvyk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvyi == 1)
|
||||
if (add_custom_button_vvvvvyk == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller').closest('.control-group').show();
|
||||
if (jform_vvvvvyivye_required)
|
||||
if (jform_vvvvvykvye_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_vvvvvyivye_required = false;
|
||||
jform_vvvvvykvye_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_php_model').closest('.control-group').show();
|
||||
if (jform_vvvvvyivyf_required)
|
||||
if (jform_vvvvvykvyf_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_vvvvvyivyf_required = false;
|
||||
jform_vvvvvykvyf_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -318,72 +318,72 @@ function vvvvvyi(add_custom_button_vvvvvyi)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_controller').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyivye_required)
|
||||
if (!jform_vvvvvykvye_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_vvvvvyivye_required = true;
|
||||
jform_vvvvvykvye_required = true;
|
||||
}
|
||||
jQuery('#jform_php_model').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyivyf_required)
|
||||
if (!jform_vvvvvykvyf_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_vvvvvyivyf_required = true;
|
||||
jform_vvvvvykvyf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyj function
|
||||
function vvvvvyj(add_css_vvvvvyj)
|
||||
// the vvvvvyl function
|
||||
function vvvvvyl(add_css_vvvvvyl)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvyj == 1)
|
||||
if (add_css_vvvvvyl == 1)
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').show();
|
||||
if (jform_vvvvvyjvyg_required)
|
||||
if (jform_vvvvvylvyg_required)
|
||||
{
|
||||
updateFieldRequired('css',0);
|
||||
jQuery('#jform_css').prop('required','required');
|
||||
jQuery('#jform_css').attr('aria-required',true);
|
||||
jQuery('#jform_css').addClass('required');
|
||||
jform_vvvvvyjvyg_required = false;
|
||||
jform_vvvvvylvyg_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyjvyg_required)
|
||||
if (!jform_vvvvvylvyg_required)
|
||||
{
|
||||
updateFieldRequired('css',1);
|
||||
jQuery('#jform_css').removeAttr('required');
|
||||
jQuery('#jform_css').removeAttr('aria-required');
|
||||
jQuery('#jform_css').removeClass('required');
|
||||
jform_vvvvvyjvyg_required = true;
|
||||
jform_vvvvvylvyg_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyk function
|
||||
function vvvvvyk(add_php_ajax_vvvvvyk)
|
||||
// the vvvvvym function
|
||||
function vvvvvym(add_php_ajax_vvvvvym)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvyk == 1)
|
||||
if (add_php_ajax_vvvvvym == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
|
||||
if (jform_vvvvvykvyh_required)
|
||||
if (jform_vvvvvymvyh_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_vvvvvykvyh_required = false;
|
||||
jform_vvvvvymvyh_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -391,13 +391,13 @@ function vvvvvyk(add_php_ajax_vvvvvyk)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
|
||||
if (!jform_vvvvvykvyh_required)
|
||||
if (!jform_vvvvvymvyh_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_vvvvvykvyh_required = true;
|
||||
jform_vvvvvymvyh_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,43 +23,43 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvzxvzp_required = false;
|
||||
jform_vvvvvzyvzq_required = false;
|
||||
jform_vvvvvzyvzr_required = false;
|
||||
jform_vvvvvzyvzs_required = false;
|
||||
jform_vvvvvzzvzp_required = false;
|
||||
jform_vvvvwaavzq_required = false;
|
||||
jform_vvvvwaavzr_required = false;
|
||||
jform_vvvvwaavzs_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var target_vvvvvzx = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvvzx(target_vvvvvzx);
|
||||
|
||||
var target_vvvvvzy = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvvzy(target_vvvvvzy);
|
||||
|
||||
var target_vvvvvzz = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvvzz = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvvzz(target_vvvvvzz,type_vvvvvzz);
|
||||
vvvvvzz(target_vvvvvzz);
|
||||
|
||||
var type_vvvvwaa = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwaa = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwaa(type_vvvvwaa,target_vvvvwaa);
|
||||
vvvvwaa(target_vvvvwaa);
|
||||
|
||||
var target_vvvvwab = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwab = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwab(target_vvvvwab,type_vvvvwab);
|
||||
|
||||
var type_vvvvwac = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwac(type_vvvvwac,target_vvvvwac);
|
||||
});
|
||||
|
||||
// the vvvvvzx function
|
||||
function vvvvvzx(target_vvvvvzx)
|
||||
// the vvvvvzz function
|
||||
function vvvvvzz(target_vvvvvzz)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvvzx == 2)
|
||||
if (target_vvvvvzz == 2)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').show();
|
||||
if (jform_vvvvvzxvzp_required)
|
||||
if (jform_vvvvvzzvzp_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_vvvvvzxvzp_required = false;
|
||||
jform_vvvvvzzvzp_required = false;
|
||||
}
|
||||
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
||||
@ -68,99 +68,99 @@ function vvvvvzx(target_vvvvvzx)
|
||||
else
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').hide();
|
||||
if (!jform_vvvvvzxvzp_required)
|
||||
if (!jform_vvvvvzzvzp_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_vvvvvzxvzp_required = true;
|
||||
jform_vvvvvzzvzp_required = true;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
||||
jQuery('#jform_system_name').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzy function
|
||||
function vvvvvzy(target_vvvvvzy)
|
||||
// the vvvvwaa function
|
||||
function vvvvwaa(target_vvvvwaa)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvvzy == 1)
|
||||
if (target_vvvvwaa == 1)
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').show();
|
||||
if (jform_vvvvvzyvzq_required)
|
||||
if (jform_vvvvwaavzq_required)
|
||||
{
|
||||
updateFieldRequired('component',0);
|
||||
jQuery('#jform_component').prop('required','required');
|
||||
jQuery('#jform_component').attr('aria-required',true);
|
||||
jQuery('#jform_component').addClass('required');
|
||||
jform_vvvvvzyvzq_required = false;
|
||||
jform_vvvvwaavzq_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
if (jform_vvvvvzyvzr_required)
|
||||
if (jform_vvvvwaavzr_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvvzyvzr_required = false;
|
||||
jform_vvvvwaavzr_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_vvvvvzyvzs_required)
|
||||
if (jform_vvvvwaavzs_required)
|
||||
{
|
||||
updateFieldRequired('type',0);
|
||||
jQuery('#jform_type').prop('required','required');
|
||||
jQuery('#jform_type').attr('aria-required',true);
|
||||
jQuery('#jform_type').addClass('required');
|
||||
jform_vvvvvzyvzs_required = false;
|
||||
jform_vvvvwaavzs_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').hide();
|
||||
if (!jform_vvvvvzyvzq_required)
|
||||
if (!jform_vvvvwaavzq_required)
|
||||
{
|
||||
updateFieldRequired('component',1);
|
||||
jQuery('#jform_component').removeAttr('required');
|
||||
jQuery('#jform_component').removeAttr('aria-required');
|
||||
jQuery('#jform_component').removeClass('required');
|
||||
jform_vvvvvzyvzq_required = true;
|
||||
jform_vvvvwaavzq_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
if (!jform_vvvvvzyvzr_required)
|
||||
if (!jform_vvvvwaavzr_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvvzyvzr_required = true;
|
||||
jform_vvvvwaavzr_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_vvvvvzyvzs_required)
|
||||
if (!jform_vvvvwaavzs_required)
|
||||
{
|
||||
updateFieldRequired('type',1);
|
||||
jQuery('#jform_type').removeAttr('required');
|
||||
jQuery('#jform_type').removeAttr('aria-required');
|
||||
jQuery('#jform_type').removeClass('required');
|
||||
jform_vvvvvzyvzs_required = true;
|
||||
jform_vvvvwaavzs_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzz function
|
||||
function vvvvvzz(target_vvvvvzz,type_vvvvvzz)
|
||||
// the vvvvwab function
|
||||
function vvvvwab(target_vvvvwab,type_vvvvwab)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvvzz == 1 && type_vvvvvzz == 1)
|
||||
if (target_vvvvwab == 1 && type_vvvvwab == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
@ -172,11 +172,11 @@ function vvvvvzz(target_vvvvvzz,type_vvvvvzz)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaa function
|
||||
function vvvvwaa(type_vvvvwaa,target_vvvvwaa)
|
||||
// the vvvvwac function
|
||||
function vvvvwac(type_vvvvwac,target_vvvvwac)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwaa == 1 && target_vvvvwaa == 1)
|
||||
if (type_vvvvwac == 1 && target_vvvvwac == 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
@ -23,210 +23,96 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwajvzv_required = false;
|
||||
jform_vvvvwakvzw_required = false;
|
||||
jform_vvvvwalvzx_required = false;
|
||||
jform_vvvvwamvzy_required = false;
|
||||
jform_vvvvwapvzz_required = false;
|
||||
jform_vvvvwaqwaa_required = false;
|
||||
jform_vvvvwarwab_required = false;
|
||||
jform_vvvvwaswac_required = false;
|
||||
jform_vvvvwalvzv_required = false;
|
||||
jform_vvvvwamvzw_required = false;
|
||||
jform_vvvvwanvzx_required = false;
|
||||
jform_vvvvwaovzy_required = false;
|
||||
jform_vvvvwarvzz_required = false;
|
||||
jform_vvvvwaswaa_required = false;
|
||||
jform_vvvvwatwab_required = false;
|
||||
jform_vvvvwauwac_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var datalenght_vvvvwaj = jQuery("#jform_datalenght").val();
|
||||
vvvvwaj(datalenght_vvvvwaj);
|
||||
var datalenght_vvvvwal = jQuery("#jform_datalenght").val();
|
||||
vvvvwal(datalenght_vvvvwal);
|
||||
|
||||
var datadefault_vvvvwak = jQuery("#jform_datadefault").val();
|
||||
vvvvwak(datadefault_vvvvwak);
|
||||
var datadefault_vvvvwam = jQuery("#jform_datadefault").val();
|
||||
vvvvwam(datadefault_vvvvwam);
|
||||
|
||||
var datatype_vvvvwal = jQuery("#jform_datatype").val();
|
||||
vvvvwal(datatype_vvvvwal);
|
||||
|
||||
var datatype_vvvvwam = jQuery("#jform_datatype").val();
|
||||
vvvvwam(datatype_vvvvwam);
|
||||
|
||||
var store_vvvvwan = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwan = jQuery("#jform_datatype").val();
|
||||
vvvvwan(store_vvvvwan,datatype_vvvvwan);
|
||||
vvvvwan(datatype_vvvvwan);
|
||||
|
||||
var add_css_view_vvvvwap = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwap(add_css_view_vvvvwap);
|
||||
var datatype_vvvvwao = jQuery("#jform_datatype").val();
|
||||
vvvvwao(datatype_vvvvwao);
|
||||
|
||||
var add_css_views_vvvvwaq = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwaq(add_css_views_vvvvwaq);
|
||||
var store_vvvvwap = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwap = jQuery("#jform_datatype").val();
|
||||
vvvvwap(store_vvvvwap,datatype_vvvvwap);
|
||||
|
||||
var add_javascript_view_footer_vvvvwar = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwar(add_javascript_view_footer_vvvvwar);
|
||||
var add_css_view_vvvvwar = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwar(add_css_view_vvvvwar);
|
||||
|
||||
var add_javascript_views_footer_vvvvwas = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwas(add_javascript_views_footer_vvvvwas);
|
||||
var add_css_views_vvvvwas = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwas(add_css_views_vvvvwas);
|
||||
|
||||
var add_javascript_view_footer_vvvvwat = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwat(add_javascript_view_footer_vvvvwat);
|
||||
|
||||
var add_javascript_views_footer_vvvvwau = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwau(add_javascript_views_footer_vvvvwau);
|
||||
});
|
||||
|
||||
// the vvvvwaj function
|
||||
function vvvvwaj(datalenght_vvvvwaj)
|
||||
// the vvvvwal function
|
||||
function vvvvwal(datalenght_vvvvwal)
|
||||
{
|
||||
if (isSet(datalenght_vvvvwaj) && datalenght_vvvvwaj.constructor !== Array)
|
||||
if (isSet(datalenght_vvvvwal) && datalenght_vvvvwal.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaj = datalenght_vvvvwaj;
|
||||
var datalenght_vvvvwaj = [];
|
||||
datalenght_vvvvwaj.push(temp_vvvvwaj);
|
||||
var temp_vvvvwal = datalenght_vvvvwal;
|
||||
var datalenght_vvvvwal = [];
|
||||
datalenght_vvvvwal.push(temp_vvvvwal);
|
||||
}
|
||||
else if (!isSet(datalenght_vvvvwaj))
|
||||
else if (!isSet(datalenght_vvvvwal))
|
||||
{
|
||||
var datalenght_vvvvwaj = [];
|
||||
var datalenght_vvvvwal = [];
|
||||
}
|
||||
var datalenght = datalenght_vvvvwaj.some(datalenght_vvvvwaj_SomeFunc);
|
||||
var datalenght = datalenght_vvvvwal.some(datalenght_vvvvwal_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datalenght)
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').show();
|
||||
if (jform_vvvvwajvzv_required)
|
||||
if (jform_vvvvwalvzv_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_vvvvwajvzv_required = false;
|
||||
jform_vvvvwalvzv_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').hide();
|
||||
if (!jform_vvvvwajvzv_required)
|
||||
if (!jform_vvvvwalvzv_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_vvvvwajvzv_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaj Some function
|
||||
function datalenght_vvvvwaj_SomeFunc(datalenght_vvvvwaj)
|
||||
{
|
||||
// set the function logic
|
||||
if (datalenght_vvvvwaj == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwak function
|
||||
function vvvvwak(datadefault_vvvvwak)
|
||||
{
|
||||
if (isSet(datadefault_vvvvwak) && datadefault_vvvvwak.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwak = datadefault_vvvvwak;
|
||||
var datadefault_vvvvwak = [];
|
||||
datadefault_vvvvwak.push(temp_vvvvwak);
|
||||
}
|
||||
else if (!isSet(datadefault_vvvvwak))
|
||||
{
|
||||
var datadefault_vvvvwak = [];
|
||||
}
|
||||
var datadefault = datadefault_vvvvwak.some(datadefault_vvvvwak_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datadefault)
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
if (jform_vvvvwakvzw_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_vvvvwakvzw_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
if (!jform_vvvvwakvzw_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_vvvvwakvzw_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwak Some function
|
||||
function datadefault_vvvvwak_SomeFunc(datadefault_vvvvwak)
|
||||
{
|
||||
// set the function logic
|
||||
if (datadefault_vvvvwak == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwal function
|
||||
function vvvvwal(datatype_vvvvwal)
|
||||
{
|
||||
if (isSet(datatype_vvvvwal) && datatype_vvvvwal.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwal = datatype_vvvvwal;
|
||||
var datatype_vvvvwal = [];
|
||||
datatype_vvvvwal.push(temp_vvvvwal);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwal))
|
||||
{
|
||||
var datatype_vvvvwal = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwal.some(datatype_vvvvwal_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_vvvvwalvzx_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwalvzx_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_vvvvwalvzx_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwalvzx_required = true;
|
||||
jform_vvvvwalvzv_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwal Some function
|
||||
function datatype_vvvvwal_SomeFunc(datatype_vvvvwal)
|
||||
function datalenght_vvvvwal_SomeFunc(datalenght_vvvvwal)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwal == 'CHAR' || datatype_vvvvwal == 'VARCHAR' || datatype_vvvvwal == 'DATETIME' || datatype_vvvvwal == 'DATE' || datatype_vvvvwal == 'TIME' || datatype_vvvvwal == 'INT' || datatype_vvvvwal == 'TINYINT' || datatype_vvvvwal == 'BIGINT' || datatype_vvvvwal == 'FLOAT' || datatype_vvvvwal == 'DECIMAL' || datatype_vvvvwal == 'DOUBLE')
|
||||
if (datalenght_vvvvwal == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -234,54 +120,54 @@ function datatype_vvvvwal_SomeFunc(datatype_vvvvwal)
|
||||
}
|
||||
|
||||
// the vvvvwam function
|
||||
function vvvvwam(datatype_vvvvwam)
|
||||
function vvvvwam(datadefault_vvvvwam)
|
||||
{
|
||||
if (isSet(datatype_vvvvwam) && datatype_vvvvwam.constructor !== Array)
|
||||
if (isSet(datadefault_vvvvwam) && datadefault_vvvvwam.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwam = datatype_vvvvwam;
|
||||
var datatype_vvvvwam = [];
|
||||
datatype_vvvvwam.push(temp_vvvvwam);
|
||||
var temp_vvvvwam = datadefault_vvvvwam;
|
||||
var datadefault_vvvvwam = [];
|
||||
datadefault_vvvvwam.push(temp_vvvvwam);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwam))
|
||||
else if (!isSet(datadefault_vvvvwam))
|
||||
{
|
||||
var datatype_vvvvwam = [];
|
||||
var datadefault_vvvvwam = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwam.some(datatype_vvvvwam_SomeFunc);
|
||||
var datadefault = datadefault_vvvvwam.some(datadefault_vvvvwam_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
if (datadefault)
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').show();
|
||||
if (jform_vvvvwamvzy_required)
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
if (jform_vvvvwamvzw_required)
|
||||
{
|
||||
updateFieldRequired('store',0);
|
||||
jQuery('#jform_store').prop('required','required');
|
||||
jQuery('#jform_store').attr('aria-required',true);
|
||||
jQuery('#jform_store').addClass('required');
|
||||
jform_vvvvwamvzy_required = false;
|
||||
updateFieldRequired('datadefault_other',0);
|
||||
jQuery('#jform_datadefault_other').prop('required','required');
|
||||
jQuery('#jform_datadefault_other').attr('aria-required',true);
|
||||
jQuery('#jform_datadefault_other').addClass('required');
|
||||
jform_vvvvwamvzw_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').hide();
|
||||
if (!jform_vvvvwamvzy_required)
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
if (!jform_vvvvwamvzw_required)
|
||||
{
|
||||
updateFieldRequired('store',1);
|
||||
jQuery('#jform_store').removeAttr('required');
|
||||
jQuery('#jform_store').removeAttr('aria-required');
|
||||
jQuery('#jform_store').removeClass('required');
|
||||
jform_vvvvwamvzy_required = true;
|
||||
updateFieldRequired('datadefault_other',1);
|
||||
jQuery('#jform_datadefault_other').removeAttr('required');
|
||||
jQuery('#jform_datadefault_other').removeAttr('aria-required');
|
||||
jQuery('#jform_datadefault_other').removeClass('required');
|
||||
jform_vvvvwamvzw_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwam Some function
|
||||
function datatype_vvvvwam_SomeFunc(datatype_vvvvwam)
|
||||
function datadefault_vvvvwam_SomeFunc(datadefault_vvvvwam)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwam == 'CHAR' || datatype_vvvvwam == 'VARCHAR' || datatype_vvvvwam == 'TEXT' || datatype_vvvvwam == 'MEDIUMTEXT' || datatype_vvvvwam == 'LONGTEXT')
|
||||
if (datadefault_vvvvwam == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -289,20 +175,8 @@ function datatype_vvvvwam_SomeFunc(datatype_vvvvwam)
|
||||
}
|
||||
|
||||
// the vvvvwan function
|
||||
function vvvvwan(store_vvvvwan,datatype_vvvvwan)
|
||||
function vvvvwan(datatype_vvvvwan)
|
||||
{
|
||||
if (isSet(store_vvvvwan) && store_vvvvwan.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwan = store_vvvvwan;
|
||||
var store_vvvvwan = [];
|
||||
store_vvvvwan.push(temp_vvvvwan);
|
||||
}
|
||||
else if (!isSet(store_vvvvwan))
|
||||
{
|
||||
var store_vvvvwan = [];
|
||||
}
|
||||
var store = store_vvvvwan.some(store_vvvvwan_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwan) && datatype_vvvvwan.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwan = datatype_vvvvwan;
|
||||
@ -317,32 +191,97 @@ function vvvvwan(store_vvvvwan,datatype_vvvvwan)
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (store && datatype)
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('.note_vdm_encryption').closest('.control-group').show();
|
||||
jQuery('#jform_datadefault').closest('.control-group').show();
|
||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||
jQuery('#jform_indexes').closest('.control-group').show();
|
||||
if (jform_vvvvwanvzx_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwanvzx_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_vdm_encryption').closest('.control-group').hide();
|
||||
jQuery('#jform_datadefault').closest('.control-group').hide();
|
||||
jQuery('#jform_datalenght').closest('.control-group').hide();
|
||||
jQuery('#jform_indexes').closest('.control-group').hide();
|
||||
if (!jform_vvvvwanvzx_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwanvzx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwan Some function
|
||||
function store_vvvvwan_SomeFunc(store_vvvvwan)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwan == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwan Some function
|
||||
function datatype_vvvvwan_SomeFunc(datatype_vvvvwan)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwan == 'CHAR' || datatype_vvvvwan == 'VARCHAR' || datatype_vvvvwan == 'TEXT' || datatype_vvvvwan == 'MEDIUMTEXT' || datatype_vvvvwan == 'LONGTEXT')
|
||||
if (datatype_vvvvwan == 'CHAR' || datatype_vvvvwan == 'VARCHAR' || datatype_vvvvwan == 'DATETIME' || datatype_vvvvwan == 'DATE' || datatype_vvvvwan == 'TIME' || datatype_vvvvwan == 'INT' || datatype_vvvvwan == 'TINYINT' || datatype_vvvvwan == 'BIGINT' || datatype_vvvvwan == 'FLOAT' || datatype_vvvvwan == 'DECIMAL' || datatype_vvvvwan == 'DOUBLE')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwao function
|
||||
function vvvvwao(datatype_vvvvwao)
|
||||
{
|
||||
if (isSet(datatype_vvvvwao) && datatype_vvvvwao.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwao = datatype_vvvvwao;
|
||||
var datatype_vvvvwao = [];
|
||||
datatype_vvvvwao.push(temp_vvvvwao);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwao))
|
||||
{
|
||||
var datatype_vvvvwao = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwao.some(datatype_vvvvwao_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').show();
|
||||
if (jform_vvvvwaovzy_required)
|
||||
{
|
||||
updateFieldRequired('store',0);
|
||||
jQuery('#jform_store').prop('required','required');
|
||||
jQuery('#jform_store').attr('aria-required',true);
|
||||
jQuery('#jform_store').addClass('required');
|
||||
jform_vvvvwaovzy_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaovzy_required)
|
||||
{
|
||||
updateFieldRequired('store',1);
|
||||
jQuery('#jform_store').removeAttr('required');
|
||||
jQuery('#jform_store').removeAttr('aria-required');
|
||||
jQuery('#jform_store').removeClass('required');
|
||||
jform_vvvvwaovzy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwao Some function
|
||||
function datatype_vvvvwao_SomeFunc(datatype_vvvvwao)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwao == 'CHAR' || datatype_vvvvwao == 'VARCHAR' || datatype_vvvvwao == 'TEXT' || datatype_vvvvwao == 'MEDIUMTEXT' || datatype_vvvvwao == 'LONGTEXT')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -350,125 +289,186 @@ function datatype_vvvvwan_SomeFunc(datatype_vvvvwan)
|
||||
}
|
||||
|
||||
// the vvvvwap function
|
||||
function vvvvwap(add_css_view_vvvvwap)
|
||||
function vvvvwap(store_vvvvwap,datatype_vvvvwap)
|
||||
{
|
||||
if (isSet(store_vvvvwap) && store_vvvvwap.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwap = store_vvvvwap;
|
||||
var store_vvvvwap = [];
|
||||
store_vvvvwap.push(temp_vvvvwap);
|
||||
}
|
||||
else if (!isSet(store_vvvvwap))
|
||||
{
|
||||
var store_vvvvwap = [];
|
||||
}
|
||||
var store = store_vvvvwap.some(store_vvvvwap_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwap) && datatype_vvvvwap.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwap = datatype_vvvvwap;
|
||||
var datatype_vvvvwap = [];
|
||||
datatype_vvvvwap.push(temp_vvvvwap);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwap))
|
||||
{
|
||||
var datatype_vvvvwap = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwap.some(datatype_vvvvwap_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (store && datatype)
|
||||
{
|
||||
jQuery('.note_whmcs_encryption').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwap Some function
|
||||
function store_vvvvwap_SomeFunc(store_vvvvwap)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvwap == 1)
|
||||
if (store_vvvvwap == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwap Some function
|
||||
function datatype_vvvvwap_SomeFunc(datatype_vvvvwap)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwap == 'CHAR' || datatype_vvvvwap == 'VARCHAR' || datatype_vvvvwap == 'TEXT' || datatype_vvvvwap == 'MEDIUMTEXT' || datatype_vvvvwap == 'LONGTEXT')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwar function
|
||||
function vvvvwar(add_css_view_vvvvwar)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvwar == 1)
|
||||
{
|
||||
jQuery('#jform_css_view').closest('.control-group').show();
|
||||
if (jform_vvvvwapvzz_required)
|
||||
if (jform_vvvvwarvzz_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_vvvvwapvzz_required = false;
|
||||
jform_vvvvwarvzz_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvwapvzz_required)
|
||||
if (!jform_vvvvwarvzz_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_vvvvwapvzz_required = true;
|
||||
jform_vvvvwarvzz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaq function
|
||||
function vvvvwaq(add_css_views_vvvvwaq)
|
||||
// the vvvvwas function
|
||||
function vvvvwas(add_css_views_vvvvwas)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_views_vvvvwaq == 1)
|
||||
if (add_css_views_vvvvwas == 1)
|
||||
{
|
||||
jQuery('#jform_css_views').closest('.control-group').show();
|
||||
if (jform_vvvvwaqwaa_required)
|
||||
if (jform_vvvvwaswaa_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_vvvvwaqwaa_required = false;
|
||||
jform_vvvvwaswaa_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_views').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaqwaa_required)
|
||||
if (!jform_vvvvwaswaa_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_vvvvwaqwaa_required = true;
|
||||
jform_vvvvwaswaa_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwar function
|
||||
function vvvvwar(add_javascript_view_footer_vvvvwar)
|
||||
// the vvvvwat function
|
||||
function vvvvwat(add_javascript_view_footer_vvvvwat)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_footer_vvvvwar == 1)
|
||||
if (add_javascript_view_footer_vvvvwat == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
|
||||
if (jform_vvvvwarwab_required)
|
||||
if (jform_vvvvwatwab_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_vvvvwarwab_required = false;
|
||||
jform_vvvvwatwab_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
|
||||
if (!jform_vvvvwarwab_required)
|
||||
if (!jform_vvvvwatwab_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_vvvvwarwab_required = true;
|
||||
jform_vvvvwatwab_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwas function
|
||||
function vvvvwas(add_javascript_views_footer_vvvvwas)
|
||||
// the vvvvwau function
|
||||
function vvvvwau(add_javascript_views_footer_vvvvwau)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_footer_vvvvwas == 1)
|
||||
if (add_javascript_views_footer_vvvvwau == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
|
||||
if (jform_vvvvwaswac_required)
|
||||
if (jform_vvvvwauwac_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_vvvvwaswac_required = false;
|
||||
jform_vvvvwauwac_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaswac_required)
|
||||
if (!jform_vvvvwauwac_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_vvvvwaswac_required = true;
|
||||
jform_vvvvwauwac_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -342,14 +342,13 @@
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_HINT"
|
||||
required="true" />
|
||||
<!-- Note_vdm_encryption Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<!-- Note_whmcs_encryption Field. Type: Note. A None Database Field. (joomla)-->
|
||||
<field type="note"
|
||||
name="note_vdm_encryption"
|
||||
label="COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_DESCRIPTION"
|
||||
name="note_whmcs_encryption"
|
||||
label="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_DESCRIPTION"
|
||||
heading="h4"
|
||||
class="alert alert-success note_vdm_encryption"
|
||||
close="true" />
|
||||
class="alert alert-success note_whmcs_encryption" />
|
||||
<!-- Javascript_views_footer Field. Type: Textarea. (joomla)-->
|
||||
<field type="textarea"
|
||||
name="javascript_views_footer"
|
||||
|
@ -23,207 +23,97 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbdwao_required = false;
|
||||
jform_vvvvwbewap_required = false;
|
||||
jform_vvvvwbfwaq_required = false;
|
||||
jform_vvvvwbgwar_required = false;
|
||||
jform_vvvvwbhwas_required = false;
|
||||
jform_vvvvwbiwat_required = false;
|
||||
jform_vvvvwbfwao_required = false;
|
||||
jform_vvvvwbgwap_required = false;
|
||||
jform_vvvvwbhwaq_required = false;
|
||||
jform_vvvvwbiwar_required = false;
|
||||
jform_vvvvwbjwas_required = false;
|
||||
jform_vvvvwbkwat_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var location_vvvvwbd = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbd(location_vvvvwbd);
|
||||
var location_vvvvwbf = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbf(location_vvvvwbf);
|
||||
|
||||
var location_vvvvwbe = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbe(location_vvvvwbe);
|
||||
|
||||
var type_vvvvwbf = jQuery("#jform_type").val();
|
||||
vvvvwbf(type_vvvvwbf);
|
||||
|
||||
var type_vvvvwbg = jQuery("#jform_type").val();
|
||||
vvvvwbg(type_vvvvwbg);
|
||||
var location_vvvvwbg = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbg(location_vvvvwbg);
|
||||
|
||||
var type_vvvvwbh = jQuery("#jform_type").val();
|
||||
vvvvwbh(type_vvvvwbh);
|
||||
|
||||
var target_vvvvwbi = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbi(target_vvvvwbi);
|
||||
var type_vvvvwbi = jQuery("#jform_type").val();
|
||||
vvvvwbi(type_vvvvwbi);
|
||||
|
||||
var type_vvvvwbj = jQuery("#jform_type").val();
|
||||
vvvvwbj(type_vvvvwbj);
|
||||
|
||||
var target_vvvvwbk = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbk(target_vvvvwbk);
|
||||
});
|
||||
|
||||
// the vvvvwbd function
|
||||
function vvvvwbd(location_vvvvwbd)
|
||||
// the vvvvwbf function
|
||||
function vvvvwbf(location_vvvvwbf)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwbd == 1)
|
||||
if (location_vvvvwbf == 1)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
if (jform_vvvvwbdwao_required)
|
||||
if (jform_vvvvwbfwao_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_vvvvwbdwao_required = false;
|
||||
jform_vvvvwbfwao_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbdwao_required)
|
||||
if (!jform_vvvvwbfwao_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_vvvvwbdwao_required = true;
|
||||
jform_vvvvwbfwao_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbe function
|
||||
function vvvvwbe(location_vvvvwbe)
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(location_vvvvwbg)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwbe == 2)
|
||||
if (location_vvvvwbg == 2)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
if (jform_vvvvwbewap_required)
|
||||
if (jform_vvvvwbgwap_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_vvvvwbewap_required = false;
|
||||
jform_vvvvwbgwap_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbewap_required)
|
||||
if (!jform_vvvvwbgwap_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_vvvvwbewap_required = true;
|
||||
jform_vvvvwbgwap_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbf function
|
||||
function vvvvwbf(type_vvvvwbf)
|
||||
{
|
||||
if (isSet(type_vvvvwbf) && type_vvvvwbf.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbf = type_vvvvwbf;
|
||||
var type_vvvvwbf = [];
|
||||
type_vvvvwbf.push(temp_vvvvwbf);
|
||||
}
|
||||
else if (!isSet(type_vvvvwbf))
|
||||
{
|
||||
var type_vvvvwbf = [];
|
||||
}
|
||||
var type = type_vvvvwbf.some(type_vvvvwbf_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
if (jform_vvvvwbfwaq_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwbfwaq_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbfwaq_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwbfwaq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbf Some function
|
||||
function type_vvvvwbf_SomeFunc(type_vvvvwbf)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbf == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbg function
|
||||
function vvvvwbg(type_vvvvwbg)
|
||||
{
|
||||
if (isSet(type_vvvvwbg) && type_vvvvwbg.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbg = type_vvvvwbg;
|
||||
var type_vvvvwbg = [];
|
||||
type_vvvvwbg.push(temp_vvvvwbg);
|
||||
}
|
||||
else if (!isSet(type_vvvvwbg))
|
||||
{
|
||||
var type_vvvvwbg = [];
|
||||
}
|
||||
var type = type_vvvvwbg.some(type_vvvvwbg_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
if (jform_vvvvwbgwar_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwbgwar_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbgwar_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwbgwar_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbg Some function
|
||||
function type_vvvvwbg_SomeFunc(type_vvvvwbg)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbg == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbh function
|
||||
function vvvvwbh(type_vvvvwbh)
|
||||
{
|
||||
@ -243,27 +133,27 @@ function vvvvwbh(type_vvvvwbh)
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||
if (jform_vvvvwbhwas_required)
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
if (jform_vvvvwbhwaq_required)
|
||||
{
|
||||
updateFieldRequired('content',0);
|
||||
jQuery('#jform_content').prop('required','required');
|
||||
jQuery('#jform_content').attr('aria-required',true);
|
||||
jQuery('#jform_content').addClass('required');
|
||||
jform_vvvvwbhwas_required = false;
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwbhwaq_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbhwas_required)
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbhwaq_required)
|
||||
{
|
||||
updateFieldRequired('content',1);
|
||||
jQuery('#jform_content').removeAttr('required');
|
||||
jQuery('#jform_content').removeAttr('aria-required');
|
||||
jQuery('#jform_content').removeClass('required');
|
||||
jform_vvvvwbhwas_required = true;
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwbhwaq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -272,7 +162,7 @@ function vvvvwbh(type_vvvvwbh)
|
||||
function type_vvvvwbh_SomeFunc(type_vvvvwbh)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbh == 2)
|
||||
if (type_vvvvwbh == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -280,32 +170,142 @@ function type_vvvvwbh_SomeFunc(type_vvvvwbh)
|
||||
}
|
||||
|
||||
// the vvvvwbi function
|
||||
function vvvvwbi(target_vvvvwbi)
|
||||
function vvvvwbi(type_vvvvwbi)
|
||||
{
|
||||
if (isSet(type_vvvvwbi) && type_vvvvwbi.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbi = type_vvvvwbi;
|
||||
var type_vvvvwbi = [];
|
||||
type_vvvvwbi.push(temp_vvvvwbi);
|
||||
}
|
||||
else if (!isSet(type_vvvvwbi))
|
||||
{
|
||||
var type_vvvvwbi = [];
|
||||
}
|
||||
var type = type_vvvvwbi.some(type_vvvvwbi_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
if (jform_vvvvwbiwar_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwbiwar_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbiwar_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwbiwar_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbi Some function
|
||||
function type_vvvvwbi_SomeFunc(type_vvvvwbi)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwbi == 1)
|
||||
if (type_vvvvwbi == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbj function
|
||||
function vvvvwbj(type_vvvvwbj)
|
||||
{
|
||||
if (isSet(type_vvvvwbj) && type_vvvvwbj.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbj = type_vvvvwbj;
|
||||
var type_vvvvwbj = [];
|
||||
type_vvvvwbj.push(temp_vvvvwbj);
|
||||
}
|
||||
else if (!isSet(type_vvvvwbj))
|
||||
{
|
||||
var type_vvvvwbj = [];
|
||||
}
|
||||
var type = type_vvvvwbj.some(type_vvvvwbj_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||
if (jform_vvvvwbjwas_required)
|
||||
{
|
||||
updateFieldRequired('content',0);
|
||||
jQuery('#jform_content').prop('required','required');
|
||||
jQuery('#jform_content').attr('aria-required',true);
|
||||
jQuery('#jform_content').addClass('required');
|
||||
jform_vvvvwbjwas_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbjwas_required)
|
||||
{
|
||||
updateFieldRequired('content',1);
|
||||
jQuery('#jform_content').removeAttr('required');
|
||||
jQuery('#jform_content').removeAttr('aria-required');
|
||||
jQuery('#jform_content').removeClass('required');
|
||||
jform_vvvvwbjwas_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbj Some function
|
||||
function type_vvvvwbj_SomeFunc(type_vvvvwbj)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbj == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbk function
|
||||
function vvvvwbk(target_vvvvwbk)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwbk == 1)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
if (jform_vvvvwbiwat_required)
|
||||
if (jform_vvvvwbkwat_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_vvvvwbiwat_required = false;
|
||||
jform_vvvvwbkwat_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbiwat_required)
|
||||
if (!jform_vvvvwbkwat_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_vvvvwbiwat_required = true;
|
||||
jform_vvvvwbkwat_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -126,6 +126,12 @@ jQuery(document).ready(function()
|
||||
|
||||
var buildcomp_vvvvvww = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvww(buildcomp_vvvvvww);
|
||||
|
||||
var dashboard_type_vvvvvwx = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwx(dashboard_type_vvvvvwx);
|
||||
|
||||
var dashboard_type_vvvvvwy = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwy(dashboard_type_vvvvvwy);
|
||||
});
|
||||
|
||||
// the vvvvvvv function
|
||||
@ -808,6 +814,36 @@ function vvvvvww(buildcomp_vvvvvww)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwx function
|
||||
function vvvvvwx(dashboard_type_vvvvvwx)
|
||||
{
|
||||
// set the function logic
|
||||
if (dashboard_type_vvvvvwx == 2)
|
||||
{
|
||||
jQuery('#jform_dashboard').closest('.control-group').show();
|
||||
jQuery('.note_dynamic_dashboard').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_dashboard').closest('.control-group').hide();
|
||||
jQuery('.note_dynamic_dashboard').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvwy function
|
||||
function vvvvvwy(dashboard_type_vvvvvwy)
|
||||
{
|
||||
// set the function logic
|
||||
if (dashboard_type_vvvvvwy == 1)
|
||||
{
|
||||
jQuery('.note_botton_component_dashboard').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_botton_component_dashboard').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// update required fields
|
||||
function updateFieldRequired(name,status)
|
||||
{
|
||||
@ -846,9 +882,11 @@ function isSet(val)
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
// check what is the dashboard switch
|
||||
var dasboard_type = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
dasboardSwitch(dasboard_type);
|
||||
// set buttons
|
||||
function setButtons1() {
|
||||
addButtonID('component_dashboard','button_component_dashboard', 1);
|
||||
addButtonID('component_files_folders','button_component_files_folders', 1);
|
||||
addButtonID('component_site_views','button_create_edit_views', 1);
|
||||
}
|
||||
@ -915,6 +953,20 @@ function addData(result, where){
|
||||
jQuery(result).insertAfter(jQuery(where).closest('.control-group'));
|
||||
}
|
||||
|
||||
function dasboardSwitch(value){
|
||||
// hide if default
|
||||
if (2 == value) {
|
||||
jQuery('.control-group-componentdashboard-one').hide();
|
||||
} else {
|
||||
// default behaviour
|
||||
if (jQuery('div.control-group-componentdashboard-one').length) {
|
||||
jQuery('.control-group-componentdashboard-one').show();
|
||||
} else {
|
||||
addButtonID('component_dashboard','button_component_dashboard', 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function addButtonID_server(type, size){
|
||||
var getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.getButtonID&format=json&vdm="+vastDevMod);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -23,42 +23,42 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvyxvyu_required = false;
|
||||
jform_vvvvvyzvyu_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyx = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyx(add_php_view_vvvvvyx);
|
||||
var add_php_view_vvvvvyz = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyz(add_php_view_vvvvvyz);
|
||||
});
|
||||
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(add_php_view_vvvvvyx)
|
||||
// the vvvvvyz function
|
||||
function vvvvvyz(add_php_view_vvvvvyz)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyx == 1)
|
||||
if (add_php_view_vvvvvyz == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvyxvyu_required)
|
||||
if (jform_vvvvvyzvyu_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_vvvvvyxvyu_required = false;
|
||||
jform_vvvvvyzvyu_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyxvyu_required)
|
||||
if (!jform_vvvvvyzvyu_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_vvvvvyxvyu_required = true;
|
||||
jform_vvvvvyzvyu_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,18 +23,12 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwacvzt_required = false;
|
||||
jform_vvvvwaivzu_required = false;
|
||||
jform_vvvvwaevzt_required = false;
|
||||
jform_vvvvwakvzu_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var how_vvvvwab = jQuery("#jform_how").val();
|
||||
vvvvwab(how_vvvvwab);
|
||||
|
||||
var how_vvvvwac = jQuery("#jform_how").val();
|
||||
vvvvwac(how_vvvvwac);
|
||||
|
||||
var how_vvvvwad = jQuery("#jform_how").val();
|
||||
vvvvwad(how_vvvvwad);
|
||||
|
||||
@ -50,103 +44,16 @@ jQuery(document).ready(function()
|
||||
var how_vvvvwah = jQuery("#jform_how").val();
|
||||
vvvvwah(how_vvvvwah);
|
||||
|
||||
var type_vvvvwai = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwai(type_vvvvwai);
|
||||
var how_vvvvwai = jQuery("#jform_how").val();
|
||||
vvvvwai(how_vvvvwai);
|
||||
|
||||
var how_vvvvwaj = jQuery("#jform_how").val();
|
||||
vvvvwaj(how_vvvvwaj);
|
||||
|
||||
var type_vvvvwak = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwak(type_vvvvwak);
|
||||
});
|
||||
|
||||
// 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('#jform_addconditions-lbl').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwab Some function
|
||||
function how_vvvvwab_SomeFunc(how_vvvvwab)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwab == 2)
|
||||
{
|
||||
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)
|
||||
{
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').show();
|
||||
if (jform_vvvvwacvzt_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_vvvvwacvzt_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
||||
if (!jform_vvvvwacvzt_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_vvvvwacvzt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwac Some function
|
||||
function how_vvvvwac_SomeFunc(how_vvvvwac)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwac == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwad function
|
||||
function vvvvwad(how_vvvvwad)
|
||||
{
|
||||
@ -166,11 +73,11 @@ function vvvvwad(how_vvvvwad)
|
||||
// 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 vvvvwad(how_vvvvwad)
|
||||
function how_vvvvwad_SomeFunc(how_vvvvwad)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwad == 2 || how_vvvvwad == 3)
|
||||
if (how_vvvvwad == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -204,11 +111,28 @@ function vvvvwae(how_vvvvwae)
|
||||
// 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_vvvvwaevzt_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_vvvvwaevzt_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaevzt_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_vvvvwaevzt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -216,7 +140,7 @@ function vvvvwae(how_vvvvwae)
|
||||
function how_vvvvwae_SomeFunc(how_vvvvwae)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwae == 1 || how_vvvvwae == 2 || how_vvvvwae == 3)
|
||||
if (how_vvvvwae == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -242,15 +166,11 @@ function vvvvwaf(how_vvvvwaf)
|
||||
// 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 vvvvwaf(how_vvvvwaf)
|
||||
function how_vvvvwaf_SomeFunc(how_vvvvwaf)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwaf == 0)
|
||||
if (how_vvvvwaf == 2 || how_vvvvwaf == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -284,13 +204,11 @@ function vvvvwag(how_vvvvwag)
|
||||
// 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 vvvvwag(how_vvvvwag)
|
||||
function how_vvvvwag_SomeFunc(how_vvvvwag)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwag == 1)
|
||||
if (how_vvvvwag == 1 || how_vvvvwag == 2 || how_vvvvwag == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -321,6 +239,88 @@ function vvvvwah(how_vvvvwah)
|
||||
var how = how_vvvvwah.some(how_vvvvwah_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 vvvvwah Some function
|
||||
function how_vvvvwah_SomeFunc(how_vvvvwah)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwah == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwai function
|
||||
function vvvvwai(how_vvvvwai)
|
||||
{
|
||||
if (isSet(how_vvvvwai) && how_vvvvwai.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwai = how_vvvvwai;
|
||||
var how_vvvvwai = [];
|
||||
how_vvvvwai.push(temp_vvvvwai);
|
||||
}
|
||||
else if (!isSet(how_vvvvwai))
|
||||
{
|
||||
var how_vvvvwai = [];
|
||||
}
|
||||
var how = how_vvvvwai.some(how_vvvvwai_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 vvvvwai Some function
|
||||
function how_vvvvwai_SomeFunc(how_vvvvwai)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwai == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaj function
|
||||
function vvvvwaj(how_vvvvwaj)
|
||||
{
|
||||
if (isSet(how_vvvvwaj) && how_vvvvwaj.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaj = how_vvvvwaj;
|
||||
var how_vvvvwaj = [];
|
||||
how_vvvvwaj.push(temp_vvvvwaj);
|
||||
}
|
||||
else if (!isSet(how_vvvvwaj))
|
||||
{
|
||||
var how_vvvvwaj = [];
|
||||
}
|
||||
var how = how_vvvvwaj.some(how_vvvvwaj_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
@ -336,44 +336,44 @@ function vvvvwah(how_vvvvwah)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwah Some function
|
||||
function how_vvvvwah_SomeFunc(how_vvvvwah)
|
||||
// the vvvvwaj Some function
|
||||
function how_vvvvwaj_SomeFunc(how_vvvvwaj)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwah == 4)
|
||||
if (how_vvvvwaj == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwai function
|
||||
function vvvvwai(type_vvvvwai)
|
||||
// the vvvvwak function
|
||||
function vvvvwak(type_vvvvwak)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwai == 2)
|
||||
if (type_vvvvwak == 2)
|
||||
{
|
||||
jQuery('#jform_libraries').closest('.control-group').show();
|
||||
if (jform_vvvvwaivzu_required)
|
||||
if (jform_vvvvwakvzu_required)
|
||||
{
|
||||
updateFieldRequired('libraries',0);
|
||||
jQuery('#jform_libraries').prop('required','required');
|
||||
jQuery('#jform_libraries').attr('aria-required',true);
|
||||
jQuery('#jform_libraries').addClass('required');
|
||||
jform_vvvvwaivzu_required = false;
|
||||
jform_vvvvwakvzu_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_libraries').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaivzu_required)
|
||||
if (!jform_vvvvwakvzu_required)
|
||||
{
|
||||
updateFieldRequired('libraries',1);
|
||||
jQuery('#jform_libraries').removeAttr('required');
|
||||
jQuery('#jform_libraries').removeAttr('aria-required');
|
||||
jQuery('#jform_libraries').removeClass('required');
|
||||
jform_vvvvwaivzu_required = true;
|
||||
jform_vvvvwakvzu_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,28 +23,24 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwatwae_required = false;
|
||||
jform_vvvvwatwaf_required = false;
|
||||
jform_vvvvwatwag_required = false;
|
||||
jform_vvvvwatwah_required = false;
|
||||
jform_vvvvwatwai_required = false;
|
||||
jform_vvvvwauwaj_required = false;
|
||||
jform_vvvvwavwak_required = false;
|
||||
jform_vvvvwaxwal_required = false;
|
||||
jform_vvvvwazwam_required = false;
|
||||
jform_vvvvwavwae_required = false;
|
||||
jform_vvvvwavwaf_required = false;
|
||||
jform_vvvvwavwag_required = false;
|
||||
jform_vvvvwavwah_required = false;
|
||||
jform_vvvvwavwai_required = false;
|
||||
jform_vvvvwawwaj_required = false;
|
||||
jform_vvvvwaxwak_required = false;
|
||||
jform_vvvvwazwal_required = false;
|
||||
jform_vvvvwbbwam_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var protocol_vvvvwat = jQuery("#jform_protocol").val();
|
||||
vvvvwat(protocol_vvvvwat);
|
||||
|
||||
var protocol_vvvvwau = jQuery("#jform_protocol").val();
|
||||
vvvvwau(protocol_vvvvwau);
|
||||
|
||||
var protocol_vvvvwav = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwav = jQuery("#jform_authentication").val();
|
||||
vvvvwav(protocol_vvvvwav,authentication_vvvvwav);
|
||||
vvvvwav(protocol_vvvvwav);
|
||||
|
||||
var protocol_vvvvwaw = jQuery("#jform_protocol").val();
|
||||
vvvvwaw(protocol_vvvvwaw);
|
||||
|
||||
var protocol_vvvvwax = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwax = jQuery("#jform_authentication").val();
|
||||
@ -57,200 +53,14 @@ jQuery(document).ready(function()
|
||||
var protocol_vvvvwbb = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbb = jQuery("#jform_authentication").val();
|
||||
vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb);
|
||||
|
||||
var protocol_vvvvwbd = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbd = jQuery("#jform_authentication").val();
|
||||
vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd);
|
||||
});
|
||||
|
||||
// the vvvvwat function
|
||||
function vvvvwat(protocol_vvvvwat)
|
||||
{
|
||||
if (isSet(protocol_vvvvwat) && protocol_vvvvwat.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwat = protocol_vvvvwat;
|
||||
var protocol_vvvvwat = [];
|
||||
protocol_vvvvwat.push(temp_vvvvwat);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwat))
|
||||
{
|
||||
var protocol_vvvvwat = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwat.some(protocol_vvvvwat_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
if (jform_vvvvwatwae_required)
|
||||
{
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwatwae_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
if (jform_vvvvwatwaf_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwatwaf_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
if (jform_vvvvwatwag_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwatwag_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
if (jform_vvvvwatwah_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwatwah_required = false;
|
||||
}
|
||||
|
||||
jQuery('.note_ssh_security').closest('.control-group').show();
|
||||
jQuery('#jform_username').closest('.control-group').show();
|
||||
if (jform_vvvvwatwai_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwatwai_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
if (!jform_vvvvwatwae_required)
|
||||
{
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwatwae_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
if (!jform_vvvvwatwaf_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwatwaf_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
if (!jform_vvvvwatwag_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwatwag_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
if (!jform_vvvvwatwah_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwatwah_required = true;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').hide();
|
||||
jQuery('#jform_username').closest('.control-group').hide();
|
||||
if (!jform_vvvvwatwai_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwatwai_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwat Some function
|
||||
function protocol_vvvvwat_SomeFunc(protocol_vvvvwat)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwat == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwau function
|
||||
function vvvvwau(protocol_vvvvwau)
|
||||
{
|
||||
if (isSet(protocol_vvvvwau) && protocol_vvvvwau.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwau = protocol_vvvvwau;
|
||||
var protocol_vvvvwau = [];
|
||||
protocol_vvvvwau.push(temp_vvvvwau);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwau))
|
||||
{
|
||||
var protocol_vvvvwau = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwau.some(protocol_vvvvwau_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
if (jform_vvvvwauwaj_required)
|
||||
{
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwauwaj_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
if (!jform_vvvvwauwaj_required)
|
||||
{
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwauwaj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwau Some function
|
||||
function protocol_vvvvwau_SomeFunc(protocol_vvvvwau)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwau == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwav function
|
||||
function vvvvwav(protocol_vvvvwav,authentication_vvvvwav)
|
||||
function vvvvwav(protocol_vvvvwav)
|
||||
{
|
||||
if (isSet(protocol_vvvvwav) && protocol_vvvvwav.constructor !== Array)
|
||||
{
|
||||
@ -264,43 +74,109 @@ function vvvvwav(protocol_vvvvwav,authentication_vvvvwav)
|
||||
}
|
||||
var protocol = protocol_vvvvwav.some(protocol_vvvvwav_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwav) && authentication_vvvvwav.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwav = authentication_vvvvwav;
|
||||
var authentication_vvvvwav = [];
|
||||
authentication_vvvvwav.push(temp_vvvvwav);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwav))
|
||||
{
|
||||
var authentication_vvvvwav = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwav.some(authentication_vvvvwav_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
if (jform_vvvvwavwak_required)
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
if (jform_vvvvwavwae_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwavwak_required = false;
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwavwae_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
if (jform_vvvvwavwaf_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwavwaf_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
if (jform_vvvvwavwag_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwavwag_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
if (jform_vvvvwavwah_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwavwah_required = false;
|
||||
}
|
||||
|
||||
jQuery('.note_ssh_security').closest('.control-group').show();
|
||||
jQuery('#jform_username').closest('.control-group').show();
|
||||
if (jform_vvvvwavwai_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwavwai_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
if (!jform_vvvvwavwak_required)
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
if (!jform_vvvvwavwae_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwavwak_required = true;
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwavwae_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
if (!jform_vvvvwavwaf_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwavwaf_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
if (!jform_vvvvwavwag_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwavwag_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
if (!jform_vvvvwavwah_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwavwah_required = true;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').hide();
|
||||
jQuery('#jform_username').closest('.control-group').hide();
|
||||
if (!jform_vvvvwavwai_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwavwai_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -316,11 +192,57 @@ function protocol_vvvvwav_SomeFunc(protocol_vvvvwav)
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwav Some function
|
||||
function authentication_vvvvwav_SomeFunc(authentication_vvvvwav)
|
||||
// the vvvvwaw function
|
||||
function vvvvwaw(protocol_vvvvwaw)
|
||||
{
|
||||
if (isSet(protocol_vvvvwaw) && protocol_vvvvwaw.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaw = protocol_vvvvwaw;
|
||||
var protocol_vvvvwaw = [];
|
||||
protocol_vvvvwaw.push(temp_vvvvwaw);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwaw))
|
||||
{
|
||||
var protocol_vvvvwaw = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwaw.some(protocol_vvvvwaw_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
if (jform_vvvvwawwaj_required)
|
||||
{
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwawwaj_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
if (!jform_vvvvwawwaj_required)
|
||||
{
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwawwaj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaw Some function
|
||||
function protocol_vvvvwaw_SomeFunc(protocol_vvvvwaw)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwav == 1 || authentication_vvvvwav == 3 || authentication_vvvvwav == 5)
|
||||
if (protocol_vvvvwaw == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -358,27 +280,27 @@ function vvvvwax(protocol_vvvvwax,authentication_vvvvwax)
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
if (jform_vvvvwaxwal_required)
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
if (jform_vvvvwaxwak_required)
|
||||
{
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwaxwal_required = false;
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwaxwak_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaxwal_required)
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
if (!jform_vvvvwaxwak_required)
|
||||
{
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwaxwal_required = true;
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwaxwak_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -398,7 +320,7 @@ function protocol_vvvvwax_SomeFunc(protocol_vvvvwax)
|
||||
function authentication_vvvvwax_SomeFunc(authentication_vvvvwax)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwax == 2 || authentication_vvvvwax == 3)
|
||||
if (authentication_vvvvwax == 1 || authentication_vvvvwax == 3 || authentication_vvvvwax == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -436,27 +358,27 @@ function vvvvwaz(protocol_vvvvwaz,authentication_vvvvwaz)
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').show();
|
||||
if (jform_vvvvwazwam_required)
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
if (jform_vvvvwazwal_required)
|
||||
{
|
||||
updateFieldRequired('private_key',0);
|
||||
jQuery('#jform_private_key').prop('required','required');
|
||||
jQuery('#jform_private_key').attr('aria-required',true);
|
||||
jQuery('#jform_private_key').addClass('required');
|
||||
jform_vvvvwazwam_required = false;
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwazwal_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').hide();
|
||||
if (!jform_vvvvwazwam_required)
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
if (!jform_vvvvwazwal_required)
|
||||
{
|
||||
updateFieldRequired('private_key',1);
|
||||
jQuery('#jform_private_key').removeAttr('required');
|
||||
jQuery('#jform_private_key').removeAttr('aria-required');
|
||||
jQuery('#jform_private_key').removeClass('required');
|
||||
jform_vvvvwazwam_required = true;
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwazwal_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -476,7 +398,7 @@ function protocol_vvvvwaz_SomeFunc(protocol_vvvvwaz)
|
||||
function authentication_vvvvwaz_SomeFunc(authentication_vvvvwaz)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwaz == 4 || authentication_vvvvwaz == 5)
|
||||
if (authentication_vvvvwaz == 2 || authentication_vvvvwaz == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -514,11 +436,28 @@ function vvvvwbb(protocol_vvvvwbb,authentication_vvvvwbb)
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_secret').closest('.control-group').show();
|
||||
jQuery('#jform_private_key').closest('.control-group').show();
|
||||
if (jform_vvvvwbbwam_required)
|
||||
{
|
||||
updateFieldRequired('private_key',0);
|
||||
jQuery('#jform_private_key').prop('required','required');
|
||||
jQuery('#jform_private_key').attr('aria-required',true);
|
||||
jQuery('#jform_private_key').addClass('required');
|
||||
jform_vvvvwbbwam_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_secret').closest('.control-group').hide();
|
||||
jQuery('#jform_private_key').closest('.control-group').hide();
|
||||
if (!jform_vvvvwbbwam_required)
|
||||
{
|
||||
updateFieldRequired('private_key',1);
|
||||
jQuery('#jform_private_key').removeAttr('required');
|
||||
jQuery('#jform_private_key').removeAttr('aria-required');
|
||||
jQuery('#jform_private_key').removeClass('required');
|
||||
jform_vvvvwbbwam_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -537,7 +476,68 @@ function protocol_vvvvwbb_SomeFunc(protocol_vvvvwbb)
|
||||
function authentication_vvvvwbb_SomeFunc(authentication_vvvvwbb)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbb == 2 || authentication_vvvvwbb == 3 || authentication_vvvvwbb == 4 || authentication_vvvvwbb == 5)
|
||||
if (authentication_vvvvwbb == 4 || authentication_vvvvwbb == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbd function
|
||||
function vvvvwbd(protocol_vvvvwbd,authentication_vvvvwbd)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbd) && protocol_vvvvwbd.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbd = protocol_vvvvwbd;
|
||||
var protocol_vvvvwbd = [];
|
||||
protocol_vvvvwbd.push(temp_vvvvwbd);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbd))
|
||||
{
|
||||
var protocol_vvvvwbd = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbd.some(protocol_vvvvwbd_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbd) && authentication_vvvvwbd.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbd = authentication_vvvvwbd;
|
||||
var authentication_vvvvwbd = [];
|
||||
authentication_vvvvwbd.push(temp_vvvvwbd);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbd))
|
||||
{
|
||||
var authentication_vvvvwbd = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbd.some(authentication_vvvvwbd_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_secret').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_secret').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbd Some function
|
||||
function protocol_vvvvwbd_SomeFunc(protocol_vvvvwbd)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbd == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbd Some function
|
||||
function authentication_vvvvwbd_SomeFunc(authentication_vvvvwbd)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbd == 2 || authentication_vvvvwbd == 3 || authentication_vvvvwbd == 4 || authentication_vvvvwbd == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -23,318 +23,318 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvylvyi_required = false;
|
||||
jform_vvvvvymvyj_required = false;
|
||||
jform_vvvvvynvyk_required = false;
|
||||
jform_vvvvvyovyl_required = false;
|
||||
jform_vvvvvypvym_required = false;
|
||||
jform_vvvvvyqvyn_required = false;
|
||||
jform_vvvvvyrvyo_required = false;
|
||||
jform_vvvvvysvyp_required = false;
|
||||
jform_vvvvvytvyq_required = false;
|
||||
jform_vvvvvyuvyr_required = false;
|
||||
jform_vvvvvyuvys_required = false;
|
||||
jform_vvvvvynvyi_required = false;
|
||||
jform_vvvvvyovyj_required = false;
|
||||
jform_vvvvvypvyk_required = false;
|
||||
jform_vvvvvyqvyl_required = false;
|
||||
jform_vvvvvyrvym_required = false;
|
||||
jform_vvvvvysvyn_required = false;
|
||||
jform_vvvvvytvyo_required = false;
|
||||
jform_vvvvvyuvyp_required = false;
|
||||
jform_vvvvvyvvyq_required = false;
|
||||
jform_vvvvvywvyr_required = false;
|
||||
jform_vvvvvywvys_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyl = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyl(add_php_view_vvvvvyl);
|
||||
var add_php_view_vvvvvyn = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyn(add_php_view_vvvvvyn);
|
||||
|
||||
var add_php_jview_display_vvvvvym = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_jview_display_vvvvvym);
|
||||
var add_php_jview_display_vvvvvyo = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyo(add_php_jview_display_vvvvvyo);
|
||||
|
||||
var add_php_jview_vvvvvyn = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyn(add_php_jview_vvvvvyn);
|
||||
var add_php_jview_vvvvvyp = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyp(add_php_jview_vvvvvyp);
|
||||
|
||||
var add_php_document_vvvvvyo = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyo(add_php_document_vvvvvyo);
|
||||
var add_php_document_vvvvvyq = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyq(add_php_document_vvvvvyq);
|
||||
|
||||
var add_css_document_vvvvvyp = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyp(add_css_document_vvvvvyp);
|
||||
var add_css_document_vvvvvyr = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyr(add_css_document_vvvvvyr);
|
||||
|
||||
var add_javascript_file_vvvvvyq = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyq(add_javascript_file_vvvvvyq);
|
||||
var add_javascript_file_vvvvvys = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvys(add_javascript_file_vvvvvys);
|
||||
|
||||
var add_js_document_vvvvvyr = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyr(add_js_document_vvvvvyr);
|
||||
var add_js_document_vvvvvyt = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyt(add_js_document_vvvvvyt);
|
||||
|
||||
var add_css_vvvvvys = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvys(add_css_vvvvvys);
|
||||
var add_css_vvvvvyu = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyu(add_css_vvvvvyu);
|
||||
|
||||
var add_php_ajax_vvvvvyt = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyt(add_php_ajax_vvvvvyt);
|
||||
var add_php_ajax_vvvvvyv = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyv(add_php_ajax_vvvvvyv);
|
||||
|
||||
var add_custom_button_vvvvvyu = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyu(add_custom_button_vvvvvyu);
|
||||
var add_custom_button_vvvvvyw = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyw(add_custom_button_vvvvvyw);
|
||||
|
||||
var button_position_vvvvvyv = jQuery("#jform_button_position").val();
|
||||
vvvvvyv(button_position_vvvvvyv);
|
||||
var button_position_vvvvvyx = jQuery("#jform_button_position").val();
|
||||
vvvvvyx(button_position_vvvvvyx);
|
||||
});
|
||||
|
||||
// the vvvvvyl function
|
||||
function vvvvvyl(add_php_view_vvvvvyl)
|
||||
// the vvvvvyn function
|
||||
function vvvvvyn(add_php_view_vvvvvyn)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyl == 1)
|
||||
if (add_php_view_vvvvvyn == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvylvyi_required)
|
||||
if (jform_vvvvvynvyi_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_vvvvvylvyi_required = false;
|
||||
jform_vvvvvynvyi_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvylvyi_required)
|
||||
if (!jform_vvvvvynvyi_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_vvvvvylvyi_required = true;
|
||||
jform_vvvvvynvyi_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvym function
|
||||
function vvvvvym(add_php_jview_display_vvvvvym)
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_php_jview_display_vvvvvyo)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvvym == 1)
|
||||
if (add_php_jview_display_vvvvvyo == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display').closest('.control-group').show();
|
||||
if (jform_vvvvvymvyj_required)
|
||||
if (jform_vvvvvyovyj_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_vvvvvymvyj_required = false;
|
||||
jform_vvvvvyovyj_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview_display').closest('.control-group').hide();
|
||||
if (!jform_vvvvvymvyj_required)
|
||||
if (!jform_vvvvvyovyj_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_vvvvvymvyj_required = true;
|
||||
jform_vvvvvyovyj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyn function
|
||||
function vvvvvyn(add_php_jview_vvvvvyn)
|
||||
// the vvvvvyp function
|
||||
function vvvvvyp(add_php_jview_vvvvvyp)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvvyn == 1)
|
||||
if (add_php_jview_vvvvvyp == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview').closest('.control-group').show();
|
||||
if (jform_vvvvvynvyk_required)
|
||||
if (jform_vvvvvypvyk_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_vvvvvynvyk_required = false;
|
||||
jform_vvvvvypvyk_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview').closest('.control-group').hide();
|
||||
if (!jform_vvvvvynvyk_required)
|
||||
if (!jform_vvvvvypvyk_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_vvvvvynvyk_required = true;
|
||||
jform_vvvvvypvyk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_php_document_vvvvvyo)
|
||||
// the vvvvvyq function
|
||||
function vvvvvyq(add_php_document_vvvvvyq)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvyo == 1)
|
||||
if (add_php_document_vvvvvyq == 1)
|
||||
{
|
||||
jQuery('#jform_php_document').closest('.control-group').show();
|
||||
if (jform_vvvvvyovyl_required)
|
||||
if (jform_vvvvvyqvyl_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_vvvvvyovyl_required = false;
|
||||
jform_vvvvvyqvyl_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyovyl_required)
|
||||
if (!jform_vvvvvyqvyl_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_vvvvvyovyl_required = true;
|
||||
jform_vvvvvyqvyl_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyp function
|
||||
function vvvvvyp(add_css_document_vvvvvyp)
|
||||
// the vvvvvyr function
|
||||
function vvvvvyr(add_css_document_vvvvvyr)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvvyp == 1)
|
||||
if (add_css_document_vvvvvyr == 1)
|
||||
{
|
||||
jQuery('#jform_css_document').closest('.control-group').show();
|
||||
if (jform_vvvvvypvym_required)
|
||||
if (jform_vvvvvyrvym_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_vvvvvypvym_required = false;
|
||||
jform_vvvvvyrvym_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvypvym_required)
|
||||
if (!jform_vvvvvyrvym_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_vvvvvypvym_required = true;
|
||||
jform_vvvvvyrvym_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyq function
|
||||
function vvvvvyq(add_javascript_file_vvvvvyq)
|
||||
// the vvvvvys function
|
||||
function vvvvvys(add_javascript_file_vvvvvys)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvvyq == 1)
|
||||
if (add_javascript_file_vvvvvys == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file').closest('.control-group').show();
|
||||
if (jform_vvvvvyqvyn_required)
|
||||
if (jform_vvvvvysvyn_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_vvvvvyqvyn_required = false;
|
||||
jform_vvvvvysvyn_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_file').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyqvyn_required)
|
||||
if (!jform_vvvvvysvyn_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_vvvvvyqvyn_required = true;
|
||||
jform_vvvvvysvyn_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyr function
|
||||
function vvvvvyr(add_js_document_vvvvvyr)
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(add_js_document_vvvvvyt)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvvyr == 1)
|
||||
if (add_js_document_vvvvvyt == 1)
|
||||
{
|
||||
jQuery('#jform_js_document').closest('.control-group').show();
|
||||
if (jform_vvvvvyrvyo_required)
|
||||
if (jform_vvvvvytvyo_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_vvvvvyrvyo_required = false;
|
||||
jform_vvvvvytvyo_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_js_document').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyrvyo_required)
|
||||
if (!jform_vvvvvytvyo_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_vvvvvyrvyo_required = true;
|
||||
jform_vvvvvytvyo_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvys function
|
||||
function vvvvvys(add_css_vvvvvys)
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_css_vvvvvyu)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvys == 1)
|
||||
if (add_css_vvvvvyu == 1)
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').show();
|
||||
if (jform_vvvvvysvyp_required)
|
||||
if (jform_vvvvvyuvyp_required)
|
||||
{
|
||||
updateFieldRequired('css',0);
|
||||
jQuery('#jform_css').prop('required','required');
|
||||
jQuery('#jform_css').attr('aria-required',true);
|
||||
jQuery('#jform_css').addClass('required');
|
||||
jform_vvvvvysvyp_required = false;
|
||||
jform_vvvvvyuvyp_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css').closest('.control-group').hide();
|
||||
if (!jform_vvvvvysvyp_required)
|
||||
if (!jform_vvvvvyuvyp_required)
|
||||
{
|
||||
updateFieldRequired('css',1);
|
||||
jQuery('#jform_css').removeAttr('required');
|
||||
jQuery('#jform_css').removeAttr('aria-required');
|
||||
jQuery('#jform_css').removeClass('required');
|
||||
jform_vvvvvysvyp_required = true;
|
||||
jform_vvvvvyuvyp_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(add_php_ajax_vvvvvyt)
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(add_php_ajax_vvvvvyv)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvyt == 1)
|
||||
if (add_php_ajax_vvvvvyv == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
|
||||
if (jform_vvvvvytvyq_required)
|
||||
if (jform_vvvvvyvvyq_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_vvvvvytvyq_required = false;
|
||||
jform_vvvvvyvvyq_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -342,42 +342,42 @@ function vvvvvyt(add_php_ajax_vvvvvyt)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
|
||||
if (!jform_vvvvvytvyq_required)
|
||||
if (!jform_vvvvvyvvyq_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_vvvvvytvyq_required = true;
|
||||
jform_vvvvvyvvyq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_custom_button_vvvvvyu)
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_custom_button_vvvvvyw)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvyu == 1)
|
||||
if (add_custom_button_vvvvvyw == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller').closest('.control-group').show();
|
||||
if (jform_vvvvvyuvyr_required)
|
||||
if (jform_vvvvvywvyr_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_vvvvvyuvyr_required = false;
|
||||
jform_vvvvvywvyr_required = false;
|
||||
}
|
||||
|
||||
jQuery('#jform_php_model').closest('.control-group').show();
|
||||
if (jform_vvvvvyuvys_required)
|
||||
if (jform_vvvvvywvys_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_vvvvvyuvys_required = false;
|
||||
jform_vvvvvywvys_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
@ -385,40 +385,40 @@ function vvvvvyu(add_custom_button_vvvvvyu)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_controller').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyuvyr_required)
|
||||
if (!jform_vvvvvywvyr_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_vvvvvyuvyr_required = true;
|
||||
jform_vvvvvywvyr_required = true;
|
||||
}
|
||||
jQuery('#jform_php_model').closest('.control-group').hide();
|
||||
if (!jform_vvvvvyuvys_required)
|
||||
if (!jform_vvvvvywvys_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_vvvvvyuvys_required = true;
|
||||
jform_vvvvvywvys_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(button_position_vvvvvyv)
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(button_position_vvvvvyx)
|
||||
{
|
||||
if (isSet(button_position_vvvvvyv) && button_position_vvvvvyv.constructor !== Array)
|
||||
if (isSet(button_position_vvvvvyx) && button_position_vvvvvyx.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvyv = button_position_vvvvvyv;
|
||||
var button_position_vvvvvyv = [];
|
||||
button_position_vvvvvyv.push(temp_vvvvvyv);
|
||||
var temp_vvvvvyx = button_position_vvvvvyx;
|
||||
var button_position_vvvvvyx = [];
|
||||
button_position_vvvvvyx.push(temp_vvvvvyx);
|
||||
}
|
||||
else if (!isSet(button_position_vvvvvyv))
|
||||
else if (!isSet(button_position_vvvvvyx))
|
||||
{
|
||||
var button_position_vvvvvyv = [];
|
||||
var button_position_vvvvvyx = [];
|
||||
}
|
||||
var button_position = button_position_vvvvvyv.some(button_position_vvvvvyv_SomeFunc);
|
||||
var button_position = button_position_vvvvvyx.some(button_position_vvvvvyx_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -432,11 +432,11 @@ function vvvvvyv(button_position_vvvvvyv)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyv Some function
|
||||
function button_position_vvvvvyv_SomeFunc(button_position_vvvvvyv)
|
||||
// the vvvvvyx Some function
|
||||
function button_position_vvvvvyx_SomeFunc(button_position_vvvvvyx)
|
||||
{
|
||||
// set the function logic
|
||||
if (button_position_vvvvvyv == 5)
|
||||
if (button_position_vvvvvyx == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -23,42 +23,42 @@
|
||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvywvyt_required = false;
|
||||
jform_vvvvvyyvyt_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyw = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyw(add_php_view_vvvvvyw);
|
||||
var add_php_view_vvvvvyy = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyy(add_php_view_vvvvvyy);
|
||||
});
|
||||
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_php_view_vvvvvyw)
|
||||
// the vvvvvyy function
|
||||
function vvvvvyy(add_php_view_vvvvvyy)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyw == 1)
|
||||
if (add_php_view_vvvvvyy == 1)
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').show();
|
||||
if (jform_vvvvvywvyt_required)
|
||||
if (jform_vvvvvyyvyt_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_vvvvvywvyt_required = false;
|
||||
jform_vvvvvyyvyt_required = false;
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view').closest('.control-group').hide();
|
||||
if (!jform_vvvvvywvyt_required)
|
||||
if (!jform_vvvvvyyvyt_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_vvvvvywvyt_required = true;
|
||||
jform_vvvvvyyvyt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -108,16 +108,28 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->addcontributors = $addcontributors->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_install))
|
||||
{
|
||||
// base64 Decode php_postflight_install.
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
}
|
||||
|
||||
if (!empty($item->php_site_event))
|
||||
{
|
||||
// base64 Decode php_site_event.
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
}
|
||||
|
||||
if (!empty($item->readme))
|
||||
{
|
||||
// base64 Decode readme.
|
||||
$item->readme = base64_decode($item->readme);
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_install))
|
||||
if (!empty($item->css_admin))
|
||||
{
|
||||
// base64 Decode php_postflight_install.
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
// base64 Decode css_admin.
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
}
|
||||
|
||||
if (!empty($item->php_preflight_install))
|
||||
@ -132,6 +144,42 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_both))
|
||||
{
|
||||
// base64 Decode php_helper_both.
|
||||
$item->php_helper_both = base64_decode($item->php_helper_both);
|
||||
}
|
||||
|
||||
if (!empty($item->php_admin_event))
|
||||
{
|
||||
// base64 Decode php_admin_event.
|
||||
$item->php_admin_event = base64_decode($item->php_admin_event);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_admin))
|
||||
{
|
||||
// base64 Decode php_helper_admin.
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_site))
|
||||
{
|
||||
// base64 Decode php_helper_site.
|
||||
$item->php_helper_site = base64_decode($item->php_helper_site);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript))
|
||||
{
|
||||
// base64 Decode javascript.
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
}
|
||||
|
||||
if (!empty($item->css_site))
|
||||
{
|
||||
// base64 Decode css_site.
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
}
|
||||
|
||||
if (!empty($item->php_preflight_update))
|
||||
{
|
||||
// base64 Decode php_preflight_update.
|
||||
@ -150,54 +198,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_both))
|
||||
{
|
||||
// base64 Decode php_helper_both.
|
||||
$item->php_helper_both = base64_decode($item->php_helper_both);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_admin))
|
||||
{
|
||||
// base64 Decode php_helper_admin.
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
}
|
||||
|
||||
if (!empty($item->php_admin_event))
|
||||
{
|
||||
// base64 Decode php_admin_event.
|
||||
$item->php_admin_event = base64_decode($item->php_admin_event);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_site))
|
||||
{
|
||||
// base64 Decode php_helper_site.
|
||||
$item->php_helper_site = base64_decode($item->php_helper_site);
|
||||
}
|
||||
|
||||
if (!empty($item->php_site_event))
|
||||
{
|
||||
// base64 Decode php_site_event.
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript))
|
||||
{
|
||||
// base64 Decode javascript.
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
}
|
||||
|
||||
if (!empty($item->css_admin))
|
||||
{
|
||||
// base64 Decode css_admin.
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
}
|
||||
|
||||
if (!empty($item->css_site))
|
||||
{
|
||||
// base64 Decode css_site.
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
}
|
||||
|
||||
if (!empty($item->buildcompsql))
|
||||
{
|
||||
// base64 Decode buildcompsql.
|
||||
@ -1247,16 +1247,28 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$data['addcontributors'] = '';
|
||||
}
|
||||
|
||||
// Set the php_postflight_install string to base64 string.
|
||||
if (isset($data['php_postflight_install']))
|
||||
{
|
||||
$data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
|
||||
}
|
||||
|
||||
// Set the php_site_event string to base64 string.
|
||||
if (isset($data['php_site_event']))
|
||||
{
|
||||
$data['php_site_event'] = base64_encode($data['php_site_event']);
|
||||
}
|
||||
|
||||
// Set the readme string to base64 string.
|
||||
if (isset($data['readme']))
|
||||
{
|
||||
$data['readme'] = base64_encode($data['readme']);
|
||||
}
|
||||
|
||||
// Set the php_postflight_install string to base64 string.
|
||||
if (isset($data['php_postflight_install']))
|
||||
// Set the css_admin string to base64 string.
|
||||
if (isset($data['css_admin']))
|
||||
{
|
||||
$data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
|
||||
$data['css_admin'] = base64_encode($data['css_admin']);
|
||||
}
|
||||
|
||||
// Set the php_preflight_install string to base64 string.
|
||||
@ -1271,6 +1283,42 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']);
|
||||
}
|
||||
|
||||
// Set the php_helper_both string to base64 string.
|
||||
if (isset($data['php_helper_both']))
|
||||
{
|
||||
$data['php_helper_both'] = base64_encode($data['php_helper_both']);
|
||||
}
|
||||
|
||||
// Set the php_admin_event string to base64 string.
|
||||
if (isset($data['php_admin_event']))
|
||||
{
|
||||
$data['php_admin_event'] = base64_encode($data['php_admin_event']);
|
||||
}
|
||||
|
||||
// Set the php_helper_admin string to base64 string.
|
||||
if (isset($data['php_helper_admin']))
|
||||
{
|
||||
$data['php_helper_admin'] = base64_encode($data['php_helper_admin']);
|
||||
}
|
||||
|
||||
// Set the php_helper_site string to base64 string.
|
||||
if (isset($data['php_helper_site']))
|
||||
{
|
||||
$data['php_helper_site'] = base64_encode($data['php_helper_site']);
|
||||
}
|
||||
|
||||
// Set the javascript string to base64 string.
|
||||
if (isset($data['javascript']))
|
||||
{
|
||||
$data['javascript'] = base64_encode($data['javascript']);
|
||||
}
|
||||
|
||||
// Set the css_site string to base64 string.
|
||||
if (isset($data['css_site']))
|
||||
{
|
||||
$data['css_site'] = base64_encode($data['css_site']);
|
||||
}
|
||||
|
||||
// Set the php_preflight_update string to base64 string.
|
||||
if (isset($data['php_preflight_update']))
|
||||
{
|
||||
@ -1289,54 +1337,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// Set the php_helper_both string to base64 string.
|
||||
if (isset($data['php_helper_both']))
|
||||
{
|
||||
$data['php_helper_both'] = base64_encode($data['php_helper_both']);
|
||||
}
|
||||
|
||||
// Set the php_helper_admin string to base64 string.
|
||||
if (isset($data['php_helper_admin']))
|
||||
{
|
||||
$data['php_helper_admin'] = base64_encode($data['php_helper_admin']);
|
||||
}
|
||||
|
||||
// Set the php_admin_event string to base64 string.
|
||||
if (isset($data['php_admin_event']))
|
||||
{
|
||||
$data['php_admin_event'] = base64_encode($data['php_admin_event']);
|
||||
}
|
||||
|
||||
// Set the php_helper_site string to base64 string.
|
||||
if (isset($data['php_helper_site']))
|
||||
{
|
||||
$data['php_helper_site'] = base64_encode($data['php_helper_site']);
|
||||
}
|
||||
|
||||
// Set the php_site_event string to base64 string.
|
||||
if (isset($data['php_site_event']))
|
||||
{
|
||||
$data['php_site_event'] = base64_encode($data['php_site_event']);
|
||||
}
|
||||
|
||||
// Set the javascript string to base64 string.
|
||||
if (isset($data['javascript']))
|
||||
{
|
||||
$data['javascript'] = base64_encode($data['javascript']);
|
||||
}
|
||||
|
||||
// Set the css_admin string to base64 string.
|
||||
if (isset($data['css_admin']))
|
||||
{
|
||||
$data['css_admin'] = base64_encode($data['css_admin']);
|
||||
}
|
||||
|
||||
// Set the css_site string to base64 string.
|
||||
if (isset($data['css_site']))
|
||||
{
|
||||
$data['css_site'] = base64_encode($data['css_site']);
|
||||
}
|
||||
|
||||
// Set the buildcompsql string to base64 string.
|
||||
if (isset($data['buildcompsql']))
|
||||
{
|
||||
|
@ -1723,14 +1723,30 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode readme
|
||||
$item->readme = base64_decode($item->readme);
|
||||
// decode php_postflight_install
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
// decode php_site_event
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
// decode readme
|
||||
$item->readme = base64_decode($item->readme);
|
||||
// decode css_admin
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
// decode php_preflight_install
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
// decode php_method_uninstall
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
// decode php_helper_both
|
||||
$item->php_helper_both = base64_decode($item->php_helper_both);
|
||||
// decode php_admin_event
|
||||
$item->php_admin_event = base64_decode($item->php_admin_event);
|
||||
// decode php_helper_admin
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
// decode php_helper_site
|
||||
$item->php_helper_site = base64_decode($item->php_helper_site);
|
||||
// decode javascript
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
// decode css_site
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
|
||||
{
|
||||
// decrypt whmcs_key
|
||||
@ -1742,22 +1758,6 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode php_helper_both
|
||||
$item->php_helper_both = base64_decode($item->php_helper_both);
|
||||
// decode php_helper_admin
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
// decode php_admin_event
|
||||
$item->php_admin_event = base64_decode($item->php_admin_event);
|
||||
// decode php_helper_site
|
||||
$item->php_helper_site = base64_decode($item->php_helper_site);
|
||||
// decode php_site_event
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
// decode javascript
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
// decode css_admin
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
// decode css_site
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
|
||||
{
|
||||
// decrypt export_key
|
||||
|
Reference in New Issue
Block a user