mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
Merge pull request #4482 from harrykiselev/patch-1
Posts view: some DRY.
This commit is contained in:
commit
62eb0b96e5
1 changed files with 2 additions and 4 deletions
|
@ -6,12 +6,10 @@ var PostsView = MobileParentView.extend({
|
||||||
|
|
||||||
// Mobile parent view callbacks
|
// Mobile parent view callbacks
|
||||||
showMenu: function () {
|
showMenu: function () {
|
||||||
$('.js-content-list').addClass('show-menu').removeClass('show-content');
|
$('.js-content-list, .js-content-preview').addClass('show-menu').removeClass('show-content');
|
||||||
$('.js-content-preview').addClass('show-menu').removeClass('show-content');
|
|
||||||
},
|
},
|
||||||
showContent: function () {
|
showContent: function () {
|
||||||
$('.js-content-list').addClass('show-content').removeClass('show-menu');
|
$('.js-content-list, .js-content-preview').addClass('show-content').removeClass('show-menu');
|
||||||
$('.js-content-preview').addClass('show-content').removeClass('show-menu');
|
|
||||||
},
|
},
|
||||||
showAll: function () {
|
showAll: function () {
|
||||||
$('.js-content-list, .js-content-preview').removeClass('show-menu show-content');
|
$('.js-content-list, .js-content-preview').removeClass('show-menu show-content');
|
||||||
|
|
Loading…
Reference in a new issue