diff --git a/app/views/shared/_public_explain.haml b/app/views/shared/_public_explain.haml index b1d2048b2..ca1a2b1d7 100644 --- a/app/views/shared/_public_explain.haml +++ b/app/views/shared/_public_explain.haml @@ -1,12 +1,18 @@ -%h3 You are about to post a public message! -%p - Public messages will be available for others outside of Diaspora to see. - %br - %br - - if @logged_in - = connected_fb_as(@access_token) - - else - = link_to "Connect to Facebook", @fb_access_url - %br - %br - = link_to "OK", '#', :class => "button", :onClick => '$.fancybox.close();' +-# Copyright (c) 2010, Diaspora Inc. This file is +-# licensed under the Affero General Public License version 3 or later. See +-# the COPYRIGHT file. + +.span-12.last + .modal_title_bar + %h4 You are about to post a public message! + %p + Public messages will be available for others outside of Diaspora to see. + %br + %br + - if @logged_in + = connected_fb_as(@access_token) + - else + = link_to "Connect to Facebook", @fb_access_url + %br + %br + = link_to "OK", '#', :class => "button", :onClick => '$.fancybox.close();' diff --git a/public/javascripts/stream.js b/public/javascripts/stream.js index 711621d2b..c7ec199d6 100644 --- a/public/javascripts/stream.js +++ b/public/javascripts/stream.js @@ -49,7 +49,8 @@ $(".comment_submit").live('click', function(evt){ $(".reshare_button").live("click", function(e){ e.preventDefault(); - $(this).parent(".reshare_pane").children(".reshare_box").show(); - $(this).addClass("active"); + var button = $(this); + button.parent(".reshare_pane").children(".reshare_box").show(); + button.addClass("active"); });