Component-Builder-fork/admin/compiler/joomla_3/submitbutton.js

17 lines
491 B
JavaScript
Raw Normal View History

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