Closed jamgregory closed 7 years ago
Would be possible, but more chance of bugs where some counter somewhere wouldn't update (for example). What kind of issues are you experiencing? Maybe it's simpler to solve those.
The primary issue we're seeing (and maybe it's Chrome specific, I'm not sure) is that if you have the Brimir main ticket view open, if you go to enter a URL or click a bookmark, the webpage will intercept the change and refresh the page - so you end up back at the Brimir home page, rather than the link you wanted to open.
Well that's weird and annoying indeed. When I click the location bar or the search bar, nothing happens until I click in the content of the tab (Firefox). Which browser are you using?
I've been seeing it in Chrome, and my colleague also uses Chrome and has been reporting the same issue.
It looks like we can fix this by using a different method, based on https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API. We just need to find the time to implement it...
Thanks for merging that @frenkel. Do you know if a new release of Brimir is imminent, or should I just use master
for now?
@jamgregory I think it's safe to use master for now, we don't have any breaking this planned between now and the next release.
We're experiencing some issues with the onfocus/onblur code, especially if trying to visit other sites when Brimir is open.
I wonder if it would be preferable to re-render the page (perhaps via Ajax) instead of refreshing the whole page?