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