diff options
| author | Adam Soltys <[email protected]> | 2015-11-18 17:21:46 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2015-11-27 22:02:48 -0800 |
| commit | b2b8eeaa85c21e5319f903002b73c571d81b54f5 (patch) | |
| tree | 09d6112b6e712f531a3655556cbf80bac6cf1288 /public | |
| parent | c98e4b8f8b4b646ec3f92618f9f74fd35cabbde1 (diff) | |
| download | coinos-server-b2b8eeaa85c21e5319f903002b73c571d81b54f5.tar.gz coinos-server-b2b8eeaa85c21e5319f903002b73c571d81b54f5.zip | |
Max button
Diffstat (limited to 'public')
| -rw-r--r-- | public/js/wallet.coffee | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/public/js/wallet.coffee b/public/js/wallet.coffee index 7399973d..606c1f7d 100644 --- a/public/js/wallet.coffee +++ b/public/js/wallet.coffee @@ -45,6 +45,13 @@ $(-> $(this).html('BTC') ) + + $('#max').click(-> + if $('#currency_toggle').html() is 'BTC' + $('#amount').val(g.balance) + else + $('#amount').val((g.balance * g.exchange).toFixed(2)) + ) ) |
