Skip to content

Commit

Permalink
Merge pull request #63 from AweSim-OSC/minor_fixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
ericfranz committed Sep 7, 2018
2 parents 30fce48 + c274b47 commit c1c2523
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions views/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta name="turbolinks-root" content="<%=url("/")%>">
<title>System Status</title>
<link rel="stylesheet" type="text/css" href="<%= url("/bootstrap-3.3.7/css/bootstrap.min.css") %>">
<link rel="stylesheet" href="<%= url("/fontawesome-5.1.0/css/all.css") %>">
Expand Down Expand Up @@ -81,7 +82,6 @@
<script src="<%= url("/jquery-1.12.4/jquery.min.js") %>"></script>
<script type="text/javascript" src="<%= url("/uri-1.18.4/URI.min.js") %>"></script>
<script src="<%= url("/bootstrap-3.3.7/js/bootstrap.min.js") %>"></script>
<meta name="turbolinks-root" content="<%=url("/")%>">
</head>
<body>

Expand Down Expand Up @@ -144,11 +144,14 @@
</div><!-- /.container -->
</footer>
<script>
$('[data-toggle="tooltip"]').tooltip();
// update cluster information graphs every 5 seconds
setTimeout($(".updateable:visible").each(function(){
return this.src = URI(this.src).setSearch("timestamp", (new Date).getTime()).toString();
}),5000);
//TODO: this won't work in turbolinks; rather setInterval and clearInterval
// would need to be set during appropriate turbolinks events
//setInterval(function(){
// $(".updateable:visible").each(function(){
// this.src = URI(this.src).setSearch("timestamp", (new Date).getTime()).toString();
// });
//}, 5000);
</script>

</body>
Expand Down

0 comments on commit c1c2523

Please sign in to comment.