33 lines
1.4 KiB
JavaScript
33 lines
1.4 KiB
JavaScript
/*----------------------------------------------------------------------------------| www.giz.de |----/
|
|
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
|
|
@version 3.4.x
|
|
@build 14th August, 2019
|
|
@created 15th June, 2012
|
|
@package Cost Benefit Projection
|
|
@subpackage submitbutton.js
|
|
@author Llewellyn van der Merwe <http://www.vdm.io>
|
|
@owner Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
|
|
@copyright Copyright (C) 2015. All Rights Reserved
|
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
/-------------------------------------------------------------------------------------------------------/
|
|
Cost Benefit Projection Tool.
|
|
/------------------------------------------------------------------------------------------------------*/
|
|
|
|
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._('company, some values are not acceptable.','Some values are unacceptable'));
|
|
return false;
|
|
}
|
|
}
|
|
} |