DG MS; fixed flash message visual bug
This commit is contained in:
parent
b24f95e462
commit
fba4ce9e3b
4 changed files with 20 additions and 9 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue