diff --git a/src/Bundle/ChillMainBundle/Resources/public/lib/collection/index.js b/src/Bundle/ChillMainBundle/Resources/public/lib/collection/index.js index b763c4ddb..0120846b9 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/lib/collection/index.js +++ b/src/Bundle/ChillMainBundle/Resources/public/lib/collection/index.js @@ -50,7 +50,7 @@ var handleAdd = function(button) { empty_explain = collection.querySelector('li[data-collection-empty-explain]'), entry = document.createElement('li'), event = new CustomEvent('collection-add-entry', { detail: { collection: collection, entry: entry } }), - counter = collection.childNodes.length, + counter = collection.childNodes.length + parseInt(Math.random() * 1000000) content ; content = prototype.replace(new RegExp('__name__', 'g'), counter);