You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mo...@apache.org on 2014/09/11 12:03:35 UTC
svn commit: r1624244 -
/ofbiz/trunk/applications/accounting/webapp/ar/invoice/ListInvoices.ftl
Author: mor
Date: Thu Sep 11 10:03:34 2014
New Revision: 1624244
URL: http://svn.apache.org/r1624244
Log:
Use the prop() method to change/retrieve DOM properties like checked, disabled state of form elements as recommended in jQuery API.
Modified:
ofbiz/trunk/applications/accounting/webapp/ar/invoice/ListInvoices.ftl
Modified: ofbiz/trunk/applications/accounting/webapp/ar/invoice/ListInvoices.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/ar/invoice/ListInvoices.ftl?rev=1624244&r1=1624243&r2=1624244&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/ar/invoice/ListInvoices.ftl (original)
+++ ofbiz/trunk/applications/accounting/webapp/ar/invoice/ListInvoices.ftl Thu Sep 11 10:03:34 2014
@@ -41,9 +41,9 @@ under the License.
});
if(allChecked) {
- jQuery('#checkAllInvoices').attr('checked', true);
+ jQuery('#checkAllInvoices').prop('checked', true);
} else {
- jQuery('#checkAllInvoices').attr('checked', false);
+ jQuery('#checkAllInvoices').prop('checked', false);
}
// check if any checkbox is checked
@@ -64,11 +64,11 @@ under the License.
});
if(jQuery('#serviceName').val() != "") {
- jQuery('#submitButton').removeAttr('disabled');
+ jQuery('#submitButton').prop('disabled', false);
}
} else {
- jQuery('#submitButton').attr('disabled', true);
+ jQuery('#submitButton').prop('disabled', true);
jQuery('#showInvoiceRunningTotal').html("");
}
}
@@ -104,9 +104,9 @@ under the License.
});
if(anyChecked && (jQuery('#serviceName').val() != "")) {
- jQuery('#submitButton').removeAttr('disabled');
+ jQuery('#submitButton').prop('disabled', false);
} else {
- jQuery('#submitButton').attr('disabled', true);
+ jQuery('#submitButton').prop('disabled', true);
}
}
//]]>