Skip to content

Commit

Permalink
Merge pull request #224 from sandello-alkr/patch-4
Browse files Browse the repository at this point in the history
Right counting <li> in nested collections
  • Loading branch information
Florian Eckerstorfer committed Apr 29, 2014
2 parents 323f009 + 5be9697 commit 4bb2cb6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Resources/js/bc-bootstrap-collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

var collection = $('#'+selector),
list = collection.find('> ul'),
count = list.find('li').size()
count = list.find('> li').size()
;

var newWidget = collection.attr('data-prototype');
Expand Down Expand Up @@ -120,4 +120,5 @@
$(document).on('click.addfield.data-api', addField, CollectionAdd.prototype.addField);
$(document).on('click.removefield.data-api', removeField, CollectionRemove.prototype.removeField);

}(window.jQuery);
}(window.jQuery);

0 comments on commit 4bb2cb6

Please sign in to comment.