We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38475fb commit 5e2c95cCopy full SHA for 5e2c95c
1 file changed
src/jquery.formset.js
@@ -91,13 +91,8 @@
91
// and hide it, then let Django handle the deleting:
92
del.val('on');
93
row.hide();
94
- forms = $('.' + options.formCssClass).not(':hidden');
95
- totalForms.val(forms.length);
96
} else {
97
row.remove();
98
- // Update the TOTAL_FORMS count:
99
- forms = $('.' + options.formCssClass).not('.formset-custom-template');
100
101
}
102
for (var i=0, formCount=forms.length; i<formCount; i++) {
103
// Apply `extraClasses` to form rows so they're nicely alternating:
0 commit comments