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:
Max Goodman
2013-05-24 01:48:36 -07:00
parent 7f03388a54
commit 8f693004fd
2 changed files with 8 additions and 1 deletions

View File

@@ -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: '';

View File

@@ -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()