Ghost/ghost/admin/views/post-item-view.js
Erik Bryn 152ab286b5 Specify itemView on the each helper rather than nesting a view helper.
This avoids the creation of two views per row, which will make a big difference for large blogs.
2014-03-09 14:20:15 -07:00

10 lines
297 B
JavaScript

import itemView from 'ghost/views/item-view';
var PostItemView = itemView.extend({
openEditor: function () {
this.get('controller').send('openEditor', this.get('context')); // send action to handle transition to editor route
}.on("doubleClick")
});
export default PostItemView;