mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 12:16:09 +03:00
4e3de54dca
Closes #3951
22 lines
768 B
JavaScript
22 lines
768 B
JavaScript
import MobileParentView from 'ghost/views/mobile/parent-view';
|
|
|
|
var PostsView = MobileParentView.extend({
|
|
classNames: ['content-view-container'],
|
|
tagName: 'section',
|
|
|
|
// Mobile parent view callbacks
|
|
showMenu: function () {
|
|
$('.js-content-list').addClass('show-menu').removeClass('show-content');
|
|
$('.js-content-preview').addClass('show-menu').removeClass('show-content');
|
|
},
|
|
showContent: function () {
|
|
$('.js-content-list').addClass('show-content').removeClass('show-menu');
|
|
$('.js-content-preview').addClass('show-content').removeClass('show-menu');
|
|
},
|
|
showAll: function () {
|
|
$('.js-content-list, .js-content-preview').removeClass('show-menu show-content');
|
|
}
|
|
});
|
|
|
|
export default PostsView;
|