Release of v4.1.1-beta2
Adds new JCB package engine. Fix issue with loading the Component Builder Wiki. Adds advanced version update notice to the Component Builder Dashboard. Completely refactors the class that builds the Component Dashboard. #1134. Adds Initialize, Reset, and Push functionality to the Repository entities. Completely refactors the SQL teaks and SQL dump classes. Changes J4 fields to allow NULL. Fix a bug in Dynamic Get JavaScript that causes table columns to not load.
This commit is contained in:
@@ -291,7 +291,7 @@ function checkFunctionName(functioName) {
|
||||
jQuery('#jform_function_name').val('');
|
||||
} else {
|
||||
// set an error that message was not send
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_FUNCTION_NAME_ALREADY_TAKEN_PLEASE_TRY_AGAIN'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_FUNCTION_NAME_ALREADY_TAKEN_PLEASE_TRY_AGAIN'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery('#jform_function_name').val('');
|
||||
}
|
||||
// set custom code placeholder
|
||||
@@ -299,7 +299,7 @@ function checkFunctionName(functioName) {
|
||||
});
|
||||
} else {
|
||||
// set an error that message was not send
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_YOU_MUST_ADD_AN_UNIQUE_FUNCTION_NAME'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_YOU_MUST_ADD_AN_UNIQUE_FUNCTION_NAME'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery('#jform_function_name').val('');
|
||||
// set custom code placeholder
|
||||
setCustomCodePlaceholder();
|
||||
|
@@ -617,8 +617,8 @@ function vvvvvzq(main_source_vvvvvzq)
|
||||
jQuery('#jform_group-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_order-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_where-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_join_db_table-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_join_view_table-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_join_db_table-lbl').closest('.control-group').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -627,8 +627,8 @@ function vvvvvzq(main_source_vvvvvzq)
|
||||
jQuery('#jform_group-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_order-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_where-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_join_db_table-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_join_view_table-lbl').closest('.control-group').hide();
|
||||
jQuery('#jform_join_db_table-lbl').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1444,7 +1444,7 @@ function setSelectAll(select_all) {
|
||||
function getViewTableColumns_server(viewId, asKey, rowType) {
|
||||
let getUrl = JRouter("index.php?option=com_componentbuilder&task=ajax.viewTableColumns&format=json&raw=true");
|
||||
let request = '';
|
||||
if (token.length > 0 && viewId > 0 && asKey.length > 0) {
|
||||
if (token.length > 0 && viewId.length && asKey.length > 0) {
|
||||
request = token + '=1&as=' + asKey + '&type=' + rowType + '&id=' + viewId;
|
||||
}
|
||||
return fetch(getUrl + '&' + request, { method: 'GET' }).then(function(response) {
|
||||
|
@@ -575,7 +575,7 @@ function getFieldPropertyDesc(field, targetForm){
|
||||
jQuery('#'+id).val('');
|
||||
jQuery('#'+id).trigger("liszt:updated");
|
||||
// give out a notice
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_PROPERTY_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_PROPERTY_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'});
|
||||
// update the values
|
||||
jQuery('#'+target[0]+'__desc').val('');
|
||||
jQuery('#'+target[0]+'__value').val('');
|
||||
@@ -595,7 +595,7 @@ function getFieldPropertyDesc(field, targetForm){
|
||||
jQuery('#'+target[0]+'__value').val(result.value);
|
||||
} else {
|
||||
// update the values
|
||||
jQuery('#'+target[0]+'__desc').val(Joomla.JText._('COM_COMPONENTBUILDER_NO_DESCRIPTION_FOUND'));
|
||||
jQuery('#'+target[0]+'__desc').val(Joomla.Text._('COM_COMPONENTBUILDER_NO_DESCRIPTION_FOUND'));
|
||||
jQuery('#'+target[0]+'__value').val('');
|
||||
}
|
||||
});
|
||||
@@ -627,7 +627,7 @@ function propertyDynamicSet() {
|
||||
}
|
||||
}
|
||||
// trigger chosen on the list fields
|
||||
// jQuery('.field_list_name_options').chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":Joomla.JText._("COM_COMPONENTBUILDER_TYPE_OR_SELECT_SOME_OPTIONS"),"placeholder_text_single":Joomla.JText._("COM_COMPONENTBUILDER_SELECT_A_PROPERTY"),"no_results_text":Joomla.JText._("COM_COMPONENTBUILDER_NO_RESULTS_MATCH")});
|
||||
// jQuery('.field_list_name_options').chosen({"disable_search_threshold":10,"search_contains":true,"allow_single_deselect":true,"placeholder_text_multiple":Joomla.Text._("COM_COMPONENTBUILDER_TYPE_OR_SELECT_SOME_OPTIONS"),"placeholder_text_single":Joomla.Text._("COM_COMPONENTBUILDER_SELECT_A_PROPERTY"),"no_results_text":Joomla.Text._("COM_COMPONENTBUILDER_NO_RESULTS_MATCH")});
|
||||
// now build the list to keep
|
||||
jQuery.each( propertiesArray, function( prop, name ) {
|
||||
if (!propertiesSelectedArray.hasOwnProperty(prop)) {
|
||||
|
@@ -9,11 +9,11 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwcmvxv_required = false;
|
||||
jform_vvvvwcnvxw_required = false;
|
||||
jform_vvvvwcovxx_required = false;
|
||||
jform_vvvvwcpvxy_required = false;
|
||||
jform_vvvvwcrvxz_required = false;
|
||||
jform_vvvvwcmvxu_required = false;
|
||||
jform_vvvvwcnvxv_required = false;
|
||||
jform_vvvvwcovxw_required = false;
|
||||
jform_vvvvwcpvxx_required = false;
|
||||
jform_vvvvwcrvxy_required = false;
|
||||
|
||||
// Initial Script
|
||||
document.addEventListener('DOMContentLoaded', function()
|
||||
@@ -45,26 +45,26 @@ function vvvvwcm(location_vvvvwcm)
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').show();
|
||||
// add required attribute to admin_view field
|
||||
if (jform_vvvvwcmvxv_required)
|
||||
if (jform_vvvvwcmvxu_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_vvvvwcmvxv_required = false;
|
||||
jform_vvvvwcmvxu_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_admin_view').closest('.control-group').hide();
|
||||
// remove required attribute from admin_view field
|
||||
if (!jform_vvvvwcmvxv_required)
|
||||
if (!jform_vvvvwcmvxu_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_vvvvwcmvxv_required = true;
|
||||
jform_vvvvwcmvxu_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -77,26 +77,26 @@ function vvvvwcn(location_vvvvwcn)
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').show();
|
||||
// add required attribute to site_view field
|
||||
if (jform_vvvvwcnvxw_required)
|
||||
if (jform_vvvvwcnvxv_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_vvvvwcnvxw_required = false;
|
||||
jform_vvvvwcnvxv_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_site_view').closest('.control-group').hide();
|
||||
// remove required attribute from site_view field
|
||||
if (!jform_vvvvwcnvxw_required)
|
||||
if (!jform_vvvvwcnvxv_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_vvvvwcnvxw_required = true;
|
||||
jform_vvvvwcnvxv_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -122,26 +122,26 @@ function vvvvwco(type_vvvvwco)
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').show();
|
||||
// add required attribute to url field
|
||||
if (jform_vvvvwcovxx_required)
|
||||
if (jform_vvvvwcovxw_required)
|
||||
{
|
||||
updateFieldRequired('url',0);
|
||||
jQuery('#jform_url').prop('required','required');
|
||||
jQuery('#jform_url').attr('aria-required',true);
|
||||
jQuery('#jform_url').addClass('required');
|
||||
jform_vvvvwcovxx_required = false;
|
||||
jform_vvvvwcovxw_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_url').closest('.control-group').hide();
|
||||
// remove required attribute from url field
|
||||
if (!jform_vvvvwcovxx_required)
|
||||
if (!jform_vvvvwcovxw_required)
|
||||
{
|
||||
updateFieldRequired('url',1);
|
||||
jQuery('#jform_url').removeAttr('required');
|
||||
jQuery('#jform_url').removeAttr('aria-required');
|
||||
jQuery('#jform_url').removeClass('required');
|
||||
jform_vvvvwcovxx_required = true;
|
||||
jform_vvvvwcovxw_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -178,26 +178,26 @@ function vvvvwcp(type_vvvvwcp)
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').show();
|
||||
// add required attribute to article field
|
||||
if (jform_vvvvwcpvxy_required)
|
||||
if (jform_vvvvwcpvxx_required)
|
||||
{
|
||||
updateFieldRequired('article',0);
|
||||
jQuery('#jform_article').prop('required','required');
|
||||
jQuery('#jform_article').attr('aria-required',true);
|
||||
jQuery('#jform_article').addClass('required');
|
||||
jform_vvvvwcpvxy_required = false;
|
||||
jform_vvvvwcpvxx_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_article').closest('.control-group').hide();
|
||||
// remove required attribute from article field
|
||||
if (!jform_vvvvwcpvxy_required)
|
||||
if (!jform_vvvvwcpvxx_required)
|
||||
{
|
||||
updateFieldRequired('article',1);
|
||||
jQuery('#jform_article').removeAttr('required');
|
||||
jQuery('#jform_article').removeAttr('aria-required');
|
||||
jQuery('#jform_article').removeClass('required');
|
||||
jform_vvvvwcpvxy_required = true;
|
||||
jform_vvvvwcpvxx_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -259,26 +259,26 @@ function vvvvwcr(target_vvvvwcr)
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').show();
|
||||
// add required attribute to groups field
|
||||
if (jform_vvvvwcrvxz_required)
|
||||
if (jform_vvvvwcrvxy_required)
|
||||
{
|
||||
updateFieldRequired('groups',0);
|
||||
jQuery('#jform_groups').prop('required','required');
|
||||
jQuery('#jform_groups').attr('aria-required',true);
|
||||
jQuery('#jform_groups').addClass('required');
|
||||
jform_vvvvwcrvxz_required = false;
|
||||
jform_vvvvwcrvxy_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_groups').closest('.control-group').hide();
|
||||
// remove required attribute from groups field
|
||||
if (!jform_vvvvwcrvxz_required)
|
||||
if (!jform_vvvvwcrvxy_required)
|
||||
{
|
||||
updateFieldRequired('groups',1);
|
||||
jQuery('#jform_groups').removeAttr('required');
|
||||
jQuery('#jform_groups').removeAttr('aria-required');
|
||||
jQuery('#jform_groups').removeClass('required');
|
||||
jform_vvvvwcrvxz_required = true;
|
||||
jform_vvvvwcrvxy_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -485,7 +485,7 @@ function getClassCode(field, type){
|
||||
jQuery('#'+id).val('');
|
||||
jQuery('#'+id).trigger("liszt:updated");
|
||||
// give out a notice
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'});
|
||||
} else {
|
||||
// set the active removed value
|
||||
selectedIdRemoved[type] = id;
|
||||
|
@@ -41,7 +41,7 @@ function checkPlaceholderName(placeholderName) {
|
||||
jQuery('#jform_target').val('');
|
||||
} else {
|
||||
// set an error that message was not send
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_PLACEHOLDER_ALREADY_TAKEN_PLEASE_TRY_AGAIN'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_PLACEHOLDER_ALREADY_TAKEN_PLEASE_TRY_AGAIN'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery('#jform_target').val('');
|
||||
}
|
||||
// set custom code placeholder
|
||||
@@ -49,7 +49,7 @@ function checkPlaceholderName(placeholderName) {
|
||||
});
|
||||
} else {
|
||||
// set an error that message was not send
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_YOU_MUST_ADD_AN_UNIQUE_PLACEHOLDER'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_YOU_MUST_ADD_AN_UNIQUE_PLACEHOLDER'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery('#jform_target').val('');
|
||||
// set custom code placeholder
|
||||
setPlaceholderName();
|
||||
|
@@ -249,7 +249,7 @@ function getClassCode(field, type){
|
||||
jQuery('#'+id).val('');
|
||||
jQuery('#'+id).trigger("liszt:updated");
|
||||
// give out a notice
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER'), timeout: 5000, status: 'warning', pos: 'top-center'});
|
||||
} else {
|
||||
// set the active removed value
|
||||
selectedIdRemoved[type] = id;
|
||||
|
@@ -9,15 +9,15 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwccvxl_required = false;
|
||||
jform_vvvvwccvxm_required = false;
|
||||
jform_vvvvwccvxn_required = false;
|
||||
jform_vvvvwccvxo_required = false;
|
||||
jform_vvvvwccvxp_required = false;
|
||||
jform_vvvvwccvxq_required = false;
|
||||
jform_vvvvwcdvxr_required = false;
|
||||
jform_vvvvwcevxs_required = false;
|
||||
jform_vvvvwcgvxt_required = false;
|
||||
jform_vvvvwcivxu_required = false;
|
||||
jform_vvvvwcdvxq_required = false;
|
||||
jform_vvvvwcevxr_required = false;
|
||||
jform_vvvvwcgvxs_required = false;
|
||||
jform_vvvvwcivxt_required = false;
|
||||
|
||||
// Initial Script
|
||||
document.addEventListener('DOMContentLoaded', function()
|
||||
@@ -66,108 +66,108 @@ function vvvvwcc(protocol_vvvvwcc)
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').show();
|
||||
// add required attribute to authentication field
|
||||
if (jform_vvvvwccvxm_required)
|
||||
if (jform_vvvvwccvxl_required)
|
||||
{
|
||||
updateFieldRequired('authentication',0);
|
||||
jQuery('#jform_authentication').prop('required','required');
|
||||
jQuery('#jform_authentication').attr('aria-required',true);
|
||||
jQuery('#jform_authentication').addClass('required');
|
||||
jform_vvvvwccvxm_required = false;
|
||||
jform_vvvvwccvxl_required = false;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').show();
|
||||
// add required attribute to host field
|
||||
if (jform_vvvvwccvxn_required)
|
||||
if (jform_vvvvwccvxm_required)
|
||||
{
|
||||
updateFieldRequired('host',0);
|
||||
jQuery('#jform_host').prop('required','required');
|
||||
jQuery('#jform_host').attr('aria-required',true);
|
||||
jQuery('#jform_host').addClass('required');
|
||||
jform_vvvvwccvxn_required = false;
|
||||
jform_vvvvwccvxm_required = false;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').show();
|
||||
// add required attribute to port field
|
||||
if (jform_vvvvwccvxo_required)
|
||||
if (jform_vvvvwccvxn_required)
|
||||
{
|
||||
updateFieldRequired('port',0);
|
||||
jQuery('#jform_port').prop('required','required');
|
||||
jQuery('#jform_port').attr('aria-required',true);
|
||||
jQuery('#jform_port').addClass('required');
|
||||
jform_vvvvwccvxo_required = false;
|
||||
jform_vvvvwccvxn_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwccvxp_required)
|
||||
if (jform_vvvvwccvxo_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwccvxp_required = false;
|
||||
jform_vvvvwccvxo_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_vvvvwccvxq_required)
|
||||
if (jform_vvvvwccvxp_required)
|
||||
{
|
||||
updateFieldRequired('username',0);
|
||||
jQuery('#jform_username').prop('required','required');
|
||||
jQuery('#jform_username').attr('aria-required',true);
|
||||
jQuery('#jform_username').addClass('required');
|
||||
jform_vvvvwccvxq_required = false;
|
||||
jform_vvvvwccvxp_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_authentication').closest('.control-group').hide();
|
||||
// remove required attribute from authentication field
|
||||
if (!jform_vvvvwccvxm_required)
|
||||
if (!jform_vvvvwccvxl_required)
|
||||
{
|
||||
updateFieldRequired('authentication',1);
|
||||
jQuery('#jform_authentication').removeAttr('required');
|
||||
jQuery('#jform_authentication').removeAttr('aria-required');
|
||||
jQuery('#jform_authentication').removeClass('required');
|
||||
jform_vvvvwccvxm_required = true;
|
||||
jform_vvvvwccvxl_required = true;
|
||||
}
|
||||
jQuery('#jform_host').closest('.control-group').hide();
|
||||
// remove required attribute from host field
|
||||
if (!jform_vvvvwccvxn_required)
|
||||
if (!jform_vvvvwccvxm_required)
|
||||
{
|
||||
updateFieldRequired('host',1);
|
||||
jQuery('#jform_host').removeAttr('required');
|
||||
jQuery('#jform_host').removeAttr('aria-required');
|
||||
jQuery('#jform_host').removeClass('required');
|
||||
jform_vvvvwccvxn_required = true;
|
||||
jform_vvvvwccvxm_required = true;
|
||||
}
|
||||
jQuery('#jform_port').closest('.control-group').hide();
|
||||
// remove required attribute from port field
|
||||
if (!jform_vvvvwccvxo_required)
|
||||
if (!jform_vvvvwccvxn_required)
|
||||
{
|
||||
updateFieldRequired('port',1);
|
||||
jQuery('#jform_port').removeAttr('required');
|
||||
jQuery('#jform_port').removeAttr('aria-required');
|
||||
jQuery('#jform_port').removeClass('required');
|
||||
jform_vvvvwccvxo_required = true;
|
||||
jform_vvvvwccvxn_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwccvxp_required)
|
||||
if (!jform_vvvvwccvxo_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwccvxp_required = true;
|
||||
jform_vvvvwccvxo_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_vvvvwccvxq_required)
|
||||
if (!jform_vvvvwccvxp_required)
|
||||
{
|
||||
updateFieldRequired('username',1);
|
||||
jQuery('#jform_username').removeAttr('required');
|
||||
jQuery('#jform_username').removeAttr('aria-required');
|
||||
jQuery('#jform_username').removeClass('required');
|
||||
jform_vvvvwccvxq_required = true;
|
||||
jform_vvvvwccvxp_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -205,13 +205,13 @@ function vvvvwcd(protocol_vvvvwcd)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').show();
|
||||
jQuery('#jform_signature').closest('.control-group').show();
|
||||
// add required attribute to signature field
|
||||
if (jform_vvvvwcdvxr_required)
|
||||
if (jform_vvvvwcdvxq_required)
|
||||
{
|
||||
updateFieldRequired('signature',0);
|
||||
jQuery('#jform_signature').prop('required','required');
|
||||
jQuery('#jform_signature').attr('aria-required',true);
|
||||
jQuery('#jform_signature').addClass('required');
|
||||
jform_vvvvwcdvxr_required = false;
|
||||
jform_vvvvwcdvxq_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -219,13 +219,13 @@ function vvvvwcd(protocol_vvvvwcd)
|
||||
jQuery('.note_ftp_signature').closest('.control-group').hide();
|
||||
jQuery('#jform_signature').closest('.control-group').hide();
|
||||
// remove required attribute from signature field
|
||||
if (!jform_vvvvwcdvxr_required)
|
||||
if (!jform_vvvvwcdvxq_required)
|
||||
{
|
||||
updateFieldRequired('signature',1);
|
||||
jQuery('#jform_signature').removeAttr('required');
|
||||
jQuery('#jform_signature').removeAttr('aria-required');
|
||||
jQuery('#jform_signature').removeClass('required');
|
||||
jform_vvvvwcdvxr_required = true;
|
||||
jform_vvvvwcdvxq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -274,26 +274,26 @@ function vvvvwce(protocol_vvvvwce,authentication_vvvvwce)
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').show();
|
||||
// add required attribute to password field
|
||||
if (jform_vvvvwcevxs_required)
|
||||
if (jform_vvvvwcevxr_required)
|
||||
{
|
||||
updateFieldRequired('password',0);
|
||||
jQuery('#jform_password').prop('required','required');
|
||||
jQuery('#jform_password').attr('aria-required',true);
|
||||
jQuery('#jform_password').addClass('required');
|
||||
jform_vvvvwcevxs_required = false;
|
||||
jform_vvvvwcevxr_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_password').closest('.control-group').hide();
|
||||
// remove required attribute from password field
|
||||
if (!jform_vvvvwcevxs_required)
|
||||
if (!jform_vvvvwcevxr_required)
|
||||
{
|
||||
updateFieldRequired('password',1);
|
||||
jQuery('#jform_password').removeAttr('required');
|
||||
jQuery('#jform_password').removeAttr('aria-required');
|
||||
jQuery('#jform_password').removeClass('required');
|
||||
jform_vvvvwcevxs_required = true;
|
||||
jform_vvvvwcevxr_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -353,26 +353,26 @@ function vvvvwcg(protocol_vvvvwcg,authentication_vvvvwcg)
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').show();
|
||||
// add required attribute to private field
|
||||
if (jform_vvvvwcgvxt_required)
|
||||
if (jform_vvvvwcgvxs_required)
|
||||
{
|
||||
updateFieldRequired('private',0);
|
||||
jQuery('#jform_private').prop('required','required');
|
||||
jQuery('#jform_private').attr('aria-required',true);
|
||||
jQuery('#jform_private').addClass('required');
|
||||
jform_vvvvwcgvxt_required = false;
|
||||
jform_vvvvwcgvxs_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private').closest('.control-group').hide();
|
||||
// remove required attribute from private field
|
||||
if (!jform_vvvvwcgvxt_required)
|
||||
if (!jform_vvvvwcgvxs_required)
|
||||
{
|
||||
updateFieldRequired('private',1);
|
||||
jQuery('#jform_private').removeAttr('required');
|
||||
jQuery('#jform_private').removeAttr('aria-required');
|
||||
jQuery('#jform_private').removeClass('required');
|
||||
jform_vvvvwcgvxt_required = true;
|
||||
jform_vvvvwcgvxs_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -432,26 +432,26 @@ function vvvvwci(protocol_vvvvwci,authentication_vvvvwci)
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').show();
|
||||
// add required attribute to private_key field
|
||||
if (jform_vvvvwcivxu_required)
|
||||
if (jform_vvvvwcivxt_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_vvvvwcivxu_required = false;
|
||||
jform_vvvvwcivxt_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_private_key').closest('.control-group').hide();
|
||||
// remove required attribute from private_key field
|
||||
if (!jform_vvvvwcivxu_required)
|
||||
if (!jform_vvvvwcivxt_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_vvvvwcivxu_required = true;
|
||||
jform_vvvvwcivxt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -72,13 +72,13 @@ function checkRuleName(ruleName) {
|
||||
jQuery('#jform_name').val('');
|
||||
} else {
|
||||
// set an error that message was not send
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_VALIDATION_RULE_NAME_ALREADY_TAKEN_PLEASE_TRY_AGAIN'), timeout: 7000, status: 'danger', pos: 'top-right'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_VALIDATION_RULE_NAME_ALREADY_TAKEN_PLEASE_TRY_AGAIN'), timeout: 7000, status: 'danger', pos: 'top-right'});
|
||||
jQuery('#jform_name').val('');
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// set an error that message was not send
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('COM_COMPONENTBUILDER_YOU_MUST_ADD_AN_UNIQUE_VALIDATION_RULE_NAME'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery.UIkit.notify({message: Joomla.Text._('COM_COMPONENTBUILDER_YOU_MUST_ADD_AN_UNIQUE_VALIDATION_RULE_NAME'), timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery('#jform_name').val('');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user