Skip to content

Instantly share code, notes, and snippets.

@oelmekki
Created April 28, 2011 07:11
Show Gist options
  • Save oelmekki/945939 to your computer and use it in GitHub Desktop.
Save oelmekki/945939 to your computer and use it in GitHub Desktop.
(function(){
this.View = new Class({
Extends: Framework.View,
options: {
selectors: {
'commentField': '#comment_content'
}
},
run: function(){
this.comment_field_fx = new Fx.Morph( this.get( 'commentField' ), { link: 'cancel' });
},
expandCommentField: function(){
this.comment_field_fx.start({ height: 200 });
},
shrinkCommentField: function(){
this.comment_field_fx.start({ height: 50 });
}
});
}).apply( ShareFlock.Pages.BlogPosts.Show );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment