2021-03-05 03:08:47 +00:00
|
|
|
###BOM###
|
|
|
|
|
|
|
|
Joomla.submitbutton = function(task)
|
|
|
|
{
|
|
|
|
if (task == ''){
|
|
|
|
return false;
|
2024-03-09 19:47:28 +00:00
|
|
|
} else {
|
2021-03-05 03:08:47 +00:00
|
|
|
var action = task.split('.');
|
|
|
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
|
|
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
alert(Joomla.JText._('###sview###, some values are not acceptable.','Some values are unacceptable'));
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
2016-01-30 20:28:43 +00:00
|
|
|
}
|