Skip to content

Commit

Permalink
Merge pull request #609 from Airistotal/dev
Browse files Browse the repository at this point in the history
Changed refresh time on reports homepage
  • Loading branch information
martenson committed Aug 18, 2015
2 parents 9c8edf1 + 3ba1186 commit bb7795f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion client/galaxy/scripts/reports_webapp/run_stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function date_by_subtracting_hours(date, hours) {
);
}

// Gets the utc time without minutes and seconds
function get_utc_time_hours() {
var date = new Date();
return new Date(
Expand All @@ -37,10 +38,11 @@ function get_utc_time_hours() {
);
}

// Refreshes the page for more up to date information
function refresh() {
window.location.reload(true);
}
setTimeout(refresh, 900000); //15 minutes = 900000 ms
setTimeout(refresh, 60000); //1 minute = 60000 ms

function create_chart( inp_data, name, time, title ) {
require( ["d3"], function (e) {
Expand Down
Loading

0 comments on commit bb7795f

Please sign in to comment.