mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
composer tweaks, hiding navbar when mobile composer is open
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user