DG MS; fixed flash message visual bug

This commit is contained in:
maxwell 2010-06-23 11:11:58 -07:00
parent b24f95e462
commit fba4ce9e3b
4 changed files with 20 additions and 9 deletions

View file

@ -38,6 +38,10 @@
}; };
}); });
%body %body
- flash.each do |name, msg|
= content_tag :div, msg, :id => "flash_#{name}"
%header %header
%a#diaspora_text{:href => root_path} %a#diaspora_text{:href => root_path}
%img{:src => '/images/diaspora_white.png'} %img{:src => '/images/diaspora_white.png'}
@ -73,8 +77,6 @@
%a{ :href => friends_path, :title => "Your list of connections with other seeds."} %a{ :href => friends_path, :title => "Your list of connections with other seeds."}
%li friends %li friends
- flash.each do |name, msg|
= content_tag :div, msg, :id => "flash_#{name}"
#content #content
= yield = yield

View file

@ -15,13 +15,12 @@ $(document).ready(function(){
$(this).val("") $(this).val("")
}); });
$('#status_message_submit').click(function() {
$(".button").click(function() { $('#status_message_message').val("");
$('button[type=submit] .default').click(function() {
$('#status_message_message').delay(2000).val("");
})
}); });
$('#flash_notice, #flash_error, #flash_alert').delay(1500).slideUp(130);

View file

@ -12,8 +12,13 @@ a {
#flash_notice, #flash_notice,
#flash_error, #flash_error,
#flash_alert { #flash_alert {
z-index: 60;
position: fixed;
padding: 5px 8px; padding: 5px 8px;
margin: 10px 0; } margin: 0;
width: 400px;
top: 0px;
left: 200px; }
#flash_notice { #flash_notice {
background-color: #ccffcc; background-color: #ccffcc;

View file

@ -13,8 +13,13 @@ a
#flash_notice, #flash_notice,
#flash_error, #flash_error,
#flash_alert #flash_alert
:z-index 60
:position fixed
:padding 5px 8px :padding 5px 8px
:margin 10px 0 :margin 0
:width 400px
:top 0px
:left 200px
#flash_notice #flash_notice
:background-color #CFC :background-color #CFC