2014-09-16 08:55:37 +04:00
|
|
|
import MobileParentView from 'ghost/views/mobile/parent-view';
|
2014-06-24 10:19:20 +04:00
|
|
|
|
2014-09-16 08:55:37 +04:00
|
|
|
var PostsView = MobileParentView.extend({
|
2014-06-24 10:19:20 +04:00
|
|
|
classNames: ['content-view-container'],
|
|
|
|
tagName: 'section',
|
|
|
|
|
2014-09-16 08:55:37 +04:00
|
|
|
// Mobile parent view callbacks
|
|
|
|
showMenu: function () {
|
|
|
|
$('.js-content-list').animate({right: '0', left: '0', 'margin-right': '0'}, 300);
|
|
|
|
$('.js-content-preview').animate({right: '-100%', left: '100%', 'margin-left': '15px'}, 300);
|
2014-09-10 05:22:11 +04:00
|
|
|
},
|
2014-09-16 08:55:37 +04:00
|
|
|
showContent: function () {
|
|
|
|
$('.js-content-list').animate({right: '100%', left: '-100%', 'margin-right': '15px'}, 300);
|
|
|
|
$('.js-content-preview').animate({right: '0', left: '0', 'margin-left': '0'}, 300);
|
|
|
|
},
|
|
|
|
showAll: function () {
|
|
|
|
$('.js-content-list').removeAttr('style');
|
|
|
|
$('.js-content-preview').removeAttr('style');
|
|
|
|
}
|
2014-06-24 10:19:20 +04:00
|
|
|
});
|
|
|
|
|
|
|
|
export default PostsView;
|