Skip to content

Commit c4f52fc

Browse files
MarvinBlstrlijaviereguiluz
authored andcommitted
fix javascript typo
1 parent ea6239e commit c4f52fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ you need is this JavaScript code:
147147
jQuery('.add-another-collection-widget').click(function (e) {
148148
var list = jQuery(jQuery(this).attr('data-list'));
149149
// 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;
150+
var counter = list.data('widget-counter') || list.children().length;
151151
152152
// grab the prototype template
153153
var newWidget = list.attr('data-prototype');

0 commit comments

Comments
 (0)