Skip to content

Commit

Permalink
search works, it's so nice
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzjer committed Nov 14, 2011
1 parent 00d52a1 commit be44466
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/megazine.sjs
Expand Up @@ -16,7 +16,7 @@ var App = exports.App = function App(route) {
this.feedStore = new Cache("rss_feeds"); this.feedStore = new Cache("rss_feeds");
route.when('/locker', {controller: NewsSources.Locker, template: "templates/basic-news.html"}); 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/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)); spawn(this.run(route));
}; };
App.$inject=['$route']; App.$inject=['$route'];
Expand Down
2 changes: 1 addition & 1 deletion app/news-sources.sjs
Expand Up @@ -356,7 +356,7 @@ RSS.prototype = common.mergeSettings(newsFunctions, {
loadNewItems: function() { loadNewItems: function() {
var date = new Date(); var date = new Date();
this.about = "My Links"; 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}); links.forEach(function(link){link.id = link.link});
return links; return links;
}, },
Expand Down
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -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> <a class="tab twitter active_{{news.type == 'locker'}}" href="#/locker">all</a>
<span ng:repeat="feed in feeds"> <span ng:repeat="feed in feeds">
<!-- TODO: fix double-encoding requirement --> <!-- TODO: fix double-encoding requirement -->
<span class="tab rss active_{{route.current.params.feed == (feed.url | escapeURI)}}"> <span class="tab rss active_{{route.current.params.feed == (feed.key | escapeURI)}}">
<a ng:href="#/rss/{{feed.url | escapeURI | escapeURI}}">{{feed.name}}<a ng:click="removeFeed(feed)" class="delete">x</a></a> <a ng:href="#/rss/{{feed.key | escapeURI | escapeURI}}">{{feed.name}}<a ng:click="removeFeed(feed)" class="delete">x</a></a>
</span> </span>
</span> </span>
<a class="tab rss active_{{news.type == 'add-rss'}}" href="#/rss/new"><strong>+</strong></a> <a class="tab rss active_{{news.type == 'add-rss'}}" href="#/rss/new"><strong>+</strong></a>
Expand Down

0 comments on commit be44466

Please sign in to comment.