Skip to content

Commit

Permalink
Auto hide - set timeout to 5 min; Remove the .show class names after …
Browse files Browse the repository at this point in the history
…the hiding action is complete
  • Loading branch information
Nadja Schnabel committed Sep 20, 2018
1 parent 691b3c3 commit 414e93b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/alert.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
@if (session('alert.title'))
setTimeout(function() {
$(".alert.in.show").fadeTo(2000, 0).slideUp(500, function(){
$(".alert").slideUp(500);
$(this).removeClass('in').removeClass('show').addClass('hide');
});
}, 2000);
}, 5000);
@endif
})
</script>
Expand Down

0 comments on commit 414e93b

Please sign in to comment.