Skip to content

Instantly share code, notes, and snippets.

@oelmekki
Created April 28, 2011 07:10
Show Gist options
  • Save oelmekki/945938 to your computer and use it in GitHub Desktop.
Save oelmekki/945938 to your computer and use it in GitHub Desktop.
(function(){
this.Controller = new Class({
Extends: Framework.Controller,
options: {
View: this.View,
events: [
{ el: 'commentField', type: 'focus', view_method: 'expandCommentField' },
{ el: 'commentField', type: 'blur', view_method: 'shrinkCommentField' }
]
}
});
}).apply( ShareFlock.Pages.BlogPosts.Show );
if ( typeof exports == 'undefined' ){
window.addEvent( 'domready', function(){
window.blog_posts_show = new ShareFlock.Pages.BlogPosts.Show.Controller( document.getElement( '#blog_posts_show' ) );
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment