Added validation rules resolve gh-254. Removed empty sql files. Improved the field area.
This commit is contained in:
@ -278,12 +278,12 @@ function checkFunctionName(functioName) {
|
||||
// now start search for where the function is used
|
||||
usedin(result.name, ide);
|
||||
} else if(result.message){
|
||||
// show notice that functioName is not okay
|
||||
// show notice that functionName is not okay
|
||||
jQuery.UIkit.notify({message: result.message, timeout: 5000, status: result.status, pos: 'top-right'});
|
||||
jQuery('#jform_function_name').val('');
|
||||
} else {
|
||||
// set an error that message was not send
|
||||
jQuery.UIkit.notify({message: 'Function name already taken, please try again.', timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('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
|
||||
@ -291,7 +291,7 @@ function checkFunctionName(functioName) {
|
||||
});
|
||||
} else {
|
||||
// set an error that message was not send
|
||||
jQuery.UIkit.notify({message: 'You must add an unique function name.', timeout: 5000, status: 'danger', pos: 'top-right'});
|
||||
jQuery.UIkit.notify({message: Joomla.JText._('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();
|
||||
|
Reference in New Issue
Block a user