From 079d6578d3766fbddb8c4f9e36861dc015566e70 Mon Sep 17 00:00:00 2001 From: Julea Pikareva Date: Fri, 28 Dec 2012 20:34:10 +0400 Subject: [PATCH] [issue #795] output server time reduction to a single style --- app/assets/stylesheets/design/custom.scss | 1 + app/views/projects/build_lists/index.html.haml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/design/custom.scss b/app/assets/stylesheets/design/custom.scss index 7ac5210e0..188c8c508 100644 --- a/app/assets/stylesheets/design/custom.scss +++ b/app/assets/stylesheets/design/custom.scss @@ -1708,3 +1708,4 @@ form#new_pull_request { table#myTable thead tr.search th form.button_to div input { margin-top: 2px; } + diff --git a/app/views/projects/build_lists/index.html.haml b/app/views/projects/build_lists/index.html.haml index d775bf62e..9821d0a3d 100644 --- a/app/views/projects/build_lists/index.html.haml +++ b/app/views/projects/build_lists/index.html.haml @@ -47,7 +47,7 @@ .replace("%d", formatNumber(minutes)); } // TODO Very, very ugly method. - var now = document.getElementById('servertime').value*1000; + var now = $('#servertime').val() * 1000; $("time.js-relative-date").each(function() { var time = parseIso8601($(this).attr('datetime')).getTime(); $(this).text(strTimeBetween(time, now));