aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/report.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/report.coffee')
-rw-r--r--public/js/report.coffee7
1 files changed, 2 insertions, 5 deletions
diff --git a/public/js/report.coffee b/public/js/report.coffee
index ed0cb232..bd449a43 100644
--- a/public/js/report.coffee
+++ b/public/js/report.coffee
@@ -1,12 +1,9 @@
-#= require ../js/jquery-1.8.2.min.js
-#= require ../js/jquery-ui.min.js
-#= require ../js/bootstrap.min.js
-#= require ../js/moment.min.js
+moment = require('moment')
g = exports ? this
$(->
- from = moment().subtract('days', 7)
+ from = moment().subtract(7, 'days')
to = moment()
$('#from').html(from.format("MMMM Do, YYYY"))