2018-05-18 06:28:27 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
|
|
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
|
|
|
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
2021-01-03 16:49:35 +00:00
|
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
2018-05-18 06:28:27 +00:00
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
2017-11-11 22:18:13 +00:00
|
|
|
|
2017-11-26 00:29:08 +00:00
|
|
|
Joomla.submitbutton = function(task)
|
2017-11-11 22:18:13 +00:00
|
|
|
{
|
2017-11-26 00:29:08 +00:00
|
|
|
if (task == ''){
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
var action = task.split('.');
|
2019-01-30 14:00:21 +00:00
|
|
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
|
|
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
2017-11-26 00:29:08 +00:00
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
alert(Joomla.JText._('library_config, some values are not acceptable.','Some values are unacceptable'));
|
|
|
|
return false;
|
2017-11-11 22:18:13 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-26 00:29:08 +00:00
|
|
|
}
|