aboutsummaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-07-22 15:11:16 -0700
committerAdam Soltys <[email protected]>2014-07-22 15:12:19 -0700
commitde1cdd2e3f9d9f36ce3d8e97335341cc3237e829 (patch)
tree813afeb5a1393f66e20b45bd795d2a8123a505bd /public/js
parenteb75029273e477a6ed4486d204a19ee762af07bf (diff)
downloadcoinos-server-de1cdd2e3f9d9f36ce3d8e97335341cc3237e829.tar.gz
coinos-server-de1cdd2e3f9d9f36ce3d8e97335341cc3237e829.zip
Play a chaching sound when payment is received
Diffstat (limited to 'public/js')
-rw-r--r--public/js/calculator.coffee1
-rw-r--r--public/js/calculator.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee
index 48e14764..7b42bab5 100644
--- a/public/js/calculator.coffee
+++ b/public/js/calculator.coffee
@@ -159,6 +159,7 @@ setupSocket = ->
$('#amount').blur()
$('#payment').hide()
$('#received').fadeIn('slow')
+ $('#chaching')[0].play()
if g.user
$.post("/#{g.user}/transactions",
diff --git a/public/js/calculator.js b/public/js/calculator.js
index ba6f6511..71aa22da 100644
--- a/public/js/calculator.js
+++ b/public/js/calculator.js
@@ -159,6 +159,7 @@
$('#amount').blur();
$('#payment').hide();
$('#received').fadeIn('slow');
+ $('#chaching')[0].play();
}
if (g.user) {
return $.post("/" + g.user + "/transactions", {