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 de03ec3 commit 07385cbCopy full SHA for 07385cb
Resources/js/bc-bootstrap-collection.js
@@ -34,7 +34,7 @@
34
35
var collection = $('#'+selector),
36
list = collection.find('> ul'),
37
- count = list.find('> li').size()
+ count = list.find('> li').length
38
;
39
40
var newWidget = collection.attr('data-prototype');
@@ -43,7 +43,7 @@
43
// If it does, increase the count by one and try again
44
var newName = newWidget.match(/id="(.*?)"/);
45
var re = new RegExp(prototypeName, "g");
46
- while ($('#' + newName[1].replace(re, count)).size() > 0) {
+ while ($('#' + newName[1].replace(re, count)).length > 0) {
47
count++;
48
}
49
newWidget = newWidget.replace(re, count);
0 commit comments