From 6c787bb146053815ef25a400e3df347229e6ac80 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Fri, 21 Mar 2014 10:00:17 +0100 Subject: [PATCH] Auto unmax chat when layout hide. Show compress icon in list mode when maximized. --- static/js/directives/chat.js | 5 ++++- static/partials/chat.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/directives/chat.js b/static/js/directives/chat.js index 0a880e49..3b6878c7 100644 --- a/static/js/directives/chat.js +++ b/static/js/directives/chat.js @@ -412,7 +412,10 @@ define(['underscore', 'text!partials/chat.html', 'text!partials/chatroom.html'], }; scope.$watch("layout.chat", function(chat) { - pane.removeClass("flip"); + if (!chat) { + pane.removeClass("flip"); + scope.layout.chatMaximized = false; + } }); scope.$on("room", function(event, room) { diff --git a/static/partials/chat.html b/static/partials/chat.html index 14e5c3dc..54e74d62 100644 --- a/static/partials/chat.html +++ b/static/partials/chat.html @@ -2,7 +2,7 @@
-
{{_("Chat sessions")}}
+
{{_("Chat sessions")}}