You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ap...@apache.org on 2009/12/09 09:15:13 UTC

svn commit: r888727 - /ofbiz/trunk/applications/accounting/webapp/accounting/images/costCenters.js

Author: apatel
Date: Wed Dec  9 08:15:12 2009
New Revision: 888727

URL: http://svn.apache.org/viewvc?rev=888727&view=rev
Log:
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;
                 }