Skip to content

Commit

Permalink
Fix styling and switch to the search page automatically when entering…
Browse files Browse the repository at this point in the history
… search query
  • Loading branch information
Juan Pinzon authored and Charles Jolley committed Apr 9, 2010
1 parent f25b199 commit 38a7cdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/twitter/controllers/tweet.js
Expand Up @@ -29,6 +29,7 @@ Twitter.tweetController = SC.ArrayController.create(

invokeQuery: function(){
var q=this.get('query');
Twitter.mainPage.mainPane.tabView.set('nowShowing', "Twitter.searchPage.mainView");
if(q.length===0 || q.length%2 !== 0) return;
var twitterQuery = SC.Query.remote(Twitter.Tweet, {query: q});
var tweets = Twitter.store.find(twitterQuery);
Expand Down
2 changes: 1 addition & 1 deletion apps/twitter/resources/search_page.js
Expand Up @@ -20,7 +20,7 @@ Twitter.searchPage = SC.Page.create({
backgroundColor: 'white',

contentView: SC.ListView.design({
classNames: ['twetts'],
classNames: ['tweets'],
hasContentIcon: YES,
rowHeight: 60,
contentBinding: 'Twitter.tweetController.arrangedObjects',
Expand Down
4 changes: 2 additions & 2 deletions apps/twitter/resources/tweets.css
@@ -1,10 +1,10 @@
.sc-theme .twetts .sc-list-item-view .icon {
.sc-theme .tweets .sc-list-item-view .icon {
margin-top:0px;
top:5px;
width: 48px;
height:48px;
}

.sc-theme .twetts .sc-list-item-view label {
.sc-theme .tweets .sc-list-item-view label {
left: 58px;
}

0 comments on commit 38a7cdc

Please sign in to comment.