composer tweaks, hiding navbar when mobile composer is open

v1.18.x
Julian Lam 11 years ago
parent 327d1c1bec
commit aee8b87385

@ -2,5 +2,6 @@
"no_tag_topics": "There are no topics with this tag.",
"tags": "Tags",
"enter_tags_here": "Enter tags here. Press enter after each tag.",
"enter_tags_here_short": "Enter tags...",
"no_tags": "There are no tags yet."
}

@ -375,6 +375,13 @@ var socket,
});
};
app.toggleNavbar = function(state) {
var navbarEl = $('.navbar');
if (navbarEl) {
navbarEl.toggleClass('hidden', !!!state);
}
};
function exposeConfigToTemplates() {
$(document).ready(function() {
templates.setGlobal('relative_path', RELATIVE_PATH);

@ -460,6 +460,7 @@ define('composer', dependencies, function(taskbar, controls, uploads, formatting
$('body').css({'margin-bottom': 0});
$('.action-bar button').removeAttr('disabled');
app.toggleNavbar(true);
socket.emit('modules.composer.unregister', post_uuid);
}
}

@ -22,7 +22,8 @@ define('composer/resize', function() {
}
if (env === 'sm' || env === 'xs') {
postContainer.css('height', $(window).height() - $('#header-menu').height());
app.toggleNavbar(false);
postContainer.css('height', $(window).height());
}
if (config.hasImageUploadPlugin) {

Loading…
Cancel
Save