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
|
||||
|
||||
- flash.each do |name, msg|
|
||||
= content_tag :div, msg, :id => "flash_#{name}"
|
||||
|
||||
%header
|
||||
%a#diaspora_text{:href => root_path}
|
||||
%img{:src => '/images/diaspora_white.png'}
|
||||
|
|
@ -73,8 +77,6 @@
|
|||
%a{ :href => friends_path, :title => "Your list of connections with other seeds."}
|
||||
%li friends
|
||||
|
||||
- flash.each do |name, msg|
|
||||
= content_tag :div, msg, :id => "flash_#{name}"
|
||||
|
||||
#content
|
||||
= yield
|
||||
|
|
|
|||
|
|
@ -15,13 +15,12 @@ $(document).ready(function(){
|
|||
$(this).val("")
|
||||
});
|
||||
|
||||
|
||||
$(".button").click(function() {
|
||||
$('button[type=submit] .default').click(function() {
|
||||
$('#status_message_message').delay(2000).val("");
|
||||
})
|
||||
$('#status_message_submit').click(function() {
|
||||
$('#status_message_message').val("");
|
||||
});
|
||||
|
||||
$('#flash_notice, #flash_error, #flash_alert').delay(1500).slideUp(130);
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,13 @@ a {
|
|||
#flash_notice,
|
||||
#flash_error,
|
||||
#flash_alert {
|
||||
z-index: 60;
|
||||
position: fixed;
|
||||
padding: 5px 8px;
|
||||
margin: 10px 0; }
|
||||
margin: 0;
|
||||
width: 400px;
|
||||
top: 0px;
|
||||
left: 200px; }
|
||||
|
||||
#flash_notice {
|
||||
background-color: #ccffcc;
|
||||
|
|
|
|||
|
|
@ -13,8 +13,13 @@ a
|
|||
#flash_notice,
|
||||
#flash_error,
|
||||
#flash_alert
|
||||
:z-index 60
|
||||
:position fixed
|
||||
:padding 5px 8px
|
||||
:margin 10px 0
|
||||
:margin 0
|
||||
:width 400px
|
||||
:top 0px
|
||||
:left 200px
|
||||
|
||||
#flash_notice
|
||||
:background-color #CFC
|
||||
|
|
|
|||
Loading…
Reference in a new issue