Skip to content

Commit

Permalink
Merge pull request #573 from Martii/hideReminders
Browse files Browse the repository at this point in the history
Set a timeout for all reminders

Auto-merge
  • Loading branch information
Martii committed Feb 8, 2015
2 parents 27d1a20 + 913953a commit 6a97a7c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@
<!-- JS -->
<script type="text/javascript" charset="UTF-8" src="/redist/npm/jquery/dist/jquery.js"></script>
<script type="text/javascript" charset="UTF-8" src="/redist/npm/bootstrap/dist/js/bootstrap.js"></script>
{{> includes/scripts/hideReminders.html }}

11 changes: 11 additions & 0 deletions views/includes/scripts/hideReminders.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script type="text/javascript">
(function () {

setTimeout(function () {
$('.reminders .alert .close').each(function () {
this.click();
});
}, 7000);

})();
</script>

0 comments on commit 6a97a7c

Please sign in to comment.