aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/report.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2016-10-14 20:48:01 -0700
committerAdam Soltys <[email protected]>2016-10-14 20:48:01 -0700
commit6f906c289422c9d655e194390bb871b2e276f326 (patch)
tree0973e01f99a1ac187d1431804b3768774ef1a02e /public/js/report.coffee
parent60b9265ca0ea5f880dea5c6d2cdef177e9d8dc86 (diff)
downloadcoinos-server-6f906c289422c9d655e194390bb871b2e276f326.tar.gz
coinos-server-6f906c289422c9d655e194390bb871b2e276f326.zip
Reimplement transactions index function with promises
Diffstat (limited to 'public/js/report.coffee')
-rw-r--r--public/js/report.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/public/js/report.coffee b/public/js/report.coffee
index 64284cbc..3fee6714 100644
--- a/public/js/report.coffee
+++ b/public/js/report.coffee
@@ -1,5 +1,3 @@
-moment = require('moment')
-
g = exports ? this
$(->
@@ -19,7 +17,7 @@ $(->
$('#to').click(-> $('#to_date').datepicker('show').blur())
$.getJSON('transactions.json', (data) ->
- g.transactions = data.transactions
+ g.transactions = data.transactions.filter((t) -> t.user is $('#user').val())
display(g.transactions)
filterDates()
)