mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
Merge pull request #4482 from harrykiselev/patch-1
Posts view: some DRY.
This commit is contained in:
commit
62eb0b96e5
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user