diff --git a/src/styles/components/_chat.scss b/src/styles/components/_chat.scss index c20ae2ab..78469eb7 100644 --- a/src/styles/components/_chat.scss +++ b/src/styles/components/_chat.scss @@ -26,7 +26,6 @@ width:260px; top:0px; pointer-events: none; z-index:45; -overflow:hidden; -webkit-perspective: 1000; -moz-perspective: 1000; -o-perspective: 1000; @@ -49,6 +48,7 @@ left:260px; right:0px; bottom:0px; width:260px; +overflow:hidden; -webkit-transition: left 200ms ease-in-out; -moz-transition: left 200ms ease-in-out; -ms-transition: left 200ms ease-in-out; @@ -92,6 +92,9 @@ transition: left 200ms ease-in-out; border: 1px solid white; font-size:.8em; } + .list-group-item.disabled { + color:#eee; + } } .chatpane { position:absolute; diff --git a/static/js/directives/chat.js b/static/js/directives/chat.js index 3b6878c7..58880c4a 100644 --- a/static/js/directives/chat.js +++ b/static/js/directives/chat.js @@ -317,7 +317,7 @@ define(['underscore', 'text!partials/chat.html', 'text!partials/chatroom.html'], } if (!options.noactivate) { - scope.activateRoom(subscope.id, true); + scope.activateRoom(subscope.id, true); } if (options.restore && !options.noenable) { @@ -414,24 +414,15 @@ define(['underscore', 'text!partials/chat.html', 'text!partials/chatroom.html'], scope.$watch("layout.chat", function(chat) { if (!chat) { pane.removeClass("flip"); - scope.layout.chatMaximized = false; } + scope.layout.chatMaximized = false; }); scope.$on("room", function(event, room) { - if (room == null) { - scope.hideRoom(controller.group); - } else { - var subscope; - if (!controller.visibleRooms.length) { - subscope = scope.showGroupRoom(null, {restore: true, noenable: true, noactivate: true}); - } else { - subscope = controller.get(controller.group); - } - if (room) { - var msg = translation._("You are now in room %s ...", room); - subscope.$broadcast("display", null, $(""+msg+"")); - } + var subscope = scope.showGroupRoom(null, {restore: true, noenable: true, noactivate: true}); + if (room) { + var msg = translation._("You are now in room %s ...", room); + subscope.$broadcast("display", null, $(""+msg+"")); } }); diff --git a/static/partials/chat.html b/static/partials/chat.html index 54e74d62..6cf221e4 100644 --- a/static/partials/chat.html +++ b/static/partials/chat.html @@ -1,15 +1,15 @@ -
+