From b7bd0c11867009d396d0bae3364a9d2da3f8c304 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Wed, 13 Apr 2011 18:22:56 -0400 Subject: [PATCH] Fixing issue around classifying a tag inline in the Feed view causes the link to not open in a new window. (DohThanks to CyberGhost for the bug. --- media/js/newsblur/reader.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/media/js/newsblur/reader.js b/media/js/newsblur/reader.js index 9e0763def..a1c7b4578 100644 --- a/media/js/newsblur/reader.js +++ b/media/js/newsblur/reader.js @@ -2613,6 +2613,10 @@ $('.NB-feed-story-tags', $story).replaceWith(this.make_story_feed_tags(story)); $('.NB-feed-story-author', $story).replaceWith(this.make_story_feed_author(story)); $('.NB-feed-story-title', $story).replaceWith(this.make_story_feed_title(story)); + + if (this.model.preference('new_window') == 1) { + $('a', $story).attr('target', '_blank'); + } }, this); _.each(this.cache.feed_view_stories, _.bind(function($story, story_id) { @@ -3126,7 +3130,7 @@ delayIn: 375 }); } - if (NEWSBLUR.Preferences.new_window == 1) { + if (this.model.preference('new_window') == 1) { $('a', $story).attr('target', '_blank'); }