mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Moving NEWSBLUR.Collections.DiscoverStories to its proper place.
This commit is contained in:
parent
78c4807c33
commit
beb33f2577
4 changed files with 156 additions and 157 deletions
|
@ -4544,7 +4544,7 @@ body {
|
|||
.NB-story-content-container {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
min-height: 192px;
|
||||
min-height: 258px;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
NEWSBLUR.Collections.DiscoverStories = NEWSBLUR.Collections.Stories.extend({
|
||||
|
||||
url: function () {
|
||||
var url = '/rss_feeds/discover/stories/' + this.similar_to_story_hash + '/';
|
||||
if (this.feed_ids && this.feed_ids.length > 0) {
|
||||
url += '?feed_id=' + this.feed_ids.join("&feed_id=");
|
||||
}
|
||||
|
||||
return url;
|
||||
},
|
||||
|
||||
parse: function (response) {
|
||||
return response.discover_stories;
|
||||
}
|
||||
|
||||
});
|
|
@ -719,20 +719,3 @@ NEWSBLUR.Collections.Stories = Backbone.Collection.extend({
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
NEWSBLUR.Collections.DiscoverStories = NEWSBLUR.Collections.Stories.extend({
|
||||
|
||||
url: function () {
|
||||
var url = '/rss_feeds/discover/stories/' + this.similar_to_story_hash + '/';
|
||||
if (this.feed_ids && this.feed_ids.length > 0) {
|
||||
url += '?feed_id=' + this.feed_ids.join("&feed_id=");
|
||||
}
|
||||
|
||||
return url;
|
||||
},
|
||||
|
||||
parse: function (response) {
|
||||
return response.discover_stories;
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -24,7 +24,6 @@ embed_assets: datauri
|
|||
# for testing.
|
||||
compress_assets: on
|
||||
|
||||
|
||||
javascripts:
|
||||
common:
|
||||
- js/vendor/jquery-3.6.0.min.js
|
||||
|
@ -70,6 +69,7 @@ javascripts:
|
|||
- js/newsblur/reader/reader.js
|
||||
- js/newsblur/reader/reader_popover.js
|
||||
- js/newsblur/common/*.js
|
||||
- js/newsblur/models/stories.js
|
||||
- js/newsblur/models/*.js
|
||||
- js/newsblur/views/*.js
|
||||
- js/newsblur/reader/*.js
|
||||
|
|
Loading…
Add table
Reference in a new issue