Fixed delegate bug for dynamic-totals demo. Fixes #51

This commit is contained in:
Max Lynch
2012-04-17 12:19:38 -05:00
committed by Jörn Zaefferer
parent be37b6aba8
commit 02b10a6568

View File

@@ -44,7 +44,7 @@ $().ready(function() {
$("#add").click(addRow);
// check keyup on quantity inputs to update totals field
$("#orderform").delegate("keyup", "input.quantity", function(event) {
$("#orderform").validateDelegate("input.quantity", "keyup", function(event) {
var totals = 0;
$("#orderitems input.quantity").each(function() {
totals += +this.value;