Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

search works, it's so nice

  • Loading branch information...
commit be444669da42fb5b1da35f7b5f5d8687eafb3347 1 parent 00d52a1
@quartzjer authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  app/megazine.sjs
  2. +1 −1  app/news-sources.sjs
  3. +2 −2 index.html
View
2  app/megazine.sjs
@@ -16,7 +16,7 @@ var App = exports.App = function App(route) {
this.feedStore = new Cache("rss_feeds");
route.when('/locker', {controller: NewsSources.Locker, template: "templates/basic-news.html"});
route.when('/rss/new', {controller: RssAdder(this), template: "templates/add-rss.html"});
- route.when('/rss/:feed', {controller: NewsSources.Locker, template: "templates/basic-news.html"});
+ route.when('/rss/:feed', {controller: NewsSources.RSS, template: "templates/basic-news.html"});
spawn(this.run(route));
};
App.$inject=['$route'];
View
2  app/news-sources.sjs
@@ -356,7 +356,7 @@ RSS.prototype = common.mergeSettings(newsFunctions, {
loadNewItems: function() {
var date = new Date();
this.about = "My Links";
- var links = http.json('/Me/links/search', {query: {q:this.url}});
+ var links = http.json('/Me/links/search', {query: {q:this.url, limit:20}});
links.forEach(function(link){link.id = link.link});
return links;
},
View
4 index.html
@@ -86,8 +86,8 @@ <h3 id="unprocessedItems" style="display:none;" ng:show="news.pool.size"><div cl
<a class="tab twitter active_{{news.type == 'locker'}}" href="#/locker">all</a>
<span ng:repeat="feed in feeds">
<!-- TODO: fix double-encoding requirement -->
- <span class="tab rss active_{{route.current.params.feed == (feed.url | escapeURI)}}">
- <a ng:href="#/rss/{{feed.url | escapeURI | escapeURI}}">{{feed.name}}<a ng:click="removeFeed(feed)" class="delete">x</a></a>
+ <span class="tab rss active_{{route.current.params.feed == (feed.key | escapeURI)}}">
+ <a ng:href="#/rss/{{feed.key | escapeURI | escapeURI}}">{{feed.name}}<a ng:click="removeFeed(feed)" class="delete">x</a></a>
</span>
</span>
<a class="tab rss active_{{news.type == 'add-rss'}}" href="#/rss/new"><strong>+</strong></a>
Please sign in to comment.
Something went wrong with that request. Please try again.