Skip to content

Commit

Permalink
[Core] Hidding flash message div after 3 seconds of being shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos León committed Jul 2, 2011
1 parent 7d9bc22 commit 86f8208
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@
// the compiled file.
//
//= require_tree .
$( document ).ready( function(){
hide_flash_message();
} );

function hide_flash_message(){
var flash = $( '#flash' );
if ( undefined != flash ){
flash.delay( 3000 ).slideUp( 'slow' );
}
}

0 comments on commit 86f8208

Please sign in to comment.