Fixing oddities on end story line when no stories are shown.

This commit is contained in:
Samuel Clay 2014-02-20 09:54:48 -08:00
parent 9466647c46
commit 88443d45d7
2 changed files with 7 additions and 1 deletions

View file

@ -1793,7 +1793,7 @@ body {
min-height: 36px;
border-top: 1px solid #C2C5BE;
border-bottom: 1px solid #E1E6E0;
padding-left: 14px; /* offset for scrollbar on right */
/* padding-left: 14px; /* offset for scrollbar on right */
background-color: #F8F8F8;
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F8F8F8), to(#F1F6F0));
background: -moz-linear-gradient(center top, #F8F8F8 0%, #F1F6F0 100%);
@ -1813,6 +1813,9 @@ body {
height: 36px;
}
.NB-empty .NB-end-line {
display: none;
}
/* ============================= */
/* = Story Detial in List View = */
/* ============================= */

View file

@ -106,6 +106,7 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
clear_explainer: function() {
var $container = this.$el.closest(".NB-feed-stories-container");
$(".NB-story-list-empty", $container).remove();
this.$el.removeClass("NB-empty");
},
show_correct_explainer: function() {
@ -160,6 +161,8 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
var $container = this.$el.closest(".NB-feed-stories-container");
$container.append($empty);
this.$el.addClass("NB-empty");
},
// ===========