From 13b836968691392102577df0ba89882ed1fab2d0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 25 Nov 2012 01:00:56 -0800 Subject: Default report dates to the past week --- public/js/report.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/report.coffee b/public/js/report.coffee index 8e9ba633..d11df706 100644 --- a/public/js/report.coffee +++ b/public/js/report.coffee @@ -5,6 +5,8 @@ g = exports ? this $(-> + $('#from').val(moment().subtract('days', 7).format("MM/DD/YYYY")) + $('#to').val(moment().format("MM/DD/YYYY")) $('.date').datepicker(onClose: -> transactions = $.grep(g.transactions, (e, i) -> from = moment($('#from').val(), "MM/DD/YYYY") -- cgit v1.2.3