Fixing inline author training.

This commit is contained in:
Samuel Clay 2013-01-31 18:44:15 -08:00
parent 429fe9ed80
commit 0c5ff1669a
3 changed files with 14 additions and 9 deletions

View file

@ -2092,23 +2092,25 @@ background: transparent;
color: #1010A0;
}
#story_pane .NB-feed-story-author {
#story_pane .NB-feed-story-author-wrapper {
float: left;
font-size: 11px;
color: #757B6B;
text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
cursor: pointer;
margin: 0 8px 6px 0;
}
#story_pane .NB-feed-story-author .NB-middot {
#story_pane .NB-feed-story-author-wrapper .NB-middot {
color: #A0A0A0;
padding-right: 4px;
font-weight: normal;
}
#story_pane .read .NB-feed-story-author {
#story_pane .read .NB-feed-story-author-wrapper {
color: #959B8B;
text-shadow: none;
}
#story_pane .NB-feed-story-author {
cursor: pointer;
}
#story_pane .NB-feed-story-author.NB-score-1 {
color: #34912E;
}
@ -3469,7 +3471,7 @@ background: transparent;
#story_taskbar .NB-taskbar-view {
float: left;
margin-left: 12px;
margin-left: 6px;
}
#story_taskbar .NB-taskbar-nav {
@ -7582,6 +7584,7 @@ form.opml_import_form input {
clear: none;
padding: 1px 12px 0;
font-size: 12px;
width: 100px;
}
/* ================== */

View file

@ -278,7 +278,7 @@
var rightLayoutOptions = {
resizeWhileDragging: true,
center__paneSelector: ".content-pane",
spacing_open: story_anchor == 'west' ? 4 : 4,
spacing_open: story_anchor == 'west' ? 1 : 4,
resizerDragOpacity: 0.6,
enableCursorHotkey: false,
togglerLength_open: 0,

View file

@ -123,9 +123,11 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
<% } %>\
<% } %>\
<% if (story.get("story_authors")) { %>\
<div class="NB-feed-story-author <% if (authors_score) { %>NB-score-<%= authors_score %><% } %>">\
<div class="NB-feed-story-author-wrapper">\
<span class="NB-middot">&middot;</span>\
<%= story.get("story_authors") %>\
<span class="NB-feed-story-author <% if (authors_score) { %>NB-score-<%= authors_score %><% } %>">\
<%= story.get("story_authors") %>\
</span>\
</div>\
<% } %>\
<% if (story.get("story_tags", []).length) { %>\
@ -437,7 +439,7 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
save_classifier: function(e) {
var $tag = $(e.currentTarget);
var classifier_type = $tag.hasClass('NB-feed-story-author') ? 'author' : 'tag';
var classifier_type = $tag.hasClass('NB-feed-story-tag') ? 'tag' : 'author';
var value = _.string.trim($tag.text());
var score = $tag.hasClass('NB-score-1') ? -1 : $tag.hasClass('NB-score--1') ? 0 : 1;
var feed_id = this.model.get('story_feed_id');