Author: apatel
Date: Wed Dec 9 08:15:12 2009
New Revision: 888727
URL:
http://svn.apache.org/viewvc?rev=888727&view=revLog:
Check if there is any row with invalid data before enabling submit button.
Modified:
ofbiz/trunk/applications/accounting/webapp/accounting/images/costCenters.js
Modified: ofbiz/trunk/applications/accounting/webapp/accounting/images/costCenters.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/images/costCenters.js?rev=888727&r1=888726&r2=888727&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/images/costCenters.js (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/images/costCenters.js Wed Dec 9 08:15:12 2009
@@ -39,7 +39,7 @@
if ( $(tableRowId).hasClassName('alternate-rowWarn')){
$(tableRowId).removeClassName('alternate-rowWarn');
}
- if ($('costCentersSubmit').hasClassName('buttontextdisabled')) {
+ if ($$('tr.alternate-rowWarn').size() == 0) {
$('costCentersSubmit').removeClassName('buttontextdisabled')
$('costCentersSubmit').disabled = false;
}