mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Don't animate the listing chooser until the page has loaded.
This should fix the collapse animation playing upon first load.
This commit is contained in:
@@ -7074,7 +7074,10 @@ body.with-listing-chooser.listing-chooser-collapsed {
|
||||
padding-right: @listing-chooser-grippy-width;
|
||||
background: #f7f7f7;
|
||||
overflow: hidden;
|
||||
.transition(width, .25s);
|
||||
|
||||
&.initialized {
|
||||
.transition(width, .25s);
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
|
||||
@@ -492,6 +492,10 @@ r.multi.ListingChooser = Backbone.View.extend({
|
||||
'click .grippy': 'toggleCollapsed'
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
this.$el.addClass('initialized')
|
||||
},
|
||||
|
||||
createClick: function(ev) {
|
||||
if (!this.$('.create').is('.expanded')) {
|
||||
ev.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user