From a2b02286ce81f5cb2b8b830cbb6170e652867549 Mon Sep 17 00:00:00 2001 From: hanneshal Date: Thu, 3 Jan 2013 23:55:18 +0100 Subject: [PATCH 1/2] fix for issue #6 --- app/assets/javascripts/app/controllers/chat_widget.js.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/controllers/chat_widget.js.coffee b/app/assets/javascripts/app/controllers/chat_widget.js.coffee index 3c686a314..1ba91b82d 100644 --- a/app/assets/javascripts/app/controllers/chat_widget.js.coffee +++ b/app/assets/javascripts/app/controllers/chat_widget.js.coffee @@ -105,6 +105,7 @@ class App.ChatWidget extends App.Controller show: => @isShown = true + @el.find('#chat_toogle').html('×'); if @newMessage @el.find('div.well').addClass('alert-success') @delay( => @@ -138,6 +139,8 @@ class App.ChatWidget extends App.Controller hide: => @isShown = false @el.find('#chat_content').hide(100) + @el.find('#chat_content').hide(100) + @el.find('#chat_toogle').html('♦'); focusIn: => @focus = true From d4d9adb7253395759256c6e5ec09ed53d2e9a9c5 Mon Sep 17 00:00:00 2001 From: hanneshal Date: Fri, 4 Jan 2013 00:03:33 +0100 Subject: [PATCH 2/2] removed duplicate call --- app/assets/javascripts/app/controllers/chat_widget.js.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/chat_widget.js.coffee b/app/assets/javascripts/app/controllers/chat_widget.js.coffee index 1ba91b82d..035819015 100644 --- a/app/assets/javascripts/app/controllers/chat_widget.js.coffee +++ b/app/assets/javascripts/app/controllers/chat_widget.js.coffee @@ -139,7 +139,6 @@ class App.ChatWidget extends App.Controller hide: => @isShown = false @el.find('#chat_content').hide(100) - @el.find('#chat_content').hide(100) @el.find('#chat_toogle').html('♦'); focusIn: =>