Fixing race condition for showing the feed chooser modal on OPML import.

This commit is contained in:
Samuel Clay 2010-10-15 18:38:49 -04:00
parent 742869bf93
commit 5b162d0707
3 changed files with 8 additions and 7 deletions

View file

@ -394,7 +394,11 @@ a img {
}
.NB-feedlist .feed.NB-feed-exception {
background-color: #F7EDC6;
/* background-color: #F7EDC6;*/
}
.NB-feedlist .feed.NB-feed-exception .feed_title {
color: #A0A0A0;
}
#feed_list.NB-feedlist .feed.NB-feed-inactive {

View file

@ -591,7 +591,6 @@
var has_chosen_feeds = _.any(feeds, function(feed) {
return feed.active;
});
return has_chosen_feeds;
},

View file

@ -13,7 +13,7 @@ NEWSBLUR.ReaderFeedchooser.prototype = {
this.MAX_FEEDS = 40;
this.approve_list = [];
this.make_modal();
this.open_modal();
_.defer(_.bind(function() { this.open_modal(); }, this));
this.find_feeds_in_feed_list();
this.initial_load_feeds();
@ -132,7 +132,6 @@ NEWSBLUR.ReaderFeedchooser.prototype = {
resize_modal: function(previous_height) {
var height = this.$modal.height() + 24;
var parent_height = this.$modal.parent().height();
NEWSBLUR.log(['resize', $('#NB-feedchooser-feeds').height(), height, parent_height]);
if (height > parent_height && previous_height != height) {
var chooser_height = $('#NB-feedchooser-feeds').height();
var diff = Math.max(4, height - parent_height);
@ -143,7 +142,6 @@ NEWSBLUR.ReaderFeedchooser.prototype = {
open_modal: function() {
var self = this;
this.$modal.modal({
'minWidth': 750,
'maxWidth': 750,