Allow items in configform lists to fade in/out when added/removed.
Review Request #6151 — Created July 27, 2014 and submitted
This adds an 'animateItems' option that, if set, will fade in newly
added items and fade out removed items. This can be controlled by the
'animate' option when adding/removing items, and will default to true if
'animateItems' is turned on.
Tested with an in-progress change and animation turned on. Saw the items
fade in when newly added and fade out when removed.Tested that existing configform lists weren't animated.
-
-
djblets/static/djblets/js/configForms/views/listView.js (Diff revision 1) We don't want to compare against true instead?
-
djblets/static/djblets/js/configForms/views/listView.js (Diff revision 1) The default durations in query are a little long for my taste.
-
djblets/static/djblets/js/configForms/views/listView.js (Diff revision 1) There's an extra blank line here.
-
-
djblets/static/djblets/js/configForms/views/listView.js (Diff revision 1) The default durations in query are a little long for my taste.
Change Summary:
- Attempted to clarify the animation code a bit.
- Removed a blank line.
Branch: |
|
||||
---|---|---|---|---|---|
Commit: |
|
||||
Diff: |
Revision 2 (+42 -6) |