0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/client/app/views/mobile/content-view.js
Matt Enlow c7a9e726e2 Add mobile menu open button and close on click outside nav
- Adds gh-view-title component to implement mobile menu button for titles on any page
- Refactors the `content-cover` out into the application template
- Fix various z-index issues with content-cover and gh-alert
- Move `.settings-menu-expanded` application view state from body to `.gh-viewport`
- Unify nav menu / mobile menu actions and code
2015-06-08 22:13:34 +02:00

16 lines
468 B
JavaScript

import Ember from 'ember';
import mobileQuery from 'ghost/utils/mobile';
var MobileContentView = Ember.View.extend({
// Ensure that loading this view brings it into view on mobile
showContent: function () {
if (mobileQuery.matches) {
var parent = this.get('parentView');
if (parent.showContent) {
parent.showContent();
}
}
}.on('didInsertElement')
});
export default MobileContentView;