From 47aab723bd58c572930ea554833e68047b1e76bb Mon Sep 17 00:00:00 2001
From: danielgrippi <danielgrippi@gmail.com>
Date: Tue, 5 Jul 2011 12:17:02 -0700
Subject: [PATCH] fix message focus bug

---
 app/views/conversations/new.haml | 6 ++++--
 config/locales/diaspora/en.yml   | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/app/views/conversations/new.haml b/app/views/conversations/new.haml
index 85262774b7..4589d3e7d5 100644
--- a/app/views/conversations/new.haml
+++ b/app/views/conversations/new.haml
@@ -47,6 +47,8 @@
       .span-10.prepend-2.last
         = text_area_tag "conversation[text]", '', :rows => 5
 
+      .clearfix
+
       .bottom_submit_section
-        = submit_tag t('cancel'), :class => 'button', :type => :reset, :rel => "close"
-        = conversation.submit t('.send'), :disable_with => t('shared.publisher.posting'), :class => 'button'
+        = submit_tag t('cancel'), :class => 'button', :type => :reset, :rel => "close", :confirm => t('.abandon_changes')
+        = conversation.submit t('.send'), :disable_with => t('shared.publisher.posting'), :class => 'button creation'
diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml
index d3ec11df47..dd352603bc 100644
--- a/config/locales/diaspora/en.yml
+++ b/config/locales/diaspora/en.yml
@@ -229,6 +229,7 @@ en:
       to: "to"
       subject: "subject"
       send: "Send"
+      abandon_changes: "Abandon changes?"
     helper:
       new_messages: 
         zero: "No new messages"
-- 
GitLab