2014-09-15 23:55:37 -05:00
|
|
|
import MobileParentView from 'ghost/views/mobile/parent-view';
|
2014-06-24 01:19:20 -05:00
|
|
|
|
2014-09-15 23:55:37 -05:00
|
|
|
var SettingsView = MobileParentView.extend({
|
|
|
|
// MobileParentView callbacks
|
|
|
|
showMenu: function () {
|
|
|
|
$('.js-settings-header-inner').css('display', 'none');
|
|
|
|
$('.js-settings-menu').css({right: '0', left: '0', 'margin-right': '0'});
|
|
|
|
$('.js-settings-content').css({right: '-100%', left: '100%', 'margin-left': '15'});
|
2014-07-13 12:03:48 -05:00
|
|
|
},
|
2014-09-15 23:55:37 -05:00
|
|
|
showContent: function () {
|
|
|
|
$('.js-settings-menu').css({right: '100%', left: '-110%', 'margin-right': '15px'});
|
|
|
|
$('.js-settings-content').css({right: '0', left: '0', 'margin-left': '0'});
|
|
|
|
$('.js-settings-header-inner').css('display', 'block');
|
2014-07-13 12:03:48 -05:00
|
|
|
},
|
|
|
|
showAll: function () {
|
2014-09-15 23:55:37 -05:00
|
|
|
$('.js-settings-menu, .js-settings-content').removeAttr('style');
|
|
|
|
}
|
2014-06-24 01:19:20 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
export default SettingsView;
|