From 6f282e77ffcebd0f2eedcad3bf8d16dff61cec3d Mon Sep 17 00:00:00 2001 From: danielvincent Date: Fri, 15 Oct 2010 14:22:28 -0700 Subject: [PATCH 1/2] make public checkbox --- app/views/shared/_public_explain.haml | 11 +++++++---- app/views/shared/_publisher.haml | 10 +++------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/views/shared/_public_explain.haml b/app/views/shared/_public_explain.haml index 568f4d884..775051405 100644 --- a/app/views/shared/_public_explain.haml +++ b/app/views/shared/_public_explain.haml @@ -1,9 +1,12 @@ -%h1 you are about to post a public message! -%p - this message is going to be posted to your public feed, - and to any services you may have connected to Diaspora. +%h3 You are about to post a public message! +%p + Public messages will be available for others outside of Diaspora to see. - 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/app/views/shared/_publisher.haml b/app/views/shared/_publisher.haml index c1886b5fb..a6f1bd92c 100644 --- a/app/views/shared/_publisher.haml +++ b/app/views/shared/_publisher.haml @@ -6,11 +6,7 @@ $("div.public_toggle input").live("click", function(evt){ if("#{@logged_in}" == "false" && $(this).attr('checked') == true){ - if(confirm("You are currently not connected to facebook. Sign in to facebook?")){ - window.location = "#{@fb_access_url}"; - } else { - $(this).attr('checked', false); - } + $(".question_mark").click(); }; }); @@ -34,8 +30,8 @@ - if @aspect == :all .public_toggle = f.check_box( :public, :value => false ) - share on facebook - = link_to 'public info', "#question_mark_pane", :class => 'question_mark' + make public + = link_to '(?)', "#question_mark_pane", :class => 'question_mark' .yo{:style => "display:none;"} #question_mark_pane = render 'shared/public_explain' From 47be7b1f0ae4e052d51eaa52c45a64d1bd6927a1 Mon Sep 17 00:00:00 2001 From: danielvincent Date: Fri, 15 Oct 2010 15:29:57 -0700 Subject: [PATCH 2/2] correct html5 search box --- app/views/layouts/application.html.haml | 3 +-- public/stylesheets/sass/application.sass | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index b4fb5fbac..7aee9849e 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -47,8 +47,7 @@ %ul %li#global_search = form_tag(people_path, :method => 'get') do - %label{:for => 'q'} Search - = text_field_tag 'q' + = text_field_tag 'q', nil, :placeholder => "Search", :type => 'search', :results => 5 %li= link_to current_user.real_name, current_user.person %li= link_to "settings", edit_user_path(current_user) diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index feb23b897..6420ae5bd 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -542,6 +542,7 @@ li.message .from .destroy_link input[type='text'], input[type='password'], +input[type="search"], textarea :font :family 'Arial', 'Helvetica', sans-serif @@ -1019,3 +1020,9 @@ ul#settings_nav :size 80px :display inline-block +input[type="search"] + :-webkit-appearance textfield + +header + input[type="search"] + :width 200px