fix: #7216, hide taskbar on chat modal invocation on mobile

v1.18.x
Julian Lam 6 years ago
parent 27e82aeaab
commit a70db885cf

@ -297,6 +297,7 @@ define('chat', [
module.enableMobileBehaviour = function (modalEl) {
app.toggleNavbar(false);
taskbar.toggleVisibility(false);
modalEl.attr('data-mobile', '1');
var messagesEl = modalEl.find('.modal-body');
messagesEl.css('height', module.calculateChatListHeight(modalEl));
@ -308,6 +309,7 @@ define('chat', [
module.disableMobileBehaviour = function () {
app.toggleNavbar(true);
taskbar.toggleVisibility(true);
};
module.calculateChatListHeight = function (modalEl) {

@ -182,5 +182,9 @@ define('taskbar', ['benchpress', 'translator'], function (Benchpress, translator
taskbar.tasklist.find('[data-module="' + module + '"][data-uuid="' + uuid + '"] [component="taskbar/title"]').text(newTitle);
};
taskbar.toggleVisibility = function (visible) {
taskbar.taskbar.toggleClass('hidden', !visible);
};
return taskbar;
});

Loading…
Cancel
Save