We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea6239e commit c4f52fcCopy full SHA for c4f52fc
reference/forms/types/collection.rst
@@ -147,7 +147,7 @@ you need is this JavaScript code:
147
jQuery('.add-another-collection-widget').click(function (e) {
148
var list = jQuery(jQuery(this).attr('data-list'));
149
// Try to find the counter of the list or use the length of the list
150
- var counter = list.data('widget-counter') | list.children().length;
+ var counter = list.data('widget-counter') || list.children().length;
151
152
// grab the prototype template
153
var newWidget = list.attr('data-prototype');
0 commit comments