From 48323c11d4e8db055141b02db02c5e69bebf7f37 Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Fri, 29 Jan 2016 11:20:10 -0800 Subject: [PATCH] Remove `update_ago_timer` variable and `update_ago` function. `Start Time` shows the start time of the job and doesn't seem to use these any more. The timer calls this function every second (in comments it should be 5), but the function `update_ago` just returns without doing anything. --- digits/templates/job_management.html | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/digits/templates/job_management.html b/digits/templates/job_management.html index 725da6be5..b2b23a54c 100644 --- a/digits/templates/job_management.html +++ b/digits/templates/job_management.html @@ -35,18 +35,6 @@ } } - // update ago every 5 seconds - var update_ago_timer = $.timer(update_ago, 1000); - function update_ago() { - return; - $("small#ago" ).each(function(){ - var start = $(this).attr('start') - var now = $.now() / 1000; - var time = print_time_diff(now - start); - $(this).html( "(" + time + " ago)" ); - }); - } - $(document).ready(function() { // Make the jobs DataTable // make 'table' a global variable