Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Auto refresh of inbox on re-focus
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Groeneveld committed Nov 13, 2015
1 parent b9f5795 commit e2f4cf0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## Brimir unreleased (to be announced)
### Added
- Automatic refresh of inbox when browser tab receives focus again.

### Changed

Expand Down
8 changes: 8 additions & 0 deletions app/views/tickets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,11 @@

<% end %>
</section>

<script>
window.onblur = function() {
window.onfocus = function() {
location.reload(true);
};
};
</script>

0 comments on commit e2f4cf0

Please sign in to comment.