Cost-Benefit-Projection/admin/views/company/submitbutton.js

33 lines
1.4 KiB
JavaScript
Raw Normal View History

2015-12-01 05:06:34 +00:00
/*----------------------------------------------------------------------------------| www.giz.de |----/
Deutsche Gesellschaft für International Zusammenarbeit (GIZ) Gmb
/-------------------------------------------------------------------------------------------------------/
2019-04-04 11:51:37 +00:00
@version 3.4.x
2020-05-30 22:55:13 +00:00
@build 30th May, 2020
2019-04-04 11:51:37 +00:00
@created 15th June, 2012
2015-12-01 05:06:34 +00:00
@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('.');
2019-04-04 11:51:37 +00:00
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
Joomla.submitform(task, document.getElementById("adminForm"));
2015-12-01 05:06:34 +00:00
return true;
} else {
alert(Joomla.JText._('company, some values are not acceptable.','Some values are unacceptable'));
return false;
}
}
}