lib/carte/client/views/content.cjsx in carte-server-0.0.17 vs lib/carte/client/views/content.cjsx in carte-server-0.0.18

- old
+ new

@@ -26,18 +26,17 @@ console.log 'list', @props.router.query cards = new CardCollection() cards.query = $.extend {}, config.default_query, @props.router.query cards.fetching = true cards.fetch success: ()-> cards.fetching = false - title = [] - for k, v of cards.query - if k != 'title' - title.push(String(k).capitalize() + ': ' + v) - title = title.join(', ') - title = 'search: ' + cards.query.title + ' (' + title + ')' if cards.query.title - title += ' - ' + config.title - document.title = title + #title = [] + #for k, v of cards.query + # title.push(String(k).capitalize() + ': ' + v) + #title = title.join(', ') + #title = config.title + ' (' + title + ')' + #document.title = title + document.title = config.title <List key='list' router={@props.router} cards={cards} /> when "show" console.log 'show' cards = new CardCollection() cards.fetching = true @@ -59,10 +58,10 @@ cards.add cardModel cards.fetching = false error: (card, response)=> console.log 'error!!!!!!!!!!!!!!!!!!!!!!!!', response cards.fetching = false - document.title = card.get('title') + ' - ' + config.title + document.title = config.title + '、' + card.get('title') <List key='show' cards={cards} card={card} /> else console.log 'else' <div>Loading ...</div>