2021-03-05 03:08:47 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
|
|
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
2021-12-21 14:44:50 +00:00
|
|
|
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
2021-03-05 03:08:47 +00:00
|
|
|
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
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"));
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
alert(Joomla.JText._('server, some values are not acceptable.','Some values are unacceptable'));
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
2017-08-25 01:46:12 +00:00
|
|
|
}
|