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

This commit is contained in:
Julian Lam
2019-01-10 16:46:08 -05:00
parent 27e82aeaab
commit a70db885cf
2 changed files with 6 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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;
});