From 5016db85a60638e16e4d05c81baa0e3181924ff2 Mon Sep 17 00:00:00 2001 From: "Harry V. Kiselev" Date: Thu, 20 Nov 2014 00:00:10 +0400 Subject: [PATCH] Posts view: some DRY. --- core/client/views/posts.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/client/views/posts.js b/core/client/views/posts.js index 21960febc5..2bcbb6cee7 100644 --- a/core/client/views/posts.js +++ b/core/client/views/posts.js @@ -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');