2014-09-15 23:55:37 -05:00
|
|
|
import MobileParentView from 'ghost/views/mobile/parent-view';
|
2014-06-24 01:19:20 -05:00
|
|
|
|
2014-09-15 23:55:37 -05:00
|
|
|
var PostsView = MobileParentView.extend({
|
2014-06-24 01:19:20 -05:00
|
|
|
classNames: ['content-view-container'],
|
|
|
|
tagName: 'section',
|
|
|
|
|
2014-09-15 23:55:37 -05:00
|
|
|
// Mobile parent view callbacks
|
|
|
|
showMenu: function () {
|
2014-11-19 15:00:10 -05:00
|
|
|
$('.js-content-list, .js-content-preview').addClass('show-menu').removeClass('show-content');
|
2014-09-09 20:22:11 -05:00
|
|
|
},
|
2014-09-15 23:55:37 -05:00
|
|
|
showContent: function () {
|
2014-11-19 15:00:10 -05:00
|
|
|
$('.js-content-list, .js-content-preview').addClass('show-content').removeClass('show-menu');
|
2014-09-15 23:55:37 -05:00
|
|
|
},
|
|
|
|
showAll: function () {
|
2014-09-26 17:04:40 -05:00
|
|
|
$('.js-content-list, .js-content-preview').removeClass('show-menu show-content');
|
2014-09-15 23:55:37 -05:00
|
|
|
}
|
2014-06-24 01:19:20 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
export default PostsView;
|