Merge pull request #4482 from harrykiselev/patch-1

Posts view: some DRY.
This commit is contained in:
Hannah Wolfe 2014-11-22 10:17:10 +00:00
commit 62eb0b96e5

View File

@ -6,12 +6,10 @@ var PostsView = MobileParentView.extend({
// Mobile parent view callbacks
showMenu: function () {
$('.js-content-list').addClass('show-menu').removeClass('show-content');
$('.js-content-preview').addClass('show-menu').removeClass('show-content');
$('.js-content-list, .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');
$('.js-content-list, .js-content-preview').addClass('show-content').removeClass('show-menu');
},
showAll: function () {
$('.js-content-list, .js-content-preview').removeClass('show-menu show-content');