Cost-Benefit-Projection/admin/views/country/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
2021-01-06 13:46:53 +00:00
@build 6th January, 2021
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._('country, some values are not acceptable.','Some values are unacceptable'));
return false;
}
}
}