diff options
| author | Adam Soltys <[email protected]> | 2015-11-11 14:59:37 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2015-11-11 14:59:37 -0800 |
| commit | cfed6f916ea7d63821385db338daecc4a2bda4c2 (patch) | |
| tree | f1b045ad7e3fc5d160bebfcc8b13cee7d9c4fef1 /public/js | |
| parent | c1cd55151fdea2bd80e27a6a9dfc905a243dd379 (diff) | |
| download | coinos-server-cfed6f916ea7d63821385db338daecc4a2bda4c2.tar.gz coinos-server-cfed6f916ea7d63821385db338daecc4a2bda4c2.zip | |
New payment received sound
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/calculator.coffee | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index cc45cae5..4d6b0013 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -116,17 +116,14 @@ listen = -> g.blockchain = new WebSocket("wss://ws.blockchain.info/inv") g.blockchain.onopen = -> - $('#connection').fadeIn().removeClass('glyphicon-exclamation-sign').addClass('glyphicon-signal') clear(SOCKET_FAIL) g.blockchain.send('{"op":"addr_sub", "addr":"' + g.user.address + '"}') g.blockchain.onerror = -> - $('#connection').addClass('glyphicon-exclamation-sign').removeClass('glyphicon-signal') g.blockchain = null fail(SOCKET_FAIL) g.blockchain.onclose = -> - $('#connection').addClass('glyphicon-exclamation-sign').removeClass('glyphicon-signal') g.blockchain = null fail(SOCKET_FAIL) listen() @@ -151,7 +148,7 @@ logTransaction = (txid, amount) -> $('#amount').blur() $('#payment').hide() $('#received').fadeIn('slow') - $('#chaching')[0].play() + $('#success')[0].play() g.user.index++ $.post("/#{g.user.username}/transactions", |
