forked from joomla/Component-Builder
Improved the adminForm validation JavaScript, thanks @ro-ot
This commit is contained in:
parent
018eed3054
commit
8cdf056ad4
@ -144,11 +144,11 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 29th January, 2019
|
+ *Last Build*: 30th January, 2019
|
||||||
+ *Version*: 2.9.10
|
+ *Version*: 2.9.10
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **195039**
|
+ *Line count*: **194699**
|
||||||
+ *Field count*: **1089**
|
+ *Field count*: **1089**
|
||||||
+ *File count*: **1277**
|
+ *File count*: **1277**
|
||||||
+ *Folder count*: **201**
|
+ *Folder count*: **201**
|
||||||
|
@ -144,11 +144,11 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 29th January, 2019
|
+ *Last Build*: 30th January, 2019
|
||||||
+ *Version*: 2.9.10
|
+ *Version*: 2.9.10
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **195039**
|
+ *Line count*: **194699**
|
||||||
+ *Field count*: **1089**
|
+ *Field count*: **1089**
|
||||||
+ *File count*: **1277**
|
+ *File count*: **1277**
|
||||||
+ *Folder count*: **201**
|
+ *Folder count*: **201**
|
||||||
|
@ -5,19 +5,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('###view###, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('###view###, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -5,19 +5,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('###sview###, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('###sview###, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('admin_custom_tabs, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('admin_custom_tabs, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('admin_fields, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('admin_fields, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('admin_fields_conditions, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('admin_fields_conditions, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('admin_fields_relations, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('admin_fields_relations, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('admin_view, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('admin_view, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_admin_views, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_admin_views, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_config, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_config, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_custom_admin_menus, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_custom_admin_menus, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_custom_admin_views, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_custom_admin_views, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_dashboard, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_dashboard, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_files_folders, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_files_folders, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_mysql_tweaks, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_mysql_tweaks, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_site_views, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_site_views, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('component_updates, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('component_updates, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('custom_admin_view, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('custom_admin_view, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('custom_code, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('custom_code, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('dynamic_get, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('dynamic_get, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('field, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('field, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('fieldtype, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('fieldtype, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('help_document, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('help_document, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('joomla_component, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('joomla_component, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('language, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('language, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('language_translation, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('language_translation, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('layout, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('layout, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('library, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('library, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('library_config, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('library_config, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('library_files_folders_urls, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('library_files_folders_urls, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('server, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('server, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('site_view, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('site_view, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('snippet, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('snippet, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('snippet_type, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('snippet_type, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('template, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('template, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('validation_rule, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('validation_rule, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="3.2" method="upgrade">
|
<extension type="component" version="3.2" method="upgrade">
|
||||||
<name>COM_COMPONENTBUILDER</name>
|
<name>COM_COMPONENTBUILDER</name>
|
||||||
<creationDate>29th January, 2019</creationDate>
|
<creationDate>30th January, 2019</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
||||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
||||||
|
@ -13,19 +13,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('api, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('api, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
Loading…
Reference in New Issue
Block a user