Added Captcha field type. Started adding the crowdin integration.
This commit is contained in:
@ -76,6 +76,58 @@ class ComponentbuilderModelAjax extends JModelList
|
||||
}
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* get the crowdin project details (html)
|
||||
**/
|
||||
public function getCrowdinDetails($identifier, $key)
|
||||
{
|
||||
// set the url
|
||||
$url = "https://api.crowdin.com/api/project/$identifier/info?key=$key&json";
|
||||
// get the details
|
||||
if (($details = ComponentbuilderHelper::getFileContents($url, false)) !== false && ComponentbuilderHelper::checkJson($details))
|
||||
{
|
||||
$details = json_decode($details, true);
|
||||
// check if there is an error
|
||||
if (isset($details['error']))
|
||||
{
|
||||
return array('error' => '<div class="alert alert-error">' . $details['error']['message'] . '<br /><br /><small>Identifier: ' . $identifier . '</small></div>');
|
||||
}
|
||||
// build the details html
|
||||
if (isset($details['details']))
|
||||
{
|
||||
$html = '<div class="alert alert-success" id="crowdin_message">';
|
||||
$html .= '<h1>' . JText::_('COM_COMPONENTBUILDER_COMPONENT_SUCCESSFULLY_LINKED') . '</h1>';
|
||||
$html .= '<h3>' . $details['details']['name'] . '</h3>';
|
||||
if (ComponentbuilderHelper::checkString($details['details']['description']))
|
||||
{
|
||||
$html .= '<p>';
|
||||
$html .= $details['details']['description'];
|
||||
$html .= '</p>';
|
||||
}
|
||||
$html .= '<ul>';
|
||||
$html .= '<li>Number of participants: <b>';
|
||||
$html .= $details['details']['participants_count'];
|
||||
$html .= '</b></li>';
|
||||
$html .= '<li>Total strings count: <b>';
|
||||
$html .= $details['details']['total_strings_count'];
|
||||
$html .= '</b></li>';
|
||||
$html .= '<li>Total words count: <b>';
|
||||
$html .= $details['details']['total_words_count'];
|
||||
$html .= '</b></li>';
|
||||
$html .= '<li>Created: <b>';
|
||||
$html .= ComponentbuilderHelper::fancyDate($details['details']['created']);
|
||||
$html .= '</b></li>';
|
||||
$html .= '<li>Last activity: <b>';
|
||||
$html .= ComponentbuilderHelper::fancyDate($details['details']['last_activity']);
|
||||
$html .= '</b></li>';
|
||||
$html .= '</ul>';
|
||||
$html .= '</div>';
|
||||
return array('html' => $html);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the component details (html)
|
||||
**/
|
||||
|
@ -155,7 +155,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getWamfields()
|
||||
public function getWapfields()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
@ -237,13 +237,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert datatype
|
||||
$item->datatype = $this->selectionTranslationWamfields($item->datatype, 'datatype');
|
||||
$item->datatype = $this->selectionTranslationWapfields($item->datatype, 'datatype');
|
||||
// convert indexes
|
||||
$item->indexes = $this->selectionTranslationWamfields($item->indexes, 'indexes');
|
||||
$item->indexes = $this->selectionTranslationWapfields($item->indexes, 'indexes');
|
||||
// convert null_switch
|
||||
$item->null_switch = $this->selectionTranslationWamfields($item->null_switch, 'null_switch');
|
||||
$item->null_switch = $this->selectionTranslationWapfields($item->null_switch, 'null_switch');
|
||||
// convert store
|
||||
$item->store = $this->selectionTranslationWamfields($item->store, 'store');
|
||||
$item->store = $this->selectionTranslationWapfields($item->store, 'store');
|
||||
}
|
||||
}
|
||||
|
||||
@ -257,7 +257,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
|
||||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslationWamfields($value,$name)
|
||||
public function selectionTranslationWapfields($value,$name)
|
||||
{
|
||||
// Array of datatype language strings
|
||||
if ($name === 'datatype')
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -9,302 +9,302 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvygvxz_required = false;
|
||||
jform_vvvvvyhvya_required = false;
|
||||
jform_vvvvvyivyb_required = false;
|
||||
jform_vvvvvyjvyc_required = false;
|
||||
jform_vvvvvykvyd_required = false;
|
||||
jform_vvvvvylvye_required = false;
|
||||
jform_vvvvvymvyf_required = false;
|
||||
jform_vvvvvynvyg_required = false;
|
||||
jform_vvvvvynvyh_required = false;
|
||||
jform_vvvvvyovyi_required = false;
|
||||
jform_vvvvvypvyj_required = false;
|
||||
jform_vvvvvyhvyc_required = false;
|
||||
jform_vvvvvyivyd_required = false;
|
||||
jform_vvvvvyjvye_required = false;
|
||||
jform_vvvvvykvyf_required = false;
|
||||
jform_vvvvvylvyg_required = false;
|
||||
jform_vvvvvymvyh_required = false;
|
||||
jform_vvvvvynvyi_required = false;
|
||||
jform_vvvvvyovyj_required = false;
|
||||
jform_vvvvvyovyk_required = false;
|
||||
jform_vvvvvypvyl_required = false;
|
||||
jform_vvvvvyqvym_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyg = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyg(add_php_view_vvvvvyg);
|
||||
var add_php_view_vvvvvyh = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyh(add_php_view_vvvvvyh);
|
||||
|
||||
var add_php_jview_display_vvvvvyh = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyh(add_php_jview_display_vvvvvyh);
|
||||
var add_php_jview_display_vvvvvyi = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyi(add_php_jview_display_vvvvvyi);
|
||||
|
||||
var add_php_jview_vvvvvyi = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyi(add_php_jview_vvvvvyi);
|
||||
var add_php_jview_vvvvvyj = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyj(add_php_jview_vvvvvyj);
|
||||
|
||||
var add_php_document_vvvvvyj = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyj(add_php_document_vvvvvyj);
|
||||
var add_php_document_vvvvvyk = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyk(add_php_document_vvvvvyk);
|
||||
|
||||
var add_css_document_vvvvvyk = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyk(add_css_document_vvvvvyk);
|
||||
var add_css_document_vvvvvyl = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyl(add_css_document_vvvvvyl);
|
||||
|
||||
var add_javascript_file_vvvvvyl = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyl(add_javascript_file_vvvvvyl);
|
||||
var add_javascript_file_vvvvvym = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvym(add_javascript_file_vvvvvym);
|
||||
|
||||
var add_js_document_vvvvvym = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvym(add_js_document_vvvvvym);
|
||||
var add_js_document_vvvvvyn = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyn(add_js_document_vvvvvyn);
|
||||
|
||||
var add_custom_button_vvvvvyn = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyn(add_custom_button_vvvvvyn);
|
||||
var add_custom_button_vvvvvyo = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyo(add_custom_button_vvvvvyo);
|
||||
|
||||
var add_css_vvvvvyo = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyo(add_css_vvvvvyo);
|
||||
var add_css_vvvvvyp = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyp(add_css_vvvvvyp);
|
||||
|
||||
var add_php_ajax_vvvvvyp = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyp(add_php_ajax_vvvvvyp);
|
||||
var add_php_ajax_vvvvvyq = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyq(add_php_ajax_vvvvvyq);
|
||||
});
|
||||
|
||||
// the vvvvvyg function
|
||||
function vvvvvyg(add_php_view_vvvvvyg)
|
||||
// the vvvvvyh function
|
||||
function vvvvvyh(add_php_view_vvvvvyh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyg == 1)
|
||||
if (add_php_view_vvvvvyh == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_view field
|
||||
if (jform_vvvvvygvxz_required)
|
||||
if (jform_vvvvvyhvyc_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_vvvvvygvxz_required = false;
|
||||
jform_vvvvvyhvyc_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_view field
|
||||
if (!jform_vvvvvygvxz_required)
|
||||
if (!jform_vvvvvyhvyc_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_vvvvvygvxz_required = true;
|
||||
jform_vvvvvyhvyc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyh function
|
||||
function vvvvvyh(add_php_jview_display_vvvvvyh)
|
||||
// the vvvvvyi function
|
||||
function vvvvvyi(add_php_jview_display_vvvvvyi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvvyh == 1)
|
||||
if (add_php_jview_display_vvvvvyi == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_jview_display field
|
||||
if (jform_vvvvvyhvya_required)
|
||||
if (jform_vvvvvyivyd_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_vvvvvyhvya_required = false;
|
||||
jform_vvvvvyivyd_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview_display-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_jview_display field
|
||||
if (!jform_vvvvvyhvya_required)
|
||||
if (!jform_vvvvvyivyd_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_vvvvvyhvya_required = true;
|
||||
jform_vvvvvyivyd_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyi function
|
||||
function vvvvvyi(add_php_jview_vvvvvyi)
|
||||
// the vvvvvyj function
|
||||
function vvvvvyj(add_php_jview_vvvvvyj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvvyi == 1)
|
||||
if (add_php_jview_vvvvvyj == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_jview field
|
||||
if (jform_vvvvvyivyb_required)
|
||||
if (jform_vvvvvyjvye_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_vvvvvyivyb_required = false;
|
||||
jform_vvvvvyjvye_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_jview field
|
||||
if (!jform_vvvvvyivyb_required)
|
||||
if (!jform_vvvvvyjvye_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_vvvvvyivyb_required = true;
|
||||
jform_vvvvvyjvye_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyj function
|
||||
function vvvvvyj(add_php_document_vvvvvyj)
|
||||
// the vvvvvyk function
|
||||
function vvvvvyk(add_php_document_vvvvvyk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvyj == 1)
|
||||
if (add_php_document_vvvvvyk == 1)
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_document field
|
||||
if (jform_vvvvvyjvyc_required)
|
||||
if (jform_vvvvvykvyf_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_vvvvvyjvyc_required = false;
|
||||
jform_vvvvvykvyf_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_document field
|
||||
if (!jform_vvvvvyjvyc_required)
|
||||
if (!jform_vvvvvykvyf_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_vvvvvyjvyc_required = true;
|
||||
jform_vvvvvykvyf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyk function
|
||||
function vvvvvyk(add_css_document_vvvvvyk)
|
||||
// the vvvvvyl function
|
||||
function vvvvvyl(add_css_document_vvvvvyl)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvvyk == 1)
|
||||
if (add_css_document_vvvvvyl == 1)
|
||||
{
|
||||
jQuery('#jform_css_document-lbl').closest('.control-group').show();
|
||||
// add required attribute to css_document field
|
||||
if (jform_vvvvvykvyd_required)
|
||||
if (jform_vvvvvylvyg_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_vvvvvykvyd_required = false;
|
||||
jform_vvvvvylvyg_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_document-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from css_document field
|
||||
if (!jform_vvvvvykvyd_required)
|
||||
if (!jform_vvvvvylvyg_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_vvvvvykvyd_required = true;
|
||||
jform_vvvvvylvyg_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyl function
|
||||
function vvvvvyl(add_javascript_file_vvvvvyl)
|
||||
// the vvvvvym function
|
||||
function vvvvvym(add_javascript_file_vvvvvym)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvvyl == 1)
|
||||
if (add_javascript_file_vvvvvym == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
|
||||
// add required attribute to javascript_file field
|
||||
if (jform_vvvvvylvye_required)
|
||||
if (jform_vvvvvymvyh_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_vvvvvylvye_required = false;
|
||||
jform_vvvvvymvyh_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_file-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from javascript_file field
|
||||
if (!jform_vvvvvylvye_required)
|
||||
if (!jform_vvvvvymvyh_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_vvvvvylvye_required = true;
|
||||
jform_vvvvvymvyh_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvym function
|
||||
function vvvvvym(add_js_document_vvvvvym)
|
||||
// the vvvvvyn function
|
||||
function vvvvvyn(add_js_document_vvvvvyn)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvvym == 1)
|
||||
if (add_js_document_vvvvvyn == 1)
|
||||
{
|
||||
jQuery('#jform_js_document-lbl').closest('.control-group').show();
|
||||
// add required attribute to js_document field
|
||||
if (jform_vvvvvymvyf_required)
|
||||
if (jform_vvvvvynvyi_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_vvvvvymvyf_required = false;
|
||||
jform_vvvvvynvyi_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_js_document-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from js_document field
|
||||
if (!jform_vvvvvymvyf_required)
|
||||
if (!jform_vvvvvynvyi_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_vvvvvymvyf_required = true;
|
||||
jform_vvvvvynvyi_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyn function
|
||||
function vvvvvyn(add_custom_button_vvvvvyn)
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_custom_button_vvvvvyo)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvyn == 1)
|
||||
if (add_custom_button_vvvvvyo == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_controller field
|
||||
if (jform_vvvvvynvyg_required)
|
||||
if (jform_vvvvvyovyj_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_vvvvvynvyg_required = false;
|
||||
jform_vvvvvyovyj_required = false;
|
||||
}
|
||||
jQuery('#jform_php_model-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_model field
|
||||
if (jform_vvvvvynvyh_required)
|
||||
if (jform_vvvvvyovyk_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_vvvvvynvyh_required = false;
|
||||
jform_vvvvvyovyk_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -312,75 +312,75 @@ function vvvvvyn(add_custom_button_vvvvvyn)
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_controller field
|
||||
if (!jform_vvvvvynvyg_required)
|
||||
if (!jform_vvvvvyovyj_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_vvvvvynvyg_required = true;
|
||||
jform_vvvvvyovyj_required = true;
|
||||
}
|
||||
jQuery('#jform_php_model-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_model field
|
||||
if (!jform_vvvvvynvyh_required)
|
||||
if (!jform_vvvvvyovyk_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_vvvvvynvyh_required = true;
|
||||
jform_vvvvvyovyk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyo function
|
||||
function vvvvvyo(add_css_vvvvvyo)
|
||||
// the vvvvvyp function
|
||||
function vvvvvyp(add_css_vvvvvyp)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvyo == 1)
|
||||
if (add_css_vvvvvyp == 1)
|
||||
{
|
||||
jQuery('#jform_css-lbl').closest('.control-group').show();
|
||||
// add required attribute to css field
|
||||
if (jform_vvvvvyovyi_required)
|
||||
if (jform_vvvvvypvyl_required)
|
||||
{
|
||||
updateFieldRequired('css',0);
|
||||
jQuery('#jform_css').prop('required','required');
|
||||
jQuery('#jform_css').attr('aria-required',true);
|
||||
jQuery('#jform_css').addClass('required');
|
||||
jform_vvvvvyovyi_required = false;
|
||||
jform_vvvvvypvyl_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from css field
|
||||
if (!jform_vvvvvyovyi_required)
|
||||
if (!jform_vvvvvypvyl_required)
|
||||
{
|
||||
updateFieldRequired('css',1);
|
||||
jQuery('#jform_css').removeAttr('required');
|
||||
jQuery('#jform_css').removeAttr('aria-required');
|
||||
jQuery('#jform_css').removeClass('required');
|
||||
jform_vvvvvyovyi_required = true;
|
||||
jform_vvvvvypvyl_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyp function
|
||||
function vvvvvyp(add_php_ajax_vvvvvyp)
|
||||
// the vvvvvyq function
|
||||
function vvvvvyq(add_php_ajax_vvvvvyq)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvyp == 1)
|
||||
if (add_php_ajax_vvvvvyq == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_ajaxmethod field
|
||||
if (jform_vvvvvypvyj_required)
|
||||
if (jform_vvvvvyqvym_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_vvvvvypvyj_required = false;
|
||||
jform_vvvvvyqvym_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -388,13 +388,13 @@ function vvvvvyp(add_php_ajax_vvvvvyp)
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_ajaxmethod field
|
||||
if (!jform_vvvvvypvyj_required)
|
||||
if (!jform_vvvvvyqvym_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_vvvvvypvyj_required = true;
|
||||
jform_vvvvvyqvym_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,44 +9,44 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwaevzr_required = false;
|
||||
jform_vvvvwafvzs_required = false;
|
||||
jform_vvvvwafvzt_required = false;
|
||||
jform_vvvvwafvzu_required = false;
|
||||
jform_vvvvwagvzv_required = false;
|
||||
jform_vvvvwagvzw_required = false;
|
||||
jform_vvvvwagvzx_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwae(target_vvvvwae);
|
||||
|
||||
var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwaf(target_vvvvwaf);
|
||||
|
||||
var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwag(target_vvvvwag,type_vvvvwag);
|
||||
vvvvwag(target_vvvvwag);
|
||||
|
||||
var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwah(type_vvvvwah,target_vvvvwah);
|
||||
var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwah(target_vvvvwah,type_vvvvwah);
|
||||
|
||||
var type_vvvvwai = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwai = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwai(type_vvvvwai,target_vvvvwai);
|
||||
});
|
||||
|
||||
// the vvvvwae function
|
||||
function vvvvwae(target_vvvvwae)
|
||||
// the vvvvwaf function
|
||||
function vvvvwaf(target_vvvvwaf)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwae == 2)
|
||||
if (target_vvvvwaf == 2)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').show();
|
||||
// add required attribute to function_name field
|
||||
if (jform_vvvvwaevzr_required)
|
||||
if (jform_vvvvwafvzu_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_vvvvwaevzr_required = false;
|
||||
jform_vvvvwafvzu_required = false;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
||||
jQuery('#jform_system_name').closest('.control-group').show();
|
||||
@ -55,102 +55,102 @@ function vvvvwae(target_vvvvwae)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').hide();
|
||||
// remove required attribute from function_name field
|
||||
if (!jform_vvvvwaevzr_required)
|
||||
if (!jform_vvvvwafvzu_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_vvvvwaevzr_required = true;
|
||||
jform_vvvvwafvzu_required = true;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
||||
jQuery('#jform_system_name').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaf function
|
||||
function vvvvwaf(target_vvvvwaf)
|
||||
// the vvvvwag function
|
||||
function vvvvwag(target_vvvvwag)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwaf == 1)
|
||||
if (target_vvvvwag == 1)
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').show();
|
||||
// add required attribute to component field
|
||||
if (jform_vvvvwafvzs_required)
|
||||
if (jform_vvvvwagvzv_required)
|
||||
{
|
||||
updateFieldRequired('component',0);
|
||||
jQuery('#jform_component').prop('required','required');
|
||||
jQuery('#jform_component').attr('aria-required',true);
|
||||
jQuery('#jform_component').addClass('required');
|
||||
jform_vvvvwafvzs_required = false;
|
||||
jform_vvvvwagvzv_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwafvzt_required)
|
||||
if (jform_vvvvwagvzw_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwafvzt_required = false;
|
||||
jform_vvvvwagvzw_required = false;
|
||||
}
|
||||
jQuery('#jform_from_line').closest('.control-group').show();
|
||||
jQuery('#jform_hashtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
jQuery('#jform_type').closest('.control-group').show();
|
||||
// add required attribute to type field
|
||||
if (jform_vvvvwafvzu_required)
|
||||
if (jform_vvvvwagvzx_required)
|
||||
{
|
||||
updateFieldRequired('type',0);
|
||||
jQuery('#jform_type').prop('required','required');
|
||||
jQuery('#jform_type').attr('aria-required',true);
|
||||
jQuery('#jform_type').addClass('required');
|
||||
jform_vvvvwafvzu_required = false;
|
||||
jform_vvvvwagvzx_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').hide();
|
||||
// remove required attribute from component field
|
||||
if (!jform_vvvvwafvzs_required)
|
||||
if (!jform_vvvvwagvzv_required)
|
||||
{
|
||||
updateFieldRequired('component',1);
|
||||
jQuery('#jform_component').removeAttr('required');
|
||||
jQuery('#jform_component').removeAttr('aria-required');
|
||||
jQuery('#jform_component').removeClass('required');
|
||||
jform_vvvvwafvzs_required = true;
|
||||
jform_vvvvwagvzv_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwafvzt_required)
|
||||
if (!jform_vvvvwagvzw_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwafvzt_required = true;
|
||||
jform_vvvvwagvzw_required = true;
|
||||
}
|
||||
jQuery('#jform_from_line').closest('.control-group').hide();
|
||||
jQuery('#jform_hashtarget').closest('.control-group').hide();
|
||||
jQuery('#jform_to_line').closest('.control-group').hide();
|
||||
jQuery('#jform_type').closest('.control-group').hide();
|
||||
// remove required attribute from type field
|
||||
if (!jform_vvvvwafvzu_required)
|
||||
if (!jform_vvvvwagvzx_required)
|
||||
{
|
||||
updateFieldRequired('type',1);
|
||||
jQuery('#jform_type').removeAttr('required');
|
||||
jQuery('#jform_type').removeAttr('aria-required');
|
||||
jQuery('#jform_type').removeClass('required');
|
||||
jform_vvvvwafvzu_required = true;
|
||||
jform_vvvvwagvzx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwag function
|
||||
function vvvvwag(target_vvvvwag,type_vvvvwag)
|
||||
// the vvvvwah function
|
||||
function vvvvwah(target_vvvvwah,type_vvvvwah)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwag == 1 && type_vvvvwag == 1)
|
||||
if (target_vvvvwah == 1 && type_vvvvwah == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
@ -162,11 +162,11 @@ function vvvvwag(target_vvvvwag,type_vvvvwag)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwah function
|
||||
function vvvvwah(type_vvvvwah,target_vvvvwah)
|
||||
// the vvvvwai function
|
||||
function vvvvwai(type_vvvvwai,target_vvvvwai)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwah == 1 && target_vvvvwah == 1)
|
||||
if (type_vvvvwai == 1 && target_vvvvwai == 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
@ -9,61 +9,61 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwaqvzx_required = false;
|
||||
jform_vvvvwarvzy_required = false;
|
||||
jform_vvvvwasvzz_required = false;
|
||||
jform_vvvvwatwaa_required = false;
|
||||
jform_vvvvwawwab_required = false;
|
||||
jform_vvvvwaxwac_required = false;
|
||||
jform_vvvvwaywad_required = false;
|
||||
jform_vvvvwazwae_required = false;
|
||||
jform_vvvvwarwaa_required = false;
|
||||
jform_vvvvwaswab_required = false;
|
||||
jform_vvvvwatwac_required = false;
|
||||
jform_vvvvwauwad_required = false;
|
||||
jform_vvvvwaxwae_required = false;
|
||||
jform_vvvvwaywaf_required = false;
|
||||
jform_vvvvwazwag_required = false;
|
||||
jform_vvvvwbawah_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var datalenght_vvvvwaq = jQuery("#jform_datalenght").val();
|
||||
vvvvwaq(datalenght_vvvvwaq);
|
||||
var datalenght_vvvvwar = jQuery("#jform_datalenght").val();
|
||||
vvvvwar(datalenght_vvvvwar);
|
||||
|
||||
var datadefault_vvvvwar = jQuery("#jform_datadefault").val();
|
||||
vvvvwar(datadefault_vvvvwar);
|
||||
|
||||
var datatype_vvvvwas = jQuery("#jform_datatype").val();
|
||||
vvvvwas(datatype_vvvvwas);
|
||||
var datadefault_vvvvwas = jQuery("#jform_datadefault").val();
|
||||
vvvvwas(datadefault_vvvvwas);
|
||||
|
||||
var datatype_vvvvwat = jQuery("#jform_datatype").val();
|
||||
vvvvwat(datatype_vvvvwat);
|
||||
|
||||
var store_vvvvwau = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwau = jQuery("#jform_datatype").val();
|
||||
vvvvwau(store_vvvvwau,datatype_vvvvwau);
|
||||
vvvvwau(datatype_vvvvwau);
|
||||
|
||||
var add_css_view_vvvvwaw = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwaw(add_css_view_vvvvwaw);
|
||||
var store_vvvvwav = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwav = jQuery("#jform_datatype").val();
|
||||
vvvvwav(store_vvvvwav,datatype_vvvvwav);
|
||||
|
||||
var add_css_views_vvvvwax = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwax(add_css_views_vvvvwax);
|
||||
var add_css_view_vvvvwax = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwax(add_css_view_vvvvwax);
|
||||
|
||||
var add_javascript_view_footer_vvvvway = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvway(add_javascript_view_footer_vvvvway);
|
||||
var add_css_views_vvvvway = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvway(add_css_views_vvvvway);
|
||||
|
||||
var add_javascript_views_footer_vvvvwaz = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwaz(add_javascript_views_footer_vvvvwaz);
|
||||
var add_javascript_view_footer_vvvvwaz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwaz(add_javascript_view_footer_vvvvwaz);
|
||||
|
||||
var add_javascript_views_footer_vvvvwba = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwba(add_javascript_views_footer_vvvvwba);
|
||||
});
|
||||
|
||||
// the vvvvwaq function
|
||||
function vvvvwaq(datalenght_vvvvwaq)
|
||||
// the vvvvwar function
|
||||
function vvvvwar(datalenght_vvvvwar)
|
||||
{
|
||||
if (isSet(datalenght_vvvvwaq) && datalenght_vvvvwaq.constructor !== Array)
|
||||
if (isSet(datalenght_vvvvwar) && datalenght_vvvvwar.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwaq = datalenght_vvvvwaq;
|
||||
var datalenght_vvvvwaq = [];
|
||||
datalenght_vvvvwaq.push(temp_vvvvwaq);
|
||||
var temp_vvvvwar = datalenght_vvvvwar;
|
||||
var datalenght_vvvvwar = [];
|
||||
datalenght_vvvvwar.push(temp_vvvvwar);
|
||||
}
|
||||
else if (!isSet(datalenght_vvvvwaq))
|
||||
else if (!isSet(datalenght_vvvvwar))
|
||||
{
|
||||
var datalenght_vvvvwaq = [];
|
||||
var datalenght_vvvvwar = [];
|
||||
}
|
||||
var datalenght = datalenght_vvvvwaq.some(datalenght_vvvvwaq_SomeFunc);
|
||||
var datalenght = datalenght_vvvvwar.some(datalenght_vvvvwar_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -71,91 +71,35 @@ function vvvvwaq(datalenght_vvvvwaq)
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').show();
|
||||
// add required attribute to datalenght_other field
|
||||
if (jform_vvvvwaqvzx_required)
|
||||
if (jform_vvvvwarwaa_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_vvvvwaqvzx_required = false;
|
||||
jform_vvvvwarwaa_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').hide();
|
||||
// remove required attribute from datalenght_other field
|
||||
if (!jform_vvvvwaqvzx_required)
|
||||
if (!jform_vvvvwarwaa_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_vvvvwaqvzx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaq Some function
|
||||
function datalenght_vvvvwaq_SomeFunc(datalenght_vvvvwaq)
|
||||
{
|
||||
// set the function logic
|
||||
if (datalenght_vvvvwaq == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwar function
|
||||
function vvvvwar(datadefault_vvvvwar)
|
||||
{
|
||||
if (isSet(datadefault_vvvvwar) && datadefault_vvvvwar.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwar = datadefault_vvvvwar;
|
||||
var datadefault_vvvvwar = [];
|
||||
datadefault_vvvvwar.push(temp_vvvvwar);
|
||||
}
|
||||
else if (!isSet(datadefault_vvvvwar))
|
||||
{
|
||||
var datadefault_vvvvwar = [];
|
||||
}
|
||||
var datadefault = datadefault_vvvvwar.some(datadefault_vvvvwar_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datadefault)
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
// add required attribute to datadefault_other field
|
||||
if (jform_vvvvwarvzy_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_vvvvwarvzy_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
// remove required attribute from datadefault_other field
|
||||
if (!jform_vvvvwarvzy_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_vvvvwarvzy_required = true;
|
||||
jform_vvvvwarwaa_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwar Some function
|
||||
function datadefault_vvvvwar_SomeFunc(datadefault_vvvvwar)
|
||||
function datalenght_vvvvwar_SomeFunc(datalenght_vvvvwar)
|
||||
{
|
||||
// set the function logic
|
||||
if (datadefault_vvvvwar == 'Other')
|
||||
if (datalenght_vvvvwar == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -163,59 +107,55 @@ function datadefault_vvvvwar_SomeFunc(datadefault_vvvvwar)
|
||||
}
|
||||
|
||||
// the vvvvwas function
|
||||
function vvvvwas(datatype_vvvvwas)
|
||||
function vvvvwas(datadefault_vvvvwas)
|
||||
{
|
||||
if (isSet(datatype_vvvvwas) && datatype_vvvvwas.constructor !== Array)
|
||||
if (isSet(datadefault_vvvvwas) && datadefault_vvvvwas.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwas = datatype_vvvvwas;
|
||||
var datatype_vvvvwas = [];
|
||||
datatype_vvvvwas.push(temp_vvvvwas);
|
||||
var temp_vvvvwas = datadefault_vvvvwas;
|
||||
var datadefault_vvvvwas = [];
|
||||
datadefault_vvvvwas.push(temp_vvvvwas);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwas))
|
||||
else if (!isSet(datadefault_vvvvwas))
|
||||
{
|
||||
var datatype_vvvvwas = [];
|
||||
var datadefault_vvvvwas = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwas.some(datatype_vvvvwas_SomeFunc);
|
||||
var datadefault = datadefault_vvvvwas.some(datadefault_vvvvwas_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
if (datadefault)
|
||||
{
|
||||
jQuery('#jform_datadefault').closest('.control-group').show();
|
||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||
jQuery('#jform_indexes').closest('.control-group').show();
|
||||
// add required attribute to indexes field
|
||||
if (jform_vvvvwasvzz_required)
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
// add required attribute to datadefault_other field
|
||||
if (jform_vvvvwaswab_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwasvzz_required = false;
|
||||
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_vvvvwaswab_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datadefault').closest('.control-group').hide();
|
||||
jQuery('#jform_datalenght').closest('.control-group').hide();
|
||||
jQuery('#jform_indexes').closest('.control-group').hide();
|
||||
// remove required attribute from indexes field
|
||||
if (!jform_vvvvwasvzz_required)
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
// remove required attribute from datadefault_other field
|
||||
if (!jform_vvvvwaswab_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwasvzz_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_vvvvwaswab_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwas Some function
|
||||
function datatype_vvvvwas_SomeFunc(datatype_vvvvwas)
|
||||
function datadefault_vvvvwas_SomeFunc(datadefault_vvvvwas)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwas == 'CHAR' || datatype_vvvvwas == 'VARCHAR' || datatype_vvvvwas == 'DATETIME' || datatype_vvvvwas == 'DATE' || datatype_vvvvwas == 'TIME' || datatype_vvvvwas == 'INT' || datatype_vvvvwas == 'TINYINT' || datatype_vvvvwas == 'BIGINT' || datatype_vvvvwas == 'FLOAT' || datatype_vvvvwas == 'DECIMAL' || datatype_vvvvwas == 'DOUBLE')
|
||||
if (datadefault_vvvvwas == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -241,28 +181,32 @@ function vvvvwat(datatype_vvvvwat)
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').show();
|
||||
// add required attribute to store field
|
||||
if (jform_vvvvwatwaa_required)
|
||||
jQuery('#jform_datadefault').closest('.control-group').show();
|
||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||
jQuery('#jform_indexes').closest('.control-group').show();
|
||||
// add required attribute to indexes field
|
||||
if (jform_vvvvwatwac_required)
|
||||
{
|
||||
updateFieldRequired('store',0);
|
||||
jQuery('#jform_store').prop('required','required');
|
||||
jQuery('#jform_store').attr('aria-required',true);
|
||||
jQuery('#jform_store').addClass('required');
|
||||
jform_vvvvwatwaa_required = false;
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwatwac_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_store').closest('.control-group').hide();
|
||||
// remove required attribute from store field
|
||||
if (!jform_vvvvwatwaa_required)
|
||||
jQuery('#jform_datadefault').closest('.control-group').hide();
|
||||
jQuery('#jform_datalenght').closest('.control-group').hide();
|
||||
jQuery('#jform_indexes').closest('.control-group').hide();
|
||||
// remove required attribute from indexes field
|
||||
if (!jform_vvvvwatwac_required)
|
||||
{
|
||||
updateFieldRequired('store',1);
|
||||
jQuery('#jform_store').removeAttr('required');
|
||||
jQuery('#jform_store').removeAttr('aria-required');
|
||||
jQuery('#jform_store').removeClass('required');
|
||||
jform_vvvvwatwaa_required = true;
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwatwac_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -271,7 +215,7 @@ function vvvvwat(datatype_vvvvwat)
|
||||
function datatype_vvvvwat_SomeFunc(datatype_vvvvwat)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwat == 'CHAR' || datatype_vvvvwat == 'VARCHAR' || datatype_vvvvwat == 'TEXT' || datatype_vvvvwat == 'MEDIUMTEXT' || datatype_vvvvwat == 'LONGTEXT' || datatype_vvvvwat == 'BLOB' || datatype_vvvvwat == 'TINYBLOB' || datatype_vvvvwat == 'MEDIUMBLOB' || datatype_vvvvwat == 'LONGBLOB')
|
||||
if (datatype_vvvvwat == 'CHAR' || datatype_vvvvwat == 'VARCHAR' || datatype_vvvvwat == 'DATETIME' || datatype_vvvvwat == 'DATE' || datatype_vvvvwat == 'TIME' || datatype_vvvvwat == 'INT' || datatype_vvvvwat == 'TINYINT' || datatype_vvvvwat == 'BIGINT' || datatype_vvvvwat == 'FLOAT' || datatype_vvvvwat == 'DECIMAL' || datatype_vvvvwat == 'DOUBLE')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -279,20 +223,8 @@ function datatype_vvvvwat_SomeFunc(datatype_vvvvwat)
|
||||
}
|
||||
|
||||
// the vvvvwau function
|
||||
function vvvvwau(store_vvvvwau,datatype_vvvvwau)
|
||||
function vvvvwau(datatype_vvvvwau)
|
||||
{
|
||||
if (isSet(store_vvvvwau) && store_vvvvwau.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwau = store_vvvvwau;
|
||||
var store_vvvvwau = [];
|
||||
store_vvvvwau.push(temp_vvvvwau);
|
||||
}
|
||||
else if (!isSet(store_vvvvwau))
|
||||
{
|
||||
var store_vvvvwau = [];
|
||||
}
|
||||
var store = store_vvvvwau.some(store_vvvvwau_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwau) && datatype_vvvvwau.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwau = datatype_vvvvwau;
|
||||
@ -307,27 +239,34 @@ function vvvvwau(store_vvvvwau,datatype_vvvvwau)
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (store && datatype)
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('.note_whmcs_encryption').closest('.control-group').show();
|
||||
jQuery('#jform_store').closest('.control-group').show();
|
||||
// add required attribute to store field
|
||||
if (jform_vvvvwauwad_required)
|
||||
{
|
||||
updateFieldRequired('store',0);
|
||||
jQuery('#jform_store').prop('required','required');
|
||||
jQuery('#jform_store').attr('aria-required',true);
|
||||
jQuery('#jform_store').addClass('required');
|
||||
jform_vvvvwauwad_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_whmcs_encryption').closest('.control-group').hide();
|
||||
jQuery('#jform_store').closest('.control-group').hide();
|
||||
// remove required attribute from store field
|
||||
if (!jform_vvvvwauwad_required)
|
||||
{
|
||||
updateFieldRequired('store',1);
|
||||
jQuery('#jform_store').removeAttr('required');
|
||||
jQuery('#jform_store').removeAttr('aria-required');
|
||||
jQuery('#jform_store').removeClass('required');
|
||||
jform_vvvvwauwad_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwau Some function
|
||||
function store_vvvvwau_SomeFunc(store_vvvvwau)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwau == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwau Some function
|
||||
function datatype_vvvvwau_SomeFunc(datatype_vvvvwau)
|
||||
{
|
||||
@ -339,130 +278,191 @@ function datatype_vvvvwau_SomeFunc(datatype_vvvvwau)
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaw function
|
||||
function vvvvwaw(add_css_view_vvvvwaw)
|
||||
// the vvvvwav function
|
||||
function vvvvwav(store_vvvvwav,datatype_vvvvwav)
|
||||
{
|
||||
if (isSet(store_vvvvwav) && store_vvvvwav.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwav = store_vvvvwav;
|
||||
var store_vvvvwav = [];
|
||||
store_vvvvwav.push(temp_vvvvwav);
|
||||
}
|
||||
else if (!isSet(store_vvvvwav))
|
||||
{
|
||||
var store_vvvvwav = [];
|
||||
}
|
||||
var store = store_vvvvwav.some(store_vvvvwav_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwav) && datatype_vvvvwav.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwav = datatype_vvvvwav;
|
||||
var datatype_vvvvwav = [];
|
||||
datatype_vvvvwav.push(temp_vvvvwav);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwav))
|
||||
{
|
||||
var datatype_vvvvwav = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwav.some(datatype_vvvvwav_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 vvvvwav Some function
|
||||
function store_vvvvwav_SomeFunc(store_vvvvwav)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvwaw == 1)
|
||||
if (store_vvvvwav == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwav Some function
|
||||
function datatype_vvvvwav_SomeFunc(datatype_vvvvwav)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwav == 'CHAR' || datatype_vvvvwav == 'VARCHAR' || datatype_vvvvwav == 'TEXT' || datatype_vvvvwav == 'MEDIUMTEXT' || datatype_vvvvwav == 'LONGTEXT' || datatype_vvvvwav == 'BLOB' || datatype_vvvvwav == 'TINYBLOB' || datatype_vvvvwav == 'MEDIUMBLOB' || datatype_vvvvwav == 'LONGBLOB')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwax function
|
||||
function vvvvwax(add_css_view_vvvvwax)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvwax == 1)
|
||||
{
|
||||
jQuery('#jform_css_view-lbl').closest('.control-group').show();
|
||||
// add required attribute to css_view field
|
||||
if (jform_vvvvwawwab_required)
|
||||
if (jform_vvvvwaxwae_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_vvvvwawwab_required = false;
|
||||
jform_vvvvwaxwae_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_view-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from css_view field
|
||||
if (!jform_vvvvwawwab_required)
|
||||
if (!jform_vvvvwaxwae_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_vvvvwawwab_required = true;
|
||||
jform_vvvvwaxwae_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwax function
|
||||
function vvvvwax(add_css_views_vvvvwax)
|
||||
// the vvvvway function
|
||||
function vvvvway(add_css_views_vvvvway)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_views_vvvvwax == 1)
|
||||
if (add_css_views_vvvvway == 1)
|
||||
{
|
||||
jQuery('#jform_css_views-lbl').closest('.control-group').show();
|
||||
// add required attribute to css_views field
|
||||
if (jform_vvvvwaxwac_required)
|
||||
if (jform_vvvvwaywaf_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_vvvvwaxwac_required = false;
|
||||
jform_vvvvwaywaf_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_views-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from css_views field
|
||||
if (!jform_vvvvwaxwac_required)
|
||||
if (!jform_vvvvwaywaf_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_vvvvwaxwac_required = true;
|
||||
jform_vvvvwaywaf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvway function
|
||||
function vvvvway(add_javascript_view_footer_vvvvway)
|
||||
// the vvvvwaz function
|
||||
function vvvvwaz(add_javascript_view_footer_vvvvwaz)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_footer_vvvvway == 1)
|
||||
if (add_javascript_view_footer_vvvvwaz == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
|
||||
// add required attribute to javascript_view_footer field
|
||||
if (jform_vvvvwaywad_required)
|
||||
if (jform_vvvvwazwag_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_vvvvwaywad_required = false;
|
||||
jform_vvvvwazwag_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from javascript_view_footer field
|
||||
if (!jform_vvvvwaywad_required)
|
||||
if (!jform_vvvvwazwag_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_vvvvwaywad_required = true;
|
||||
jform_vvvvwazwag_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaz function
|
||||
function vvvvwaz(add_javascript_views_footer_vvvvwaz)
|
||||
// the vvvvwba function
|
||||
function vvvvwba(add_javascript_views_footer_vvvvwba)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_footer_vvvvwaz == 1)
|
||||
if (add_javascript_views_footer_vvvvwba == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
|
||||
// add required attribute to javascript_views_footer field
|
||||
if (jform_vvvvwazwae_required)
|
||||
if (jform_vvvvwbawah_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_vvvvwazwae_required = false;
|
||||
jform_vvvvwbawah_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from javascript_views_footer field
|
||||
if (!jform_vvvvwazwae_required)
|
||||
if (!jform_vvvvwbawah_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_vvvvwazwae_required = true;
|
||||
jform_vvvvwbawah_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -9,24 +9,21 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbwwax_required = false;
|
||||
jform_vvvvwbxway_required = false;
|
||||
jform_vvvvwbywaz_required = false;
|
||||
jform_vvvvwbzwba_required = false;
|
||||
jform_vvvvwcawbb_required = false;
|
||||
jform_vvvvwcbwbc_required = false;
|
||||
jform_vvvvwbxwba_required = false;
|
||||
jform_vvvvwbywbb_required = false;
|
||||
jform_vvvvwbzwbc_required = false;
|
||||
jform_vvvvwcawbd_required = false;
|
||||
jform_vvvvwcbwbe_required = false;
|
||||
jform_vvvvwccwbf_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var location_vvvvwbw = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbw(location_vvvvwbw);
|
||||
|
||||
var location_vvvvwbx = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwbx(location_vvvvwbx);
|
||||
|
||||
var type_vvvvwby = jQuery("#jform_type").val();
|
||||
vvvvwby(type_vvvvwby);
|
||||
var location_vvvvwby = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwby(location_vvvvwby);
|
||||
|
||||
var type_vvvvwbz = jQuery("#jform_type").val();
|
||||
vvvvwbz(type_vvvvwbz);
|
||||
@ -34,130 +31,77 @@ jQuery(document).ready(function()
|
||||
var type_vvvvwca = jQuery("#jform_type").val();
|
||||
vvvvwca(type_vvvvwca);
|
||||
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
var type_vvvvwcb = jQuery("#jform_type").val();
|
||||
vvvvwcb(type_vvvvwcb);
|
||||
|
||||
var target_vvvvwcc = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcc(target_vvvvwcc);
|
||||
});
|
||||
|
||||
// the vvvvwbw function
|
||||
function vvvvwbw(location_vvvvwbw)
|
||||
// the vvvvwbx function
|
||||
function vvvvwbx(location_vvvvwbx)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwbw == 1)
|
||||
if (location_vvvvwbx == 1)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
// add required attribute to admin_view field
|
||||
if (jform_vvvvwbwwax_required)
|
||||
if (jform_vvvvwbxwba_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_vvvvwbwwax_required = false;
|
||||
jform_vvvvwbxwba_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||
// remove required attribute from admin_view field
|
||||
if (!jform_vvvvwbwwax_required)
|
||||
if (!jform_vvvvwbxwba_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_vvvvwbwwax_required = true;
|
||||
jform_vvvvwbxwba_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbx function
|
||||
function vvvvwbx(location_vvvvwbx)
|
||||
// the vvvvwby function
|
||||
function vvvvwby(location_vvvvwby)
|
||||
{
|
||||
// set the function logic
|
||||
if (location_vvvvwbx == 2)
|
||||
if (location_vvvvwby == 2)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
// add required attribute to site_view field
|
||||
if (jform_vvvvwbxway_required)
|
||||
if (jform_vvvvwbywbb_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_vvvvwbxway_required = false;
|
||||
jform_vvvvwbywbb_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||
// remove required attribute from site_view field
|
||||
if (!jform_vvvvwbxway_required)
|
||||
if (!jform_vvvvwbywbb_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_vvvvwbxway_required = true;
|
||||
jform_vvvvwbywbb_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwby function
|
||||
function vvvvwby(type_vvvvwby)
|
||||
{
|
||||
if (isSet(type_vvvvwby) && type_vvvvwby.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwby = type_vvvvwby;
|
||||
var type_vvvvwby = [];
|
||||
type_vvvvwby.push(temp_vvvvwby);
|
||||
}
|
||||
else if (!isSet(type_vvvvwby))
|
||||
{
|
||||
var type_vvvvwby = [];
|
||||
}
|
||||
var type = type_vvvvwby.some(type_vvvvwby_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
// add required attribute to url field
|
||||
if (jform_vvvvwbywaz_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwbywaz_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
// remove required attribute from url field
|
||||
if (!jform_vvvvwbywaz_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwbywaz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwby Some function
|
||||
function type_vvvvwby_SomeFunc(type_vvvvwby)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwby == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbz function
|
||||
function vvvvwbz(type_vvvvwbz)
|
||||
{
|
||||
@ -177,28 +121,28 @@ function vvvvwbz(type_vvvvwbz)
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
// add required attribute to article field
|
||||
if (jform_vvvvwbzwba_required)
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
// add required attribute to url field
|
||||
if (jform_vvvvwbzwbc_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwbzwba_required = false;
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwbzwbc_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
// remove required attribute from article field
|
||||
if (!jform_vvvvwbzwba_required)
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
// remove required attribute from url field
|
||||
if (!jform_vvvvwbzwbc_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwbzwba_required = true;
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwbzwbc_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -207,7 +151,7 @@ function vvvvwbz(type_vvvvwbz)
|
||||
function type_vvvvwbz_SomeFunc(type_vvvvwbz)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwbz == 1)
|
||||
if (type_vvvvwbz == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -233,28 +177,28 @@ function vvvvwca(type_vvvvwca)
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||
// add required attribute to content field
|
||||
if (jform_vvvvwcawbb_required)
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
// add required attribute to article field
|
||||
if (jform_vvvvwcawbd_required)
|
||||
{
|
||||
updateFieldRequired('content',0);
|
||||
jQuery('#jform_content').prop('required','required');
|
||||
jQuery('#jform_content').attr('aria-required',true);
|
||||
jQuery('#jform_content').addClass('required');
|
||||
jform_vvvvwcawbb_required = false;
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwcawbd_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from content field
|
||||
if (!jform_vvvvwcawbb_required)
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
// remove required attribute from article field
|
||||
if (!jform_vvvvwcawbd_required)
|
||||
{
|
||||
updateFieldRequired('content',1);
|
||||
jQuery('#jform_content').removeAttr('required');
|
||||
jQuery('#jform_content').removeAttr('aria-required');
|
||||
jQuery('#jform_content').removeClass('required');
|
||||
jform_vvvvwcawbb_required = true;
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwcawbd_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -263,7 +207,7 @@ function vvvvwca(type_vvvvwca)
|
||||
function type_vvvvwca_SomeFunc(type_vvvvwca)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwca == 2)
|
||||
if (type_vvvvwca == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -271,33 +215,89 @@ function type_vvvvwca_SomeFunc(type_vvvvwca)
|
||||
}
|
||||
|
||||
// the vvvvwcb function
|
||||
function vvvvwcb(target_vvvvwcb)
|
||||
function vvvvwcb(type_vvvvwcb)
|
||||
{
|
||||
if (isSet(type_vvvvwcb) && type_vvvvwcb.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcb = type_vvvvwcb;
|
||||
var type_vvvvwcb = [];
|
||||
type_vvvvwcb.push(temp_vvvvwcb);
|
||||
}
|
||||
else if (!isSet(type_vvvvwcb))
|
||||
{
|
||||
var type_vvvvwcb = [];
|
||||
}
|
||||
var type = type_vvvvwcb.some(type_vvvvwcb_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (type)
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').show();
|
||||
// add required attribute to content field
|
||||
if (jform_vvvvwcbwbe_required)
|
||||
{
|
||||
updateFieldRequired('content',0);
|
||||
jQuery('#jform_content').prop('required','required');
|
||||
jQuery('#jform_content').attr('aria-required',true);
|
||||
jQuery('#jform_content').addClass('required');
|
||||
jform_vvvvwcbwbe_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_content-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from content field
|
||||
if (!jform_vvvvwcbwbe_required)
|
||||
{
|
||||
updateFieldRequired('content',1);
|
||||
jQuery('#jform_content').removeAttr('required');
|
||||
jQuery('#jform_content').removeAttr('aria-required');
|
||||
jQuery('#jform_content').removeClass('required');
|
||||
jform_vvvvwcbwbe_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcb Some function
|
||||
function type_vvvvwcb_SomeFunc(type_vvvvwcb)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwcb == 1)
|
||||
if (type_vvvvwcb == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwcc function
|
||||
function vvvvwcc(target_vvvvwcc)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwcc == 1)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
// add required attribute to groups field
|
||||
if (jform_vvvvwcbwbc_required)
|
||||
if (jform_vvvvwccwbf_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_vvvvwcbwbc_required = false;
|
||||
jform_vvvvwccwbf_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
// remove required attribute from groups field
|
||||
if (!jform_vvvvwcbwbc_required)
|
||||
if (!jform_vvvvwccwbf_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_vvvvwcbwbc_required = true;
|
||||
jform_vvvvwccwbf_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,6 +28,9 @@ jform_vvvvvwovwk_required = false;
|
||||
jform_vvvvvwpvwl_required = false;
|
||||
jform_vvvvvwwvwm_required = false;
|
||||
jform_vvvvvwxvwn_required = false;
|
||||
jform_vvvvvxavwo_required = false;
|
||||
jform_vvvvvxavwp_required = false;
|
||||
jform_vvvvvxavwq_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
@ -122,6 +125,9 @@ jQuery(document).ready(function()
|
||||
|
||||
var dashboard_type_vvvvvwz = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwz(dashboard_type_vvvvvwz);
|
||||
|
||||
var translation_tool_vvvvvxa = jQuery("#jform_translation_tool").val();
|
||||
vvvvvxa(translation_tool_vvvvvxa);
|
||||
});
|
||||
|
||||
// the vvvvvvv function
|
||||
@ -886,6 +892,106 @@ function vvvvvwz(dashboard_type_vvvvvwz)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxa function
|
||||
function vvvvvxa(translation_tool_vvvvvxa)
|
||||
{
|
||||
if (isSet(translation_tool_vvvvvxa) && translation_tool_vvvvvxa.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvxa = translation_tool_vvvvvxa;
|
||||
var translation_tool_vvvvvxa = [];
|
||||
translation_tool_vvvvvxa.push(temp_vvvvvxa);
|
||||
}
|
||||
else if (!isSet(translation_tool_vvvvvxa))
|
||||
{
|
||||
var translation_tool_vvvvvxa = [];
|
||||
}
|
||||
var translation_tool = translation_tool_vvvvvxa.some(translation_tool_vvvvvxa_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (translation_tool)
|
||||
{
|
||||
jQuery('#jform_crowdin_account_api_key').closest('.control-group').show();
|
||||
jQuery('.note_crowdin').closest('.control-group').show();
|
||||
jQuery('#jform_crowdin_project_api_key').closest('.control-group').show();
|
||||
// add required attribute to crowdin_project_api_key field
|
||||
if (jform_vvvvvxavwo_required)
|
||||
{
|
||||
updateFieldRequired('crowdin_project_api_key',0);
|
||||
jQuery('#jform_crowdin_project_api_key').prop('required','required');
|
||||
jQuery('#jform_crowdin_project_api_key').attr('aria-required',true);
|
||||
jQuery('#jform_crowdin_project_api_key').addClass('required');
|
||||
jform_vvvvvxavwo_required = false;
|
||||
}
|
||||
jQuery('#jform_crowdin_project_identifier').closest('.control-group').show();
|
||||
// add required attribute to crowdin_project_identifier field
|
||||
if (jform_vvvvvxavwp_required)
|
||||
{
|
||||
updateFieldRequired('crowdin_project_identifier',0);
|
||||
jQuery('#jform_crowdin_project_identifier').prop('required','required');
|
||||
jQuery('#jform_crowdin_project_identifier').attr('aria-required',true);
|
||||
jQuery('#jform_crowdin_project_identifier').addClass('required');
|
||||
jform_vvvvvxavwp_required = false;
|
||||
}
|
||||
jQuery('#jform_crowdin_username').closest('.control-group').show();
|
||||
// add required attribute to crowdin_username field
|
||||
if (jform_vvvvvxavwq_required)
|
||||
{
|
||||
updateFieldRequired('crowdin_username',0);
|
||||
jQuery('#jform_crowdin_username').prop('required','required');
|
||||
jQuery('#jform_crowdin_username').attr('aria-required',true);
|
||||
jQuery('#jform_crowdin_username').addClass('required');
|
||||
jform_vvvvvxavwq_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_crowdin_account_api_key').closest('.control-group').hide();
|
||||
jQuery('.note_crowdin').closest('.control-group').hide();
|
||||
jQuery('#jform_crowdin_project_api_key').closest('.control-group').hide();
|
||||
// remove required attribute from crowdin_project_api_key field
|
||||
if (!jform_vvvvvxavwo_required)
|
||||
{
|
||||
updateFieldRequired('crowdin_project_api_key',1);
|
||||
jQuery('#jform_crowdin_project_api_key').removeAttr('required');
|
||||
jQuery('#jform_crowdin_project_api_key').removeAttr('aria-required');
|
||||
jQuery('#jform_crowdin_project_api_key').removeClass('required');
|
||||
jform_vvvvvxavwo_required = true;
|
||||
}
|
||||
jQuery('#jform_crowdin_project_identifier').closest('.control-group').hide();
|
||||
// remove required attribute from crowdin_project_identifier field
|
||||
if (!jform_vvvvvxavwp_required)
|
||||
{
|
||||
updateFieldRequired('crowdin_project_identifier',1);
|
||||
jQuery('#jform_crowdin_project_identifier').removeAttr('required');
|
||||
jQuery('#jform_crowdin_project_identifier').removeAttr('aria-required');
|
||||
jQuery('#jform_crowdin_project_identifier').removeClass('required');
|
||||
jform_vvvvvxavwp_required = true;
|
||||
}
|
||||
jQuery('#jform_crowdin_username').closest('.control-group').hide();
|
||||
// remove required attribute from crowdin_username field
|
||||
if (!jform_vvvvvxavwq_required)
|
||||
{
|
||||
updateFieldRequired('crowdin_username',1);
|
||||
jQuery('#jform_crowdin_username').removeAttr('required');
|
||||
jQuery('#jform_crowdin_username').removeAttr('aria-required');
|
||||
jQuery('#jform_crowdin_username').removeClass('required');
|
||||
jform_vvvvvxavwq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvxa Some function
|
||||
function translation_tool_vvvvvxa_SomeFunc(translation_tool_vvvvvxa)
|
||||
{
|
||||
// set the function logic
|
||||
if (translation_tool_vvvvvxa == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// update required fields
|
||||
function updateFieldRequired(name,status)
|
||||
{
|
||||
@ -967,8 +1073,54 @@ jQuery(document).ready(function()
|
||||
|
||||
// check and load all the customcode edit buttons
|
||||
setTimeout(getEditCustomCodeButtons, 400);
|
||||
|
||||
// get crowdin detail if set
|
||||
setTimeout(getTranslationToolDetails, 600);
|
||||
});
|
||||
|
||||
function getTranslationToolDetails(){
|
||||
// get the translation tool selection
|
||||
var tool = jQuery("#jform_translation_tool").val();
|
||||
// trigger Crowdin
|
||||
if (tool == 1) {
|
||||
// get the identifier
|
||||
var identifier = jQuery("#jform_crowdin_project_identifier").val();
|
||||
// get the key
|
||||
var key = jQuery("#jform_crowdin_project_api_key").val();
|
||||
// query server for details
|
||||
getCrowdinDetails_server(identifier, key).done(function(result) {
|
||||
if (result.error){
|
||||
jQuery('#crowdin_information_box').show();
|
||||
jQuery('#crowdin_error_box').show();
|
||||
jQuery('#crowdin_error_box').html(result.error);
|
||||
jQuery('#crowdin_success_box').hide();
|
||||
} else if(result.html) {
|
||||
jQuery('#crowdin_success_box').show();
|
||||
jQuery('#crowdin_success_box').html(result.html);
|
||||
jQuery('#crowdin_error_box').hide();
|
||||
jQuery('#crowdin_information_box').hide();
|
||||
} else {
|
||||
jQuery('#crowdin_information_box').show();
|
||||
jQuery('#crowdin_success_box').hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function getCrowdinDetails_server(identifier, key){
|
||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getCrowdinDetails&format=json&raw=true&vdm="+vastDevMod;
|
||||
if(token.length > 0 && identifier.length > 0 && key.length > 0){
|
||||
var request = 'token='+token+'&identifier='+identifier+'&key='+key;
|
||||
}
|
||||
return jQuery.ajax({
|
||||
type: 'GET',
|
||||
url: getUrl,
|
||||
dataType: 'json',
|
||||
data: request,
|
||||
jsonp: false
|
||||
});
|
||||
}
|
||||
|
||||
function getAjaxDisplay(type){
|
||||
getAjaxDisplay_server(type).done(function(result) {
|
||||
if(result){
|
||||
|
@ -162,12 +162,12 @@
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPANYNAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPANYNAME_HINT"
|
||||
/>
|
||||
<!-- Php_helper_admin Field. Type: Editor. (joomla) -->
|
||||
<!-- Php_helper_site Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_helper_admin"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_DESCRIPTION"
|
||||
name="php_helper_site"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="550px"
|
||||
cols="15"
|
||||
@ -179,23 +179,6 @@
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Add_email_helper Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_email_helper"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Note_display_component_custom_admin_views Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_display_component_custom_admin_views" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_CUSTOM_ADMIN_VIEWS_DESCRIPTION" class="note_display_component_custom_admin_views" />
|
||||
<!-- Debug_linenr Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
@ -211,25 +194,49 @@
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Sql Field. Type: Textarea. (joomla) -->
|
||||
<!-- Crowdin_account_api_key Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="sql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_LABEL"
|
||||
rows="30"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_HINT"
|
||||
required="true"
|
||||
type="text"
|
||||
name="crowdin_account_api_key"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_ACCOUNT_API_KEY_LABEL"
|
||||
size="50"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_ACCOUNT_API_KEY_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="ALNUM"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_ACCOUNT_API_KEY_MESSAGE"
|
||||
autocomplete="off"
|
||||
/>
|
||||
<!-- Php_preflight_update Field. Type: Editor. (joomla) -->
|
||||
<!-- Update_server Field. Type: Servers. (custom) -->
|
||||
<field
|
||||
type="servers"
|
||||
name="update_server"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Readme Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_preflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
|
||||
name="readme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL"
|
||||
default="You can use all the normal markdown, including the place-holders."
|
||||
width="100%"
|
||||
height="1200px"
|
||||
buttons="false"
|
||||
editor="none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
/>
|
||||
<!-- Php_postflight_update Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_postflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
@ -241,23 +248,8 @@
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Css_site Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="css_site"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="css"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Note_botton_component_dashboard Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_botton_component_dashboard" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_DESCRIPTION" heading="h4" class="alert alert-info note_botton_component_dashboard" />
|
||||
<!-- Description Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
@ -312,23 +304,6 @@
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Php_helper_site Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_helper_site"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="550px"
|
||||
cols="15"
|
||||
rows="80"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Javascript Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
@ -346,6 +321,23 @@
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Css_site Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="css_site"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="css"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Copyright Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
@ -360,8 +352,23 @@
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COPYRIGHT_HINT"
|
||||
required="true"
|
||||
/>
|
||||
<!-- Note_botton_component_dashboard Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_botton_component_dashboard" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_DESCRIPTION" heading="h4" class="alert alert-info note_botton_component_dashboard" />
|
||||
<!-- Php_preflight_update Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_preflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Author Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
@ -378,22 +385,18 @@
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_HINT"
|
||||
/>
|
||||
<!-- Php_postflight_update Field. Type: Editor. (joomla) -->
|
||||
<!-- Sql Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_postflight_update"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
type="textarea"
|
||||
name="sql"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_LABEL"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
cols="15"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_HINT"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Email Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
@ -410,18 +413,56 @@
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMAIL_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMAIL_HINT"
|
||||
/>
|
||||
<!-- Readme Field. Type: Editor. (joomla) -->
|
||||
<!-- Update_server_target Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="update_server_target"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SERVER</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP</option>
|
||||
<option value="3">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER</option>
|
||||
</field>
|
||||
<!-- Add_email_helper Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_email_helper"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Note_crowdin Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_crowdin" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_CROWDIN_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_CROWDIN_DESCRIPTION" heading="h2" class="note_crowdin" />
|
||||
<!-- Php_helper_admin Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="readme"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL"
|
||||
default="You can use all the normal markdown, including the place-holders."
|
||||
name="php_helper_admin"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_DESCRIPTION"
|
||||
width="100%"
|
||||
height="1200px"
|
||||
buttons="false"
|
||||
editor="none"
|
||||
height="550px"
|
||||
cols="15"
|
||||
rows="80"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Website Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
@ -439,21 +480,38 @@
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_HINT"
|
||||
/>
|
||||
<!-- Buildcomp Field. Type: Radio. (joomla) -->
|
||||
<!-- Component_version Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="buildcomp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
type="text"
|
||||
name="component_version"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_LABEL"
|
||||
size="40"
|
||||
maxlength="50"
|
||||
default="1.0.0"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="CMD"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_HINT"
|
||||
/>
|
||||
<!-- Php_helper_both Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_helper_both"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_DESCRIPTION"
|
||||
width="100%"
|
||||
height="550px"
|
||||
cols="15"
|
||||
rows="80"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Add_license Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
@ -469,24 +527,23 @@
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Adduikit Field. Type: List. (joomla) -->
|
||||
<!-- Php_admin_event Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="adduikit"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADDUIKIT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADDUIKIT_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DYNAMIC</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_BOTH_VTWO_AMP_VTHREE</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTWO</option>
|
||||
<option value="3">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTHREE</option>
|
||||
</field>
|
||||
type="editor"
|
||||
name="php_admin_event"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- License_type Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
@ -508,16 +565,16 @@
|
||||
<option value="4">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE</option>
|
||||
</field>
|
||||
<!-- Php_helper_both Field. Type: Editor. (joomla) -->
|
||||
<!-- Php_site_event Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_helper_both"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_DESCRIPTION"
|
||||
name="php_site_event"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_DESCRIPTION"
|
||||
width="100%"
|
||||
height="550px"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="80"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
@ -527,18 +584,18 @@
|
||||
/>
|
||||
<!-- Note_whmcs_lisencing_note Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_whmcs_lisencing_note" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_WHMCS_LISENCING_NOTE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_WHMCS_LISENCING_NOTE_DESCRIPTION" heading="h4" class="alert alert-success note_whmcs_lisencing_note" />
|
||||
<!-- Php_admin_event Field. Type: Editor. (joomla) -->
|
||||
<!-- Css_admin Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_admin_event"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_DESCRIPTION"
|
||||
name="css_admin"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
syntax="css"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
@ -557,23 +614,8 @@
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_HINT"
|
||||
/>
|
||||
<!-- Php_site_event Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_site_event"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Note_dynamic_dashboard Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_dynamic_dashboard" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_DESCRIPTION" heading="h4" class="alert alert-info note_dynamic_dashboard" />
|
||||
<!-- Whmcs_url Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
@ -589,18 +631,18 @@
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_HINT"
|
||||
/>
|
||||
<!-- Css_admin Field. Type: Editor. (joomla) -->
|
||||
<!-- Php_preflight_install Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="css_admin"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_DESCRIPTION"
|
||||
name="php_preflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="css"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
@ -621,8 +663,23 @@
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_BUY_LINK_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_BUY_LINK_HINT"
|
||||
/>
|
||||
<!-- Note_dynamic_dashboard Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_dynamic_dashboard" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_DESCRIPTION" heading="h4" class="alert alert-info note_dynamic_dashboard" />
|
||||
<!-- Php_postflight_install Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_postflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- License Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
@ -637,12 +694,12 @@
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_LICENSE_HINT"
|
||||
required="true"
|
||||
/>
|
||||
<!-- Php_preflight_install Field. Type: Editor. (joomla) -->
|
||||
<!-- Php_method_uninstall Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_preflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_DESCRIPTION"
|
||||
name="php_method_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
@ -666,65 +723,6 @@
|
||||
hide_none="true"
|
||||
hide_default="true"
|
||||
/>
|
||||
<!-- Php_postflight_install Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_postflight_install"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Image Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="media"
|
||||
name="image"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_DESCRIPTION"
|
||||
directory=""
|
||||
/>
|
||||
<!-- Php_method_uninstall Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="php_method_uninstall"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="true"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Update_server_target Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="update_server_target"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SERVER</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP</option>
|
||||
<option value="3">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER</option>
|
||||
</field>
|
||||
<!-- Sql_uninstall Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
@ -738,16 +736,13 @@
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_UNINSTALL_HINT"
|
||||
required="true"
|
||||
/>
|
||||
<!-- Update_server Field. Type: Servers. (custom) -->
|
||||
<!-- Image Field. Type: Media. (joomla) -->
|
||||
<field
|
||||
type="servers"
|
||||
name="update_server"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0"
|
||||
button="true"
|
||||
type="media"
|
||||
name="image"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_DESCRIPTION"
|
||||
directory=""
|
||||
/>
|
||||
<!-- Add_update_server Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
@ -763,29 +758,16 @@
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Component_version Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="component_version"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_LABEL"
|
||||
size="40"
|
||||
maxlength="50"
|
||||
default="1.0.0"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="CMD"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_HINT"
|
||||
/>
|
||||
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_update_server_note_zip" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION" heading="h4" class="alert alert-info note_update_server_note_zip" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="not_required"
|
||||
default="[]"
|
||||
/>
|
||||
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_update_server_note_zip" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION" heading="h4" class="alert alert-info note_update_server_note_zip" />
|
||||
<!-- Note_moved_views Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_moved_views" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_moved_views" />
|
||||
<!-- Sales_server Field. Type: Servers. (custom) -->
|
||||
<field
|
||||
type="servers"
|
||||
@ -797,17 +779,31 @@
|
||||
default="0"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Note_moved_views Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_moved_views" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_moved_views" />
|
||||
<!-- Spacer_hr_one Field. Type: Spacer. A None Database Field. (joomla) -->
|
||||
<field type="spacer" name="spacer_hr_one" hr="true" class="spacer_hr_one" />
|
||||
<!-- Crowdin_project_api_key Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="crowdin_project_api_key"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_API_KEY_LABEL"
|
||||
size="50"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_API_KEY_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="ALNUM"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_API_KEY_MESSAGE"
|
||||
autocomplete="off"
|
||||
onchange="getTranslationToolDetails()"
|
||||
/>
|
||||
<!-- Note_mysql_tweak_options Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_mysql_tweak_options" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_DESCRIPTION" heading="h4" class="alert alert-info note_mysql_tweak_options" />
|
||||
<!-- Creatuserhelper Field. Type: Radio. (joomla) -->
|
||||
<!-- Buildcomp Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="creatuserhelper"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATUSERHELPER_LABEL"
|
||||
name="buildcomp"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
@ -1381,10 +1377,87 @@
|
||||
</field>
|
||||
<!-- Note_display_component_site_views Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_display_component_site_views" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_SITE_VIEWS_DESCRIPTION" class="note_display_component_site_views" />
|
||||
<!-- Note_buildcomp_dynamic_mysql Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_buildcomp_dynamic_mysql" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION" heading="h4" class="alert alert-info note_buildcomp_dynamic_mysql" />
|
||||
<!-- Translation_tool Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="translation_tool"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TRANSLATION_TOOL_LABEL"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NONE</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN</option>
|
||||
</field>
|
||||
<!-- Note_on_custom_admin_views Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_on_custom_admin_views" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CUSTOM_ADMIN_VIEWS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CUSTOM_ADMIN_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_on_custom_admin_views" />
|
||||
<!-- Crowdin_project_identifier Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="crowdin_project_identifier"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_IDENTIFIER_LABEL"
|
||||
size="50"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_IDENTIFIER_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="CMD"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_IDENTIFIER_MESSAGE"
|
||||
autocomplete="off"
|
||||
onchange="getTranslationToolDetails()"
|
||||
/>
|
||||
<!-- Note_display_component_custom_admin_views Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_display_component_custom_admin_views" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_CUSTOM_ADMIN_VIEWS_DESCRIPTION" class="note_display_component_custom_admin_views" />
|
||||
<!-- Crowdin_username Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="crowdin_username"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_USERNAME_LABEL"
|
||||
size="50"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_USERNAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="CMD"
|
||||
message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_USERNAME_MESSAGE"
|
||||
autocomplete="off"
|
||||
/>
|
||||
<!-- Creatuserhelper Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="creatuserhelper"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATUSERHELPER_LABEL"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0"
|
||||
required="true">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
|
||||
</field>
|
||||
<!-- Note_buildcomp_dynamic_mysql Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_buildcomp_dynamic_mysql" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION" heading="h4" class="alert alert-info note_buildcomp_dynamic_mysql" />
|
||||
<!-- Adduikit Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="adduikit"
|
||||
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADDUIKIT_LABEL"
|
||||
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADDUIKIT_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DYNAMIC</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_BOTH_VTWO_AMP_VTHREE</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTWO</option>
|
||||
<option value="3">
|
||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTHREE</option>
|
||||
</field>
|
||||
<!-- Buildcompsql Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
|
@ -9,43 +9,43 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvzcvyw_required = false;
|
||||
jform_vvvvvzdvyz_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvzc = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzc(add_php_view_vvvvvzc);
|
||||
var add_php_view_vvvvvzd = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_view_vvvvvzd);
|
||||
});
|
||||
|
||||
// the vvvvvzc function
|
||||
function vvvvvzc(add_php_view_vvvvvzc)
|
||||
// the vvvvvzd function
|
||||
function vvvvvzd(add_php_view_vvvvvzd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvzc == 1)
|
||||
if (add_php_view_vvvvvzd == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_view field
|
||||
if (jform_vvvvvzcvyw_required)
|
||||
if (jform_vvvvvzdvyz_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_vvvvvzcvyw_required = false;
|
||||
jform_vvvvvzdvyz_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_view field
|
||||
if (!jform_vvvvvzcvyw_required)
|
||||
if (!jform_vvvvvzdvyz_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_vvvvvzcvyw_required = true;
|
||||
jform_vvvvvzdvyz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,15 +9,12 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwajvzv_required = false;
|
||||
jform_vvvvwapvzw_required = false;
|
||||
jform_vvvvwakvzy_required = false;
|
||||
jform_vvvvwaqvzz_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var how_vvvvwai = jQuery("#jform_how").val();
|
||||
vvvvwai(how_vvvvwai);
|
||||
|
||||
var how_vvvvwaj = jQuery("#jform_how").val();
|
||||
vvvvwaj(how_vvvvwaj);
|
||||
|
||||
@ -36,48 +33,13 @@ jQuery(document).ready(function()
|
||||
var how_vvvvwao = jQuery("#jform_how").val();
|
||||
vvvvwao(how_vvvvwao);
|
||||
|
||||
var type_vvvvwap = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwap(type_vvvvwap);
|
||||
var how_vvvvwap = jQuery("#jform_how").val();
|
||||
vvvvwap(how_vvvvwap);
|
||||
|
||||
var type_vvvvwaq = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwaq(type_vvvvwaq);
|
||||
});
|
||||
|
||||
// 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('#jform_addconditions-lbl').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwai Some function
|
||||
function how_vvvvwai_SomeFunc(how_vvvvwai)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwai == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwaj function
|
||||
function vvvvwaj(how_vvvvwaj)
|
||||
{
|
||||
@ -97,29 +59,11 @@ function vvvvwaj(how_vvvvwaj)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').show();
|
||||
// add required attribute to php_setdocument field
|
||||
if (jform_vvvvwajvzv_required)
|
||||
{
|
||||
updateFieldRequired('php_setdocument',0);
|
||||
jQuery('#jform_php_setdocument').prop('required','required');
|
||||
jQuery('#jform_php_setdocument').attr('aria-required',true);
|
||||
jQuery('#jform_php_setdocument').addClass('required');
|
||||
jform_vvvvwajvzv_required = false;
|
||||
}
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
||||
// remove required attribute from php_setdocument field
|
||||
if (!jform_vvvvwajvzv_required)
|
||||
{
|
||||
updateFieldRequired('php_setdocument',1);
|
||||
jQuery('#jform_php_setdocument').removeAttr('required');
|
||||
jQuery('#jform_php_setdocument').removeAttr('aria-required');
|
||||
jQuery('#jform_php_setdocument').removeClass('required');
|
||||
jform_vvvvwajvzv_required = true;
|
||||
}
|
||||
jQuery('#jform_addconditions-lbl').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -127,7 +71,7 @@ function vvvvwaj(how_vvvvwaj)
|
||||
function how_vvvvwaj_SomeFunc(how_vvvvwaj)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwaj == 3)
|
||||
if (how_vvvvwaj == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -153,11 +97,29 @@ function vvvvwak(how_vvvvwak)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_display_library_config').closest('.control-group').show();
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').show();
|
||||
// add required attribute to php_setdocument field
|
||||
if (jform_vvvvwakvzy_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_vvvvwakvzy_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_display_library_config').closest('.control-group').hide();
|
||||
jQuery('#jform_php_setdocument').closest('.control-group').hide();
|
||||
// remove required attribute from php_setdocument field
|
||||
if (!jform_vvvvwakvzy_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_vvvvwakvzy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -165,7 +127,7 @@ function vvvvwak(how_vvvvwak)
|
||||
function how_vvvvwak_SomeFunc(how_vvvvwak)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwak == 2 || how_vvvvwak == 3)
|
||||
if (how_vvvvwak == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -191,11 +153,11 @@ function vvvvwal(how_vvvvwal)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
|
||||
jQuery('.note_display_library_config').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
|
||||
jQuery('.note_display_library_config').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -203,7 +165,7 @@ function vvvvwal(how_vvvvwal)
|
||||
function how_vvvvwal_SomeFunc(how_vvvvwal)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwal == 1 || how_vvvvwal == 2 || how_vvvvwal == 3)
|
||||
if (how_vvvvwal == 2 || how_vvvvwal == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -229,15 +191,11 @@ function vvvvwam(how_vvvvwam)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').show();
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
|
||||
jQuery('.note_display_library_files_folders_urls').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -245,7 +203,7 @@ function vvvvwam(how_vvvvwam)
|
||||
function how_vvvvwam_SomeFunc(how_vvvvwam)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwam == 0)
|
||||
if (how_vvvvwam == 1 || how_vvvvwam == 2 || how_vvvvwam == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -271,13 +229,15 @@ function vvvvwan(how_vvvvwan)
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
jQuery('.note_yes_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_yes_behaviour_two').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').show();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_yes_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_yes_behaviour_two').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_one').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_three').closest('.control-group').hide();
|
||||
jQuery('.note_no_behaviour_two').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@ -285,7 +245,7 @@ function vvvvwan(how_vvvvwan)
|
||||
function how_vvvvwan_SomeFunc(how_vvvvwan)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwan == 1)
|
||||
if (how_vvvvwan == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -308,6 +268,46 @@ function vvvvwao(how_vvvvwao)
|
||||
var how = how_vvvvwao.some(how_vvvvwao_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 vvvvwao Some function
|
||||
function how_vvvvwao_SomeFunc(how_vvvvwao)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwao == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwap function
|
||||
function vvvvwap(how_vvvvwap)
|
||||
{
|
||||
if (isSet(how_vvvvwap) && how_vvvvwap.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwap = how_vvvvwap;
|
||||
var how_vvvvwap = [];
|
||||
how_vvvvwap.push(temp_vvvvwap);
|
||||
}
|
||||
else if (!isSet(how_vvvvwap))
|
||||
{
|
||||
var how_vvvvwap = [];
|
||||
}
|
||||
var how = how_vvvvwap.some(how_vvvvwap_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (how)
|
||||
{
|
||||
@ -323,45 +323,45 @@ function vvvvwao(how_vvvvwao)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwao Some function
|
||||
function how_vvvvwao_SomeFunc(how_vvvvwao)
|
||||
// the vvvvwap Some function
|
||||
function how_vvvvwap_SomeFunc(how_vvvvwap)
|
||||
{
|
||||
// set the function logic
|
||||
if (how_vvvvwao == 4)
|
||||
if (how_vvvvwap == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwap function
|
||||
function vvvvwap(type_vvvvwap)
|
||||
// the vvvvwaq function
|
||||
function vvvvwaq(type_vvvvwaq)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwap == 2)
|
||||
if (type_vvvvwaq == 2)
|
||||
{
|
||||
jQuery('#jform_libraries').closest('.control-group').show();
|
||||
// add required attribute to libraries field
|
||||
if (jform_vvvvwapvzw_required)
|
||||
if (jform_vvvvwaqvzz_required)
|
||||
{
|
||||
updateFieldRequired('libraries',0);
|
||||
jQuery('#jform_libraries').prop('required','required');
|
||||
jQuery('#jform_libraries').attr('aria-required',true);
|
||||
jQuery('#jform_libraries').addClass('required');
|
||||
jform_vvvvwapvzw_required = false;
|
||||
jform_vvvvwaqvzz_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_libraries').closest('.control-group').hide();
|
||||
// remove required attribute from libraries field
|
||||
if (!jform_vvvvwapvzw_required)
|
||||
if (!jform_vvvvwaqvzz_required)
|
||||
{
|
||||
updateFieldRequired('libraries',1);
|
||||
jQuery('#jform_libraries').removeAttr('required');
|
||||
jQuery('#jform_libraries').removeAttr('aria-required');
|
||||
jQuery('#jform_libraries').removeClass('required');
|
||||
jform_vvvvwapvzw_required = true;
|
||||
jform_vvvvwaqvzz_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,180 +9,42 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwbmwan_required = false;
|
||||
jform_vvvvwbmwao_required = false;
|
||||
jform_vvvvwbmwap_required = false;
|
||||
jform_vvvvwbmwaq_required = false;
|
||||
jform_vvvvwbmwar_required = false;
|
||||
jform_vvvvwbnwaq_required = false;
|
||||
jform_vvvvwbnwar_required = false;
|
||||
jform_vvvvwbnwas_required = false;
|
||||
jform_vvvvwbowat_required = false;
|
||||
jform_vvvvwbqwau_required = false;
|
||||
jform_vvvvwbswav_required = false;
|
||||
jform_vvvvwbnwat_required = false;
|
||||
jform_vvvvwbnwau_required = false;
|
||||
jform_vvvvwbowav_required = false;
|
||||
jform_vvvvwbpwaw_required = false;
|
||||
jform_vvvvwbrwax_required = false;
|
||||
jform_vvvvwbtway_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var protocol_vvvvwbm = jQuery("#jform_protocol").val();
|
||||
vvvvwbm(protocol_vvvvwbm);
|
||||
|
||||
var protocol_vvvvwbn = jQuery("#jform_protocol").val();
|
||||
vvvvwbn(protocol_vvvvwbn);
|
||||
|
||||
var protocol_vvvvwbo = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbo = jQuery("#jform_authentication").val();
|
||||
vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo);
|
||||
vvvvwbo(protocol_vvvvwbo);
|
||||
|
||||
var protocol_vvvvwbq = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbq = jQuery("#jform_authentication").val();
|
||||
vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq);
|
||||
var protocol_vvvvwbp = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbp = jQuery("#jform_authentication").val();
|
||||
vvvvwbp(protocol_vvvvwbp,authentication_vvvvwbp);
|
||||
|
||||
var protocol_vvvvwbs = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbs = jQuery("#jform_authentication").val();
|
||||
vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs);
|
||||
var protocol_vvvvwbr = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbr = jQuery("#jform_authentication").val();
|
||||
vvvvwbr(protocol_vvvvwbr,authentication_vvvvwbr);
|
||||
|
||||
var protocol_vvvvwbu = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbu = jQuery("#jform_authentication").val();
|
||||
vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu);
|
||||
var protocol_vvvvwbt = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbt = jQuery("#jform_authentication").val();
|
||||
vvvvwbt(protocol_vvvvwbt,authentication_vvvvwbt);
|
||||
|
||||
var protocol_vvvvwbv = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwbv = jQuery("#jform_authentication").val();
|
||||
vvvvwbv(protocol_vvvvwbv,authentication_vvvvwbv);
|
||||
});
|
||||
|
||||
// the vvvvwbm function
|
||||
function vvvvwbm(protocol_vvvvwbm)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbm) && protocol_vvvvwbm.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbm = protocol_vvvvwbm;
|
||||
var protocol_vvvvwbm = [];
|
||||
protocol_vvvvwbm.push(temp_vvvvwbm);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbm))
|
||||
{
|
||||
var protocol_vvvvwbm = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbm.some(protocol_vvvvwbm_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
// add required attribute to authentication field
|
||||
if (jform_vvvvwbmwan_required)
|
||||
{
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwbmwan_required = false;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
// add required attribute to host field
|
||||
if (jform_vvvvwbmwao_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwbmwao_required = false;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
// add required attribute to port field
|
||||
if (jform_vvvvwbmwap_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwbmwap_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwbmwaq_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwbmwaq_required = false;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').show();
|
||||
jQuery('#jform_username').closest('.control-group').show();
|
||||
// add required attribute to username field
|
||||
if (jform_vvvvwbmwar_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwbmwar_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
// remove required attribute from authentication field
|
||||
if (!jform_vvvvwbmwan_required)
|
||||
{
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwbmwan_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
// remove required attribute from host field
|
||||
if (!jform_vvvvwbmwao_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwbmwao_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
// remove required attribute from port field
|
||||
if (!jform_vvvvwbmwap_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwbmwap_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwbmwaq_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwbmwaq_required = true;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').hide();
|
||||
jQuery('#jform_username').closest('.control-group').hide();
|
||||
// remove required attribute from username field
|
||||
if (!jform_vvvvwbmwar_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwbmwar_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbm Some function
|
||||
function protocol_vvvvwbm_SomeFunc(protocol_vvvvwbm)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbm == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbn function
|
||||
function vvvvwbn(protocol_vvvvwbn)
|
||||
{
|
||||
@ -202,31 +64,111 @@ function vvvvwbn(protocol_vvvvwbn)
|
||||
// set this function logic
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
// add required attribute to authentication field
|
||||
if (jform_vvvvwbnwaq_required)
|
||||
{
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwbnwaq_required = false;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
// add required attribute to host field
|
||||
if (jform_vvvvwbnwar_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwbnwar_required = false;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
// add required attribute to port field
|
||||
if (jform_vvvvwbnwas_required)
|
||||
{
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwbnwas_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwbnwat_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwbnwat_required = false;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').show();
|
||||
jQuery('#jform_username').closest('.control-group').show();
|
||||
// add required attribute to username field
|
||||
if (jform_vvvvwbnwau_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwbnwau_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
// remove required attribute from authentication field
|
||||
if (!jform_vvvvwbnwaq_required)
|
||||
{
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwbnwaq_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
// remove required attribute from host field
|
||||
if (!jform_vvvvwbnwar_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwbnwar_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
// remove required attribute from port field
|
||||
if (!jform_vvvvwbnwas_required)
|
||||
{
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwbnwas_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwbnwat_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwbnwat_required = true;
|
||||
}
|
||||
jQuery('.note_ssh_security').closest('.control-group').hide();
|
||||
jQuery('#jform_username').closest('.control-group').hide();
|
||||
// remove required attribute from username field
|
||||
if (!jform_vvvvwbnwau_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwbnwau_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -234,7 +176,7 @@ function vvvvwbn(protocol_vvvvwbn)
|
||||
function protocol_vvvvwbn_SomeFunc(protocol_vvvvwbn)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbn == 1)
|
||||
if (protocol_vvvvwbn == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -242,7 +184,7 @@ function protocol_vvvvwbn_SomeFunc(protocol_vvvvwbn)
|
||||
}
|
||||
|
||||
// the vvvvwbo function
|
||||
function vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo)
|
||||
function vvvvwbo(protocol_vvvvwbo)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbo) && protocol_vvvvwbo.constructor !== Array)
|
||||
{
|
||||
@ -256,44 +198,34 @@ function vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo)
|
||||
}
|
||||
var protocol = protocol_vvvvwbo.some(protocol_vvvvwbo_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbo) && authentication_vvvvwbo.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbo = authentication_vvvvwbo;
|
||||
var authentication_vvvvwbo = [];
|
||||
authentication_vvvvwbo.push(temp_vvvvwbo);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbo))
|
||||
{
|
||||
var authentication_vvvvwbo = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbo.some(authentication_vvvvwbo_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
if (protocol)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwbowat_required)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
if (jform_vvvvwbowav_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwbowat_required = false;
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwbowav_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwbowat_required)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
if (!jform_vvvvwbowav_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwbowat_required = true;
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwbowav_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -302,50 +234,118 @@ function vvvvwbo(protocol_vvvvwbo,authentication_vvvvwbo)
|
||||
function protocol_vvvvwbo_SomeFunc(protocol_vvvvwbo)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbo == 2)
|
||||
if (protocol_vvvvwbo == 1)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbo Some function
|
||||
function authentication_vvvvwbo_SomeFunc(authentication_vvvvwbo)
|
||||
// the vvvvwbp function
|
||||
function vvvvwbp(protocol_vvvvwbp,authentication_vvvvwbp)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbp) && protocol_vvvvwbp.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbp = protocol_vvvvwbp;
|
||||
var protocol_vvvvwbp = [];
|
||||
protocol_vvvvwbp.push(temp_vvvvwbp);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbp))
|
||||
{
|
||||
var protocol_vvvvwbp = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbp.some(protocol_vvvvwbp_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbp) && authentication_vvvvwbp.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbp = authentication_vvvvwbp;
|
||||
var authentication_vvvvwbp = [];
|
||||
authentication_vvvvwbp.push(temp_vvvvwbp);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbp))
|
||||
{
|
||||
var authentication_vvvvwbp = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbp.some(authentication_vvvvwbp_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (protocol && authentication)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwbpwaw_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwbpwaw_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwbpwaw_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwbpwaw_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbp Some function
|
||||
function protocol_vvvvwbp_SomeFunc(protocol_vvvvwbp)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbo == 1 || authentication_vvvvwbo == 3 || authentication_vvvvwbo == 5)
|
||||
if (protocol_vvvvwbp == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbq function
|
||||
function vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq)
|
||||
// the vvvvwbp Some function
|
||||
function authentication_vvvvwbp_SomeFunc(authentication_vvvvwbp)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbq) && protocol_vvvvwbq.constructor !== Array)
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbp == 1 || authentication_vvvvwbp == 3 || authentication_vvvvwbp == 5)
|
||||
{
|
||||
var temp_vvvvwbq = protocol_vvvvwbq;
|
||||
var protocol_vvvvwbq = [];
|
||||
protocol_vvvvwbq.push(temp_vvvvwbq);
|
||||
return true;
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbq))
|
||||
{
|
||||
var protocol_vvvvwbq = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbq.some(protocol_vvvvwbq_SomeFunc);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isSet(authentication_vvvvwbq) && authentication_vvvvwbq.constructor !== Array)
|
||||
// the vvvvwbr function
|
||||
function vvvvwbr(protocol_vvvvwbr,authentication_vvvvwbr)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbr) && protocol_vvvvwbr.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbq = authentication_vvvvwbq;
|
||||
var authentication_vvvvwbq = [];
|
||||
authentication_vvvvwbq.push(temp_vvvvwbq);
|
||||
var temp_vvvvwbr = protocol_vvvvwbr;
|
||||
var protocol_vvvvwbr = [];
|
||||
protocol_vvvvwbr.push(temp_vvvvwbr);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbq))
|
||||
else if (!isSet(protocol_vvvvwbr))
|
||||
{
|
||||
var authentication_vvvvwbq = [];
|
||||
var protocol_vvvvwbr = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbq.some(authentication_vvvvwbq_SomeFunc);
|
||||
var protocol = protocol_vvvvwbr.some(protocol_vvvvwbr_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbr) && authentication_vvvvwbr.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbr = authentication_vvvvwbr;
|
||||
var authentication_vvvvwbr = [];
|
||||
authentication_vvvvwbr.push(temp_vvvvwbr);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbr))
|
||||
{
|
||||
var authentication_vvvvwbr = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbr.some(authentication_vvvvwbr_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -353,78 +353,78 @@ function vvvvwbq(protocol_vvvvwbq,authentication_vvvvwbq)
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
// add required attribute to private field
|
||||
if (jform_vvvvwbqwau_required)
|
||||
if (jform_vvvvwbrwax_required)
|
||||
{
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwbqwau_required = false;
|
||||
jform_vvvvwbrwax_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
// remove required attribute from private field
|
||||
if (!jform_vvvvwbqwau_required)
|
||||
if (!jform_vvvvwbrwax_required)
|
||||
{
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwbqwau_required = true;
|
||||
jform_vvvvwbrwax_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbq Some function
|
||||
function protocol_vvvvwbq_SomeFunc(protocol_vvvvwbq)
|
||||
// the vvvvwbr Some function
|
||||
function protocol_vvvvwbr_SomeFunc(protocol_vvvvwbr)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbq == 2)
|
||||
if (protocol_vvvvwbr == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbq Some function
|
||||
function authentication_vvvvwbq_SomeFunc(authentication_vvvvwbq)
|
||||
// the vvvvwbr Some function
|
||||
function authentication_vvvvwbr_SomeFunc(authentication_vvvvwbr)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbq == 2 || authentication_vvvvwbq == 3)
|
||||
if (authentication_vvvvwbr == 2 || authentication_vvvvwbr == 3)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbs function
|
||||
function vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs)
|
||||
// the vvvvwbt function
|
||||
function vvvvwbt(protocol_vvvvwbt,authentication_vvvvwbt)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbs) && protocol_vvvvwbs.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbt) && protocol_vvvvwbt.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbs = protocol_vvvvwbs;
|
||||
var protocol_vvvvwbs = [];
|
||||
protocol_vvvvwbs.push(temp_vvvvwbs);
|
||||
var temp_vvvvwbt = protocol_vvvvwbt;
|
||||
var protocol_vvvvwbt = [];
|
||||
protocol_vvvvwbt.push(temp_vvvvwbt);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbs))
|
||||
else if (!isSet(protocol_vvvvwbt))
|
||||
{
|
||||
var protocol_vvvvwbs = [];
|
||||
var protocol_vvvvwbt = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbs.some(protocol_vvvvwbs_SomeFunc);
|
||||
var protocol = protocol_vvvvwbt.some(protocol_vvvvwbt_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbs) && authentication_vvvvwbs.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbt) && authentication_vvvvwbt.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbs = authentication_vvvvwbs;
|
||||
var authentication_vvvvwbs = [];
|
||||
authentication_vvvvwbs.push(temp_vvvvwbs);
|
||||
var temp_vvvvwbt = authentication_vvvvwbt;
|
||||
var authentication_vvvvwbt = [];
|
||||
authentication_vvvvwbt.push(temp_vvvvwbt);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbs))
|
||||
else if (!isSet(authentication_vvvvwbt))
|
||||
{
|
||||
var authentication_vvvvwbs = [];
|
||||
var authentication_vvvvwbt = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbs.some(authentication_vvvvwbs_SomeFunc);
|
||||
var authentication = authentication_vvvvwbt.some(authentication_vvvvwbt_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -432,78 +432,78 @@ function vvvvwbs(protocol_vvvvwbs,authentication_vvvvwbs)
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').show();
|
||||
// add required attribute to private_key field
|
||||
if (jform_vvvvwbswav_required)
|
||||
if (jform_vvvvwbtway_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_vvvvwbswav_required = false;
|
||||
jform_vvvvwbtway_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').hide();
|
||||
// remove required attribute from private_key field
|
||||
if (!jform_vvvvwbswav_required)
|
||||
if (!jform_vvvvwbtway_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_vvvvwbswav_required = true;
|
||||
jform_vvvvwbtway_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbs Some function
|
||||
function protocol_vvvvwbs_SomeFunc(protocol_vvvvwbs)
|
||||
// the vvvvwbt Some function
|
||||
function protocol_vvvvwbt_SomeFunc(protocol_vvvvwbt)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbs == 2)
|
||||
if (protocol_vvvvwbt == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbs Some function
|
||||
function authentication_vvvvwbs_SomeFunc(authentication_vvvvwbs)
|
||||
// the vvvvwbt Some function
|
||||
function authentication_vvvvwbt_SomeFunc(authentication_vvvvwbt)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbs == 4 || authentication_vvvvwbs == 5)
|
||||
if (authentication_vvvvwbt == 4 || authentication_vvvvwbt == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbu function
|
||||
function vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu)
|
||||
// the vvvvwbv function
|
||||
function vvvvwbv(protocol_vvvvwbv,authentication_vvvvwbv)
|
||||
{
|
||||
if (isSet(protocol_vvvvwbu) && protocol_vvvvwbu.constructor !== Array)
|
||||
if (isSet(protocol_vvvvwbv) && protocol_vvvvwbv.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbu = protocol_vvvvwbu;
|
||||
var protocol_vvvvwbu = [];
|
||||
protocol_vvvvwbu.push(temp_vvvvwbu);
|
||||
var temp_vvvvwbv = protocol_vvvvwbv;
|
||||
var protocol_vvvvwbv = [];
|
||||
protocol_vvvvwbv.push(temp_vvvvwbv);
|
||||
}
|
||||
else if (!isSet(protocol_vvvvwbu))
|
||||
else if (!isSet(protocol_vvvvwbv))
|
||||
{
|
||||
var protocol_vvvvwbu = [];
|
||||
var protocol_vvvvwbv = [];
|
||||
}
|
||||
var protocol = protocol_vvvvwbu.some(protocol_vvvvwbu_SomeFunc);
|
||||
var protocol = protocol_vvvvwbv.some(protocol_vvvvwbv_SomeFunc);
|
||||
|
||||
if (isSet(authentication_vvvvwbu) && authentication_vvvvwbu.constructor !== Array)
|
||||
if (isSet(authentication_vvvvwbv) && authentication_vvvvwbv.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwbu = authentication_vvvvwbu;
|
||||
var authentication_vvvvwbu = [];
|
||||
authentication_vvvvwbu.push(temp_vvvvwbu);
|
||||
var temp_vvvvwbv = authentication_vvvvwbv;
|
||||
var authentication_vvvvwbv = [];
|
||||
authentication_vvvvwbv.push(temp_vvvvwbv);
|
||||
}
|
||||
else if (!isSet(authentication_vvvvwbu))
|
||||
else if (!isSet(authentication_vvvvwbv))
|
||||
{
|
||||
var authentication_vvvvwbu = [];
|
||||
var authentication_vvvvwbv = [];
|
||||
}
|
||||
var authentication = authentication_vvvvwbu.some(authentication_vvvvwbu_SomeFunc);
|
||||
var authentication = authentication_vvvvwbv.some(authentication_vvvvwbv_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -517,22 +517,22 @@ function vvvvwbu(protocol_vvvvwbu,authentication_vvvvwbu)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwbu Some function
|
||||
function protocol_vvvvwbu_SomeFunc(protocol_vvvvwbu)
|
||||
// the vvvvwbv Some function
|
||||
function protocol_vvvvwbv_SomeFunc(protocol_vvvvwbv)
|
||||
{
|
||||
// set the function logic
|
||||
if (protocol_vvvvwbu == 2)
|
||||
if (protocol_vvvvwbv == 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwbu Some function
|
||||
function authentication_vvvvwbu_SomeFunc(authentication_vvvvwbu)
|
||||
// the vvvvwbv Some function
|
||||
function authentication_vvvvwbv_SomeFunc(authentication_vvvvwbv)
|
||||
{
|
||||
// set the function logic
|
||||
if (authentication_vvvvwbu == 2 || authentication_vvvvwbu == 3 || authentication_vvvvwbu == 4 || authentication_vvvvwbu == 5)
|
||||
if (authentication_vvvvwbv == 2 || authentication_vvvvwbv == 3 || authentication_vvvvwbv == 4 || authentication_vvvvwbv == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -9,327 +9,327 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvyqvyk_required = false;
|
||||
jform_vvvvvyrvyl_required = false;
|
||||
jform_vvvvvysvym_required = false;
|
||||
jform_vvvvvytvyn_required = false;
|
||||
jform_vvvvvyuvyo_required = false;
|
||||
jform_vvvvvyvvyp_required = false;
|
||||
jform_vvvvvywvyq_required = false;
|
||||
jform_vvvvvyxvyr_required = false;
|
||||
jform_vvvvvyyvys_required = false;
|
||||
jform_vvvvvyzvyt_required = false;
|
||||
jform_vvvvvyzvyu_required = false;
|
||||
jform_vvvvvyrvyn_required = false;
|
||||
jform_vvvvvysvyo_required = false;
|
||||
jform_vvvvvytvyp_required = false;
|
||||
jform_vvvvvyuvyq_required = false;
|
||||
jform_vvvvvyvvyr_required = false;
|
||||
jform_vvvvvywvys_required = false;
|
||||
jform_vvvvvyxvyt_required = false;
|
||||
jform_vvvvvyyvyu_required = false;
|
||||
jform_vvvvvyzvyv_required = false;
|
||||
jform_vvvvvzavyw_required = false;
|
||||
jform_vvvvvzavyx_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvyq = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyq(add_php_view_vvvvvyq);
|
||||
var add_php_view_vvvvvyr = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyr(add_php_view_vvvvvyr);
|
||||
|
||||
var add_php_jview_display_vvvvvyr = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyr(add_php_jview_display_vvvvvyr);
|
||||
var add_php_jview_display_vvvvvys = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvys(add_php_jview_display_vvvvvys);
|
||||
|
||||
var add_php_jview_vvvvvys = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvys(add_php_jview_vvvvvys);
|
||||
var add_php_jview_vvvvvyt = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyt(add_php_jview_vvvvvyt);
|
||||
|
||||
var add_php_document_vvvvvyt = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyt(add_php_document_vvvvvyt);
|
||||
var add_php_document_vvvvvyu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyu(add_php_document_vvvvvyu);
|
||||
|
||||
var add_css_document_vvvvvyu = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyu(add_css_document_vvvvvyu);
|
||||
var add_css_document_vvvvvyv = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyv(add_css_document_vvvvvyv);
|
||||
|
||||
var add_javascript_file_vvvvvyv = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyv(add_javascript_file_vvvvvyv);
|
||||
var add_javascript_file_vvvvvyw = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyw(add_javascript_file_vvvvvyw);
|
||||
|
||||
var add_js_document_vvvvvyw = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyw(add_js_document_vvvvvyw);
|
||||
var add_js_document_vvvvvyx = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyx(add_js_document_vvvvvyx);
|
||||
|
||||
var add_css_vvvvvyx = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyx(add_css_vvvvvyx);
|
||||
var add_css_vvvvvyy = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyy(add_css_vvvvvyy);
|
||||
|
||||
var add_php_ajax_vvvvvyy = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyy(add_php_ajax_vvvvvyy);
|
||||
var add_php_ajax_vvvvvyz = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyz(add_php_ajax_vvvvvyz);
|
||||
|
||||
var add_custom_button_vvvvvyz = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyz(add_custom_button_vvvvvyz);
|
||||
var add_custom_button_vvvvvza = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvza(add_custom_button_vvvvvza);
|
||||
|
||||
var button_position_vvvvvza = jQuery("#jform_button_position").val();
|
||||
vvvvvza(button_position_vvvvvza);
|
||||
var button_position_vvvvvzb = jQuery("#jform_button_position").val();
|
||||
vvvvvzb(button_position_vvvvvzb);
|
||||
});
|
||||
|
||||
// the vvvvvyq function
|
||||
function vvvvvyq(add_php_view_vvvvvyq)
|
||||
// the vvvvvyr function
|
||||
function vvvvvyr(add_php_view_vvvvvyr)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvyq == 1)
|
||||
if (add_php_view_vvvvvyr == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_view field
|
||||
if (jform_vvvvvyqvyk_required)
|
||||
if (jform_vvvvvyrvyn_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_vvvvvyqvyk_required = false;
|
||||
jform_vvvvvyrvyn_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_view field
|
||||
if (!jform_vvvvvyqvyk_required)
|
||||
if (!jform_vvvvvyrvyn_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_vvvvvyqvyk_required = true;
|
||||
jform_vvvvvyrvyn_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyr function
|
||||
function vvvvvyr(add_php_jview_display_vvvvvyr)
|
||||
// the vvvvvys function
|
||||
function vvvvvys(add_php_jview_display_vvvvvys)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvvyr == 1)
|
||||
if (add_php_jview_display_vvvvvys == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_jview_display field
|
||||
if (jform_vvvvvyrvyl_required)
|
||||
if (jform_vvvvvysvyo_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_vvvvvyrvyl_required = false;
|
||||
jform_vvvvvysvyo_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview_display-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_jview_display field
|
||||
if (!jform_vvvvvyrvyl_required)
|
||||
if (!jform_vvvvvysvyo_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_vvvvvyrvyl_required = true;
|
||||
jform_vvvvvysvyo_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvys function
|
||||
function vvvvvys(add_php_jview_vvvvvys)
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(add_php_jview_vvvvvyt)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvvys == 1)
|
||||
if (add_php_jview_vvvvvyt == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_jview field
|
||||
if (jform_vvvvvysvym_required)
|
||||
if (jform_vvvvvytvyp_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_vvvvvysvym_required = false;
|
||||
jform_vvvvvytvyp_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_jview-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_jview field
|
||||
if (!jform_vvvvvysvym_required)
|
||||
if (!jform_vvvvvytvyp_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_vvvvvysvym_required = true;
|
||||
jform_vvvvvytvyp_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyt function
|
||||
function vvvvvyt(add_php_document_vvvvvyt)
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_php_document_vvvvvyu)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvyt == 1)
|
||||
if (add_php_document_vvvvvyu == 1)
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_document field
|
||||
if (jform_vvvvvytvyn_required)
|
||||
if (jform_vvvvvyuvyq_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_vvvvvytvyn_required = false;
|
||||
jform_vvvvvyuvyq_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_document field
|
||||
if (!jform_vvvvvytvyn_required)
|
||||
if (!jform_vvvvvyuvyq_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_vvvvvytvyn_required = true;
|
||||
jform_vvvvvyuvyq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyu function
|
||||
function vvvvvyu(add_css_document_vvvvvyu)
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(add_css_document_vvvvvyv)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvvyu == 1)
|
||||
if (add_css_document_vvvvvyv == 1)
|
||||
{
|
||||
jQuery('#jform_css_document-lbl').closest('.control-group').show();
|
||||
// add required attribute to css_document field
|
||||
if (jform_vvvvvyuvyo_required)
|
||||
if (jform_vvvvvyvvyr_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_vvvvvyuvyo_required = false;
|
||||
jform_vvvvvyvvyr_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css_document-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from css_document field
|
||||
if (!jform_vvvvvyuvyo_required)
|
||||
if (!jform_vvvvvyvvyr_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_vvvvvyuvyo_required = true;
|
||||
jform_vvvvvyvvyr_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(add_javascript_file_vvvvvyv)
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_javascript_file_vvvvvyw)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvvyv == 1)
|
||||
if (add_javascript_file_vvvvvyw == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
|
||||
// add required attribute to javascript_file field
|
||||
if (jform_vvvvvyvvyp_required)
|
||||
if (jform_vvvvvywvys_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_vvvvvyvvyp_required = false;
|
||||
jform_vvvvvywvys_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_javascript_file-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from javascript_file field
|
||||
if (!jform_vvvvvyvvyp_required)
|
||||
if (!jform_vvvvvywvys_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_vvvvvyvvyp_required = true;
|
||||
jform_vvvvvywvys_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_js_document_vvvvvyw)
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(add_js_document_vvvvvyx)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvvyw == 1)
|
||||
if (add_js_document_vvvvvyx == 1)
|
||||
{
|
||||
jQuery('#jform_js_document-lbl').closest('.control-group').show();
|
||||
// add required attribute to js_document field
|
||||
if (jform_vvvvvywvyq_required)
|
||||
if (jform_vvvvvyxvyt_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_vvvvvywvyq_required = false;
|
||||
jform_vvvvvyxvyt_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_js_document-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from js_document field
|
||||
if (!jform_vvvvvywvyq_required)
|
||||
if (!jform_vvvvvyxvyt_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_vvvvvywvyq_required = true;
|
||||
jform_vvvvvyxvyt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(add_css_vvvvvyx)
|
||||
// the vvvvvyy function
|
||||
function vvvvvyy(add_css_vvvvvyy)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvvyx == 1)
|
||||
if (add_css_vvvvvyy == 1)
|
||||
{
|
||||
jQuery('#jform_css-lbl').closest('.control-group').show();
|
||||
// add required attribute to css field
|
||||
if (jform_vvvvvyxvyr_required)
|
||||
if (jform_vvvvvyyvyu_required)
|
||||
{
|
||||
updateFieldRequired('css',0);
|
||||
jQuery('#jform_css').prop('required','required');
|
||||
jQuery('#jform_css').attr('aria-required',true);
|
||||
jQuery('#jform_css').addClass('required');
|
||||
jform_vvvvvyxvyr_required = false;
|
||||
jform_vvvvvyyvyu_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_css-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from css field
|
||||
if (!jform_vvvvvyxvyr_required)
|
||||
if (!jform_vvvvvyyvyu_required)
|
||||
{
|
||||
updateFieldRequired('css',1);
|
||||
jQuery('#jform_css').removeAttr('required');
|
||||
jQuery('#jform_css').removeAttr('aria-required');
|
||||
jQuery('#jform_css').removeClass('required');
|
||||
jform_vvvvvyxvyr_required = true;
|
||||
jform_vvvvvyyvyu_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyy function
|
||||
function vvvvvyy(add_php_ajax_vvvvvyy)
|
||||
// the vvvvvyz function
|
||||
function vvvvvyz(add_php_ajax_vvvvvyz)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvyy == 1)
|
||||
if (add_php_ajax_vvvvvyz == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_ajaxmethod field
|
||||
if (jform_vvvvvyyvys_required)
|
||||
if (jform_vvvvvyzvyv_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_vvvvvyyvys_required = false;
|
||||
jform_vvvvvyzvyv_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -337,43 +337,43 @@ function vvvvvyy(add_php_ajax_vvvvvyy)
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_ajaxmethod field
|
||||
if (!jform_vvvvvyyvys_required)
|
||||
if (!jform_vvvvvyzvyv_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_vvvvvyyvys_required = true;
|
||||
jform_vvvvvyzvyv_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyz function
|
||||
function vvvvvyz(add_custom_button_vvvvvyz)
|
||||
// the vvvvvza function
|
||||
function vvvvvza(add_custom_button_vvvvvza)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvvyz == 1)
|
||||
if (add_custom_button_vvvvvza == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_controller field
|
||||
if (jform_vvvvvyzvyt_required)
|
||||
if (jform_vvvvvzavyw_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_vvvvvyzvyt_required = false;
|
||||
jform_vvvvvzavyw_required = false;
|
||||
}
|
||||
jQuery('#jform_php_model-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_model field
|
||||
if (jform_vvvvvyzvyu_required)
|
||||
if (jform_vvvvvzavyx_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_vvvvvyzvyu_required = false;
|
||||
jform_vvvvvzavyx_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -381,41 +381,41 @@ function vvvvvyz(add_custom_button_vvvvvyz)
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_controller field
|
||||
if (!jform_vvvvvyzvyt_required)
|
||||
if (!jform_vvvvvzavyw_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_vvvvvyzvyt_required = true;
|
||||
jform_vvvvvzavyw_required = true;
|
||||
}
|
||||
jQuery('#jform_php_model-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_model field
|
||||
if (!jform_vvvvvyzvyu_required)
|
||||
if (!jform_vvvvvzavyx_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_vvvvvyzvyu_required = true;
|
||||
jform_vvvvvzavyx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvza function
|
||||
function vvvvvza(button_position_vvvvvza)
|
||||
// the vvvvvzb function
|
||||
function vvvvvzb(button_position_vvvvvzb)
|
||||
{
|
||||
if (isSet(button_position_vvvvvza) && button_position_vvvvvza.constructor !== Array)
|
||||
if (isSet(button_position_vvvvvzb) && button_position_vvvvvzb.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvvza = button_position_vvvvvza;
|
||||
var button_position_vvvvvza = [];
|
||||
button_position_vvvvvza.push(temp_vvvvvza);
|
||||
var temp_vvvvvzb = button_position_vvvvvzb;
|
||||
var button_position_vvvvvzb = [];
|
||||
button_position_vvvvvzb.push(temp_vvvvvzb);
|
||||
}
|
||||
else if (!isSet(button_position_vvvvvza))
|
||||
else if (!isSet(button_position_vvvvvzb))
|
||||
{
|
||||
var button_position_vvvvvza = [];
|
||||
var button_position_vvvvvzb = [];
|
||||
}
|
||||
var button_position = button_position_vvvvvza.some(button_position_vvvvvza_SomeFunc);
|
||||
var button_position = button_position_vvvvvzb.some(button_position_vvvvvzb_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -429,11 +429,11 @@ function vvvvvza(button_position_vvvvvza)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvza Some function
|
||||
function button_position_vvvvvza_SomeFunc(button_position_vvvvvza)
|
||||
// the vvvvvzb Some function
|
||||
function button_position_vvvvvzb_SomeFunc(button_position_vvvvvzb)
|
||||
{
|
||||
// set the function logic
|
||||
if (button_position_vvvvvza == 5)
|
||||
if (button_position_vvvvvzb == 5)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -9,43 +9,43 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvzbvyv_required = false;
|
||||
jform_vvvvvzcvyy_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvvzb = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzb(add_php_view_vvvvvzb);
|
||||
var add_php_view_vvvvvzc = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzc(add_php_view_vvvvvzc);
|
||||
});
|
||||
|
||||
// the vvvvvzb function
|
||||
function vvvvvzb(add_php_view_vvvvvzb)
|
||||
// the vvvvvzc function
|
||||
function vvvvvzc(add_php_view_vvvvvzc)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvvzb == 1)
|
||||
if (add_php_view_vvvvvzc == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
// add required attribute to php_view field
|
||||
if (jform_vvvvvzbvyv_required)
|
||||
if (jform_vvvvvzcvyy_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_vvvvvzbvyv_required = false;
|
||||
jform_vvvvvzcvyy_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').hide();
|
||||
// remove required attribute from php_view field
|
||||
if (!jform_vvvvvzbvyv_required)
|
||||
if (!jform_vvvvvzcvyy_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_vvvvvzbvyv_required = true;
|
||||
jform_vvvvvzcvyy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -75,14 +75,14 @@ class ComponentbuilderModelImport_language_translations extends JModelLegacy
|
||||
public function import()
|
||||
{
|
||||
$this->setState('action', 'import');
|
||||
$app = JFactory::getApplication();
|
||||
$session = JFactory::getSession();
|
||||
$package = null;
|
||||
$continue = false;
|
||||
$app = JFactory::getApplication();
|
||||
$session = JFactory::getSession();
|
||||
$package = null;
|
||||
$continue = false;
|
||||
// get import type
|
||||
$this->getType = $app->input->getString('gettype', NULL);
|
||||
// get import type
|
||||
$this->dataType = $session->get('dataType_VDM_IMPORTINTO', NULL);
|
||||
$this->dataType = $session->get('dataType_VDM_IMPORTINTO', NULL);
|
||||
|
||||
if ($package === null)
|
||||
{
|
||||
@ -447,68 +447,87 @@ class ComponentbuilderModelImport_language_translations extends JModelLegacy
|
||||
* @return boolean false on failure
|
||||
*
|
||||
**/
|
||||
protected function save($data,$table)
|
||||
protected function save($data, $table)
|
||||
{
|
||||
// import the data if there is any
|
||||
if(ComponentbuilderHelper::checkArray($data['array']))
|
||||
{
|
||||
// get user object
|
||||
$user = JFactory::getUser();
|
||||
$user = JFactory::getUser();
|
||||
// remove header if it has headers
|
||||
$id_key = $data['target_headers']['id'];
|
||||
$id_key = $data['target_headers']['id'];
|
||||
if (isset($data['target_headers']['Source']))
|
||||
{
|
||||
$source_key = $data['target_headers']['Source'];
|
||||
$source_key = $data['target_headers']['Source'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$source_key = $data['target_headers']['English'];
|
||||
$source_key = $data['target_headers']['English'];
|
||||
}
|
||||
// get the first array set
|
||||
$firstSet = reset($data['array']);
|
||||
|
||||
// check if first array is a header array and remove if true
|
||||
if($firstSet[$id_key] == 'id' || $firstSet[$source_key] == 'Source' || $firstSet[$source_key] == 'English')
|
||||
{
|
||||
array_shift($data['array']);
|
||||
}
|
||||
|
||||
// make sure there is still values in array and that it was not only headers
|
||||
if(ComponentbuilderHelper::checkArray($data['array']) && $user->authorise($table.'.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
||||
{
|
||||
// set target.
|
||||
$target = array_flip($data['target_headers']);
|
||||
$target = array_flip($data['target_headers']);
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// set some defaults
|
||||
$todayDate = JFactory::getDate()->toSql();
|
||||
$todayDate = JFactory::getDate()->toSql();
|
||||
// get global action permissions
|
||||
$canDo = ComponentbuilderHelper::getActions($table);
|
||||
$canEdit = $canDo->get('core.edit');
|
||||
// proses the data
|
||||
$canDo = ComponentbuilderHelper::getActions($table);
|
||||
$canEdit = $canDo->get('core.edit');
|
||||
$canCreate = $canDo->get('core.create');
|
||||
$canState = $canDo->get('core.edit.state');
|
||||
// get languages
|
||||
$languages = ComponentbuilderHelper::getVars('language', 1, 'published', 'langtag');
|
||||
// process the data
|
||||
foreach($data['array'] as $row)
|
||||
{
|
||||
$found = false;
|
||||
if (isset($row[$id_key]) && is_numeric($row[$id_key]) && $row[$id_key] > 0)
|
||||
$has_id = false;
|
||||
if ($canEdit && isset($row[$source_key]) && ComponentbuilderHelper::checkString($row[$source_key]))
|
||||
{
|
||||
// raw items import & update!
|
||||
$query = $db->getQuery(true);
|
||||
$query
|
||||
->select($db->quoteName(array('version', 'translation')))
|
||||
->from($db->quoteName('#__componentbuilder_'.$table))
|
||||
->where($db->quoteName('id') . ' = '. $db->quote($row[$id_key]))
|
||||
->where($db->quoteName('source') . ' = '. $db->quote($row[$source_key]));
|
||||
$query->select($db->quoteName(array('id', 'version', 'translation')));
|
||||
$query->from($db->quoteName('#__componentbuilder_'.$table));
|
||||
if (isset($row[$id_key]) && is_numeric($row[$id_key]) && $row[$id_key] > 0)
|
||||
{
|
||||
$query->where($db->quoteName('id') . ' = '. $db->quote($row[$id_key]));
|
||||
$has_id = true;
|
||||
}
|
||||
$query->where($db->quoteName('source') . ' = '. $db->quote($row[$source_key]));
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
$found = $db->getNumRows();
|
||||
// check one more time, just with source
|
||||
if(!$found && $has_id)
|
||||
{
|
||||
// raw items import & update!
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('id', 'version', 'translation')));
|
||||
$query->from($db->quoteName('#__componentbuilder_'.$table));
|
||||
$query->where($db->quoteName('source') . ' = '. $db->quote($row[$source_key]));
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
$found = $db->getNumRows();
|
||||
}
|
||||
}
|
||||
|
||||
// check if we found the string
|
||||
if($found && $canEdit)
|
||||
{
|
||||
// update item
|
||||
$id = $row[$id_key];
|
||||
$item = $db->loadObject();
|
||||
$item = $db->loadObject();
|
||||
$id = $item->id;
|
||||
// load previous translation strings
|
||||
if (ComponentbuilderHelper::checkJson($item->translation))
|
||||
{
|
||||
@ -522,16 +541,14 @@ class ComponentbuilderModelImport_language_translations extends JModelLegacy
|
||||
$counter = 0;
|
||||
$pre = false;
|
||||
}
|
||||
// get languages
|
||||
$languages = ComponentbuilderHelper::getVars('language', 1, 'published', 'langtag');
|
||||
// reset all buckets
|
||||
$query = $db->getQuery(true);
|
||||
$fields = array();
|
||||
$query = $db->getQuery(true);
|
||||
$fields = array();
|
||||
// Fields to update.
|
||||
foreach($row as $key => $cell)
|
||||
{
|
||||
// ignore column
|
||||
if ('IGNORE' === $target[$key] || 'modified_by' === $target[$key] || 'modified' === $target[$key] || 'Source' === $target[$key] || 'English' === $target[$key] )
|
||||
if ('IGNORE' === $target[$key] || 'modified_by' === $target[$key] || 'modified' === $target[$key] || 'created_by' === $target[$key] || 'created' === $target[$key] || 'source' === strtolower($target[$key]) || 'english' === strtolower($target[$key]))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -589,18 +606,95 @@ class ComponentbuilderModelImport_language_translations extends JModelLegacy
|
||||
{
|
||||
$fields[] = $db->quoteName('translation') . ' = ' . $db->quote(json_encode($translations, JSON_FORCE_OBJECT));
|
||||
// load the defaults
|
||||
$fields[] = $db->quoteName('modified_by') . ' = ' . $db->quote($user->id);
|
||||
$fields[] = $db->quoteName('modified_by') . ' = ' . (int) $user->id;
|
||||
$fields[] = $db->quoteName('modified') . ' = ' . $db->quote($todayDate);
|
||||
// Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('id') . ' = ' . $id
|
||||
);
|
||||
|
||||
// update the local translation
|
||||
$query->update($db->quoteName('#__componentbuilder_'.$table))->set($fields)->where($conditions);
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
elseif (!$found && $canCreate)
|
||||
{
|
||||
$translations = array();
|
||||
$counter = 0;
|
||||
// reset all buckets
|
||||
$query = $db->getQuery(true);
|
||||
$values = array();
|
||||
$columns = array();
|
||||
// Fields to update.
|
||||
foreach($row as $key => $cell)
|
||||
{
|
||||
// ignore column
|
||||
if ('IGNORE' === $target[$key] || 'modified_by' === $target[$key] || 'modified' === $target[$key] || 'created_by' === $target[$key] || 'created' === $target[$key] || 'version' == $target[$key])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// verify publish authority
|
||||
if ('published' == $target[$key] && !$canState)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// set to translations
|
||||
if(in_array($target[$key], $languages))
|
||||
{
|
||||
// only add if it has a string
|
||||
if (ComponentbuilderHelper::checkString($cell))
|
||||
{
|
||||
$translations['translation'.$counter] = array('language' => $target[$key], 'translation' => $cell);
|
||||
$counter++;
|
||||
}
|
||||
}
|
||||
// load the source
|
||||
elseif ('source' === strtolower($target[$key]) || 'english' === strtolower($target[$key]))
|
||||
{
|
||||
$columns[] = 'source';
|
||||
$values[] = $db->quote($cell);
|
||||
}
|
||||
// set to update array
|
||||
elseif(in_array($key, $data['target_headers']) && is_numeric($cell))
|
||||
{
|
||||
$columns[] = $target[$key];
|
||||
$values[] = $cell;
|
||||
}
|
||||
elseif(in_array($key, $data['target_headers']) && is_string($cell))
|
||||
{
|
||||
$columns[] = $target[$key];
|
||||
$values[] = $db->quote($cell);
|
||||
}
|
||||
elseif(in_array($key, $data['target_headers']) && is_null($cell))
|
||||
{
|
||||
// if import data is null then set empty
|
||||
$columns[] = $target[$key];
|
||||
$values[] = '';
|
||||
}
|
||||
}
|
||||
// set the translation
|
||||
if (ComponentbuilderHelper::checkArray($translations))
|
||||
{
|
||||
$columns[] = 'translation';
|
||||
$values[] = $db->quote(json_encode($translations, JSON_FORCE_OBJECT));
|
||||
}
|
||||
// check if we have values
|
||||
if (ComponentbuilderHelper::checkArray($values))
|
||||
{
|
||||
// load the defaults
|
||||
$columns[] = 'created_by';
|
||||
$values[] = (int) $user->id;
|
||||
$columns[] = 'created';
|
||||
$values[] = $db->quote($todayDate);
|
||||
$columns[] = 'version';
|
||||
$values[] = 1;
|
||||
// update the local translation
|
||||
$query->insert($db->quoteName('#__componentbuilder_'.$table))->columns($db->quoteName($columns))->values(implode(',', $values));
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -86,40 +86,16 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_admin))
|
||||
{
|
||||
// base64 Decode php_helper_admin.
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
}
|
||||
|
||||
if (!empty($item->sql))
|
||||
{
|
||||
// base64 Decode sql.
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
if (!empty($item->php_preflight_update))
|
||||
{
|
||||
// base64 Decode php_preflight_update.
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->css_site))
|
||||
{
|
||||
// base64 Decode css_site.
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
}
|
||||
|
||||
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))
|
||||
if (!empty($item->readme))
|
||||
{
|
||||
// base64 Decode javascript.
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
// base64 Decode readme.
|
||||
$item->readme = base64_decode($item->readme);
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_update))
|
||||
@ -128,10 +104,34 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->readme))
|
||||
if (!empty($item->javascript))
|
||||
{
|
||||
// base64 Decode readme.
|
||||
$item->readme = base64_decode($item->readme);
|
||||
// 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.
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->sql))
|
||||
{
|
||||
// base64 Decode sql.
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
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_both))
|
||||
@ -193,18 +193,36 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
// Get the encryption object.
|
||||
$basic = new FOFEncryptAes($basickey);
|
||||
|
||||
if (!empty($item->crowdin_account_api_key) && $basickey && !is_numeric($item->crowdin_account_api_key) && $item->crowdin_account_api_key === base64_encode(base64_decode($item->crowdin_account_api_key, true)))
|
||||
{
|
||||
// basic decrypt data crowdin_account_api_key.
|
||||
$item->crowdin_account_api_key = rtrim($basic->decryptString($item->crowdin_account_api_key), "\0");
|
||||
}
|
||||
|
||||
if (!empty($item->whmcs_key) && $basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
|
||||
{
|
||||
// basic decrypt data whmcs_key.
|
||||
$item->whmcs_key = rtrim($basic->decryptString($item->whmcs_key), "\0");
|
||||
}
|
||||
|
||||
if (!empty($item->crowdin_project_api_key) && $basickey && !is_numeric($item->crowdin_project_api_key) && $item->crowdin_project_api_key === base64_encode(base64_decode($item->crowdin_project_api_key, true)))
|
||||
{
|
||||
// basic decrypt data crowdin_project_api_key.
|
||||
$item->crowdin_project_api_key = rtrim($basic->decryptString($item->crowdin_project_api_key), "\0");
|
||||
}
|
||||
|
||||
if (!empty($item->export_key) && $basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
|
||||
{
|
||||
// basic decrypt data export_key.
|
||||
$item->export_key = rtrim($basic->decryptString($item->export_key), "\0");
|
||||
}
|
||||
|
||||
if (!empty($item->crowdin_username) && $basickey && !is_numeric($item->crowdin_username) && $item->crowdin_username === base64_encode(base64_decode($item->crowdin_username, true)))
|
||||
{
|
||||
// basic decrypt data crowdin_username.
|
||||
$item->crowdin_username = rtrim($basic->decryptString($item->crowdin_username), "\0");
|
||||
}
|
||||
|
||||
if (!empty($item->addcontributors))
|
||||
{
|
||||
// Convert the addcontributors field to an array.
|
||||
@ -627,6 +645,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
'component_config' => 'joomla_component',
|
||||
'component_dashboard' => 'joomla_component',
|
||||
'component_files_folders' => 'joomla_component',
|
||||
'component_placeholders' => 'joomla_component',
|
||||
'custom_code' => 'component'
|
||||
);
|
||||
foreach($_tablesArray as $_updateTable => $_key)
|
||||
@ -675,6 +694,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
'component_config' => 'joomla_component',
|
||||
'component_dashboard' => 'joomla_component',
|
||||
'component_files_folders' => 'joomla_component',
|
||||
'component_placeholders' => 'joomla_component',
|
||||
'custom_code' => 'component'
|
||||
);
|
||||
foreach($_tablesArray as $_updateTable => $_key)
|
||||
@ -1083,40 +1103,16 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$data['addcontributors'] = '';
|
||||
}
|
||||
|
||||
// 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 sql string to base64 string.
|
||||
if (isset($data['sql']))
|
||||
{
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// Set the php_preflight_update string to base64 string.
|
||||
if (isset($data['php_preflight_update']))
|
||||
{
|
||||
$data['php_preflight_update'] = base64_encode($data['php_preflight_update']);
|
||||
}
|
||||
|
||||
// Set the css_site string to base64 string.
|
||||
if (isset($data['css_site']))
|
||||
{
|
||||
$data['css_site'] = base64_encode($data['css_site']);
|
||||
}
|
||||
|
||||
// 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']))
|
||||
// Set the readme string to base64 string.
|
||||
if (isset($data['readme']))
|
||||
{
|
||||
$data['javascript'] = base64_encode($data['javascript']);
|
||||
$data['readme'] = base64_encode($data['readme']);
|
||||
}
|
||||
|
||||
// Set the php_postflight_update string to base64 string.
|
||||
@ -1125,10 +1121,34 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
$data['php_postflight_update'] = base64_encode($data['php_postflight_update']);
|
||||
}
|
||||
|
||||
// Set the readme string to base64 string.
|
||||
if (isset($data['readme']))
|
||||
// Set the javascript string to base64 string.
|
||||
if (isset($data['javascript']))
|
||||
{
|
||||
$data['readme'] = base64_encode($data['readme']);
|
||||
$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']))
|
||||
{
|
||||
$data['php_preflight_update'] = base64_encode($data['php_preflight_update']);
|
||||
}
|
||||
|
||||
// Set the sql string to base64 string.
|
||||
if (isset($data['sql']))
|
||||
{
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// 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_both string to base64 string.
|
||||
@ -1190,18 +1210,36 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
|
||||
// Get the encryption object
|
||||
$basic = new FOFEncryptAes($basickey);
|
||||
|
||||
// Encrypt data crowdin_account_api_key.
|
||||
if (isset($data['crowdin_account_api_key']) && $basickey)
|
||||
{
|
||||
$data['crowdin_account_api_key'] = $basic->encryptString($data['crowdin_account_api_key']);
|
||||
}
|
||||
|
||||
// Encrypt data whmcs_key.
|
||||
if (isset($data['whmcs_key']) && $basickey)
|
||||
{
|
||||
$data['whmcs_key'] = $basic->encryptString($data['whmcs_key']);
|
||||
}
|
||||
|
||||
// Encrypt data crowdin_project_api_key.
|
||||
if (isset($data['crowdin_project_api_key']) && $basickey)
|
||||
{
|
||||
$data['crowdin_project_api_key'] = $basic->encryptString($data['crowdin_project_api_key']);
|
||||
}
|
||||
|
||||
// Encrypt data export_key.
|
||||
if (isset($data['export_key']) && $basickey)
|
||||
{
|
||||
$data['export_key'] = $basic->encryptString($data['export_key']);
|
||||
}
|
||||
|
||||
// Encrypt data crowdin_username.
|
||||
if (isset($data['crowdin_username']) && $basickey)
|
||||
{
|
||||
$data['crowdin_username'] = $basic->encryptString($data['crowdin_username']);
|
||||
}
|
||||
|
||||
// we check if component should be build from sql file
|
||||
if (isset($data['buildcomp']) && 1 == $data['buildcomp'])
|
||||
{
|
||||
|
@ -2084,35 +2084,40 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode php_helper_admin
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode php_preflight_update
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
// decode css_site
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
// decode php_helper_site
|
||||
$item->php_helper_site = base64_decode($item->php_helper_site);
|
||||
// decode javascript
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
// decode php_postflight_update
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
if ($basickey && !is_numeric($item->crowdin_account_api_key) && $item->crowdin_account_api_key === base64_encode(base64_decode($item->crowdin_account_api_key, true)))
|
||||
{
|
||||
// decrypt crowdin_account_api_key
|
||||
$item->crowdin_account_api_key = $basic->decryptString($item->crowdin_account_api_key);
|
||||
}
|
||||
// decode readme
|
||||
$item->readme = base64_decode($item->readme);
|
||||
// decode php_postflight_update
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
// decode javascript
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
// decode css_site
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
// decode php_preflight_update
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode php_helper_admin
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
// 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_site_event
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
// decode css_admin
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
|
||||
{
|
||||
// decrypt whmcs_key
|
||||
$item->whmcs_key = $basic->decryptString($item->whmcs_key);
|
||||
}
|
||||
// decode php_site_event
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
// 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_postflight_install
|
||||
@ -2121,11 +2126,21 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
// decode sql_uninstall
|
||||
$item->sql_uninstall = base64_decode($item->sql_uninstall);
|
||||
if ($basickey && !is_numeric($item->crowdin_project_api_key) && $item->crowdin_project_api_key === base64_encode(base64_decode($item->crowdin_project_api_key, true)))
|
||||
{
|
||||
// decrypt crowdin_project_api_key
|
||||
$item->crowdin_project_api_key = $basic->decryptString($item->crowdin_project_api_key);
|
||||
}
|
||||
if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
|
||||
{
|
||||
// decrypt export_key
|
||||
$item->export_key = $basic->decryptString($item->export_key);
|
||||
}
|
||||
if ($basickey && !is_numeric($item->crowdin_username) && $item->crowdin_username === base64_encode(base64_decode($item->crowdin_username, true)))
|
||||
{
|
||||
// decrypt crowdin_username
|
||||
$item->crowdin_username = $basic->decryptString($item->crowdin_username);
|
||||
}
|
||||
// decode buildcompsql
|
||||
$item->buildcompsql = base64_decode($item->buildcompsql);
|
||||
// unset the values we don't want exported.
|
||||
|
@ -156,7 +156,7 @@ class ComponentbuilderModelServer extends JModelAdmin
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getWawlinked_components()
|
||||
public function getWazlinked_components()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
|
Reference in New Issue
Block a user