Skip to content

Commit

Permalink
Merge pull request #85 from lsst-sqre/tickets/DM-35535
Browse files Browse the repository at this point in the history
DM-35535: Fix autoupdate for current pages
  • Loading branch information
jonathansick committed Jul 12, 2022
2 parents c4741e0 + 18f7158 commit b0885ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rubintv/static/js/refresh-current.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global jQuery */

(function ($) {
setTimeout(function () {
setInterval(function () {
$('#refresher').load(window.location.href + ' #refresher')
}, 5000)
})(jQuery)
2 changes: 1 addition & 1 deletion src/rubintv/templates/current.jinja
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "single_event.jinja" %}
{% block footer_scripts %}
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type=text/javascript src="/rubintv/static/js/refresh-current.js"></script>
<script type=text/javascript src="/rubintv/static/js/refresh-current.js?v=1234"></script>
{% endblock footer_scripts %}

0 comments on commit b0885ae

Please sign in to comment.