aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2012-11-25 01:00:56 -0800
committerAdam Soltys <[email protected]>2012-11-25 01:00:56 -0800
commit13b836968691392102577df0ba89882ed1fab2d0 (patch)
treee3bbcc5007671aac24d7404055d15c780f1f769b
parentb1169d28812e8bf77435b657c8680dc5928355f3 (diff)
downloadcoinos-server-13b836968691392102577df0ba89882ed1fab2d0.tar.gz
coinos-server-13b836968691392102577df0ba89882ed1fab2d0.zip
Default report dates to the past week
-rw-r--r--public/js/report.coffee2
1 files changed, 2 insertions, 0 deletions
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")