forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
further improves collections, fixes naming issues
The class that marks collection childs for removal was renamed to more descriptive 'remove-on-collection-add' (from 'no-data') and now applies to any child element (not justt direct children). Collection items' ID is now decided by trying all numbers before one "slot" is free. This should fix all issues with items overwriting one another (inspired by Bootstrap's collection code: https://github.com/braincrafted/bootstrap-bundle/blob/v2.1.2/Resources/js/bc-bootstrap-collection.js#L42-L50).
- Loading branch information
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters