Example #1
0
 componentDidMount: function() {
     TagStore.addChangeListener(this._onChange); 
     var post = BlogStore.getPost(this.props.params.id);
     
     if (!post) { 
         return SessionActions.redirect('/admin');
     }
     
     this.setState({
         title: post.title,
         body: post.body_raw,
         selectedTags: this.setSelectedTags(post.tags)
     });
     this.parseBody();
 },
Example #2
0
 componentDidMount: function() {
     TagStore.addChangeListener(this._onChange); 
 },