diff options
| author | Adam Soltys <[email protected]> | 2012-10-20 10:20:22 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-10-20 10:20:22 -0700 |
| commit | 4331f041b4a98d34dac30f47d8c8762db8173c8a (patch) | |
| tree | 23db098ec04a396ff7f313fae724db500d4123e4 /js/bitcoin_pos.js | |
| parent | b1e7d176518d8e0c842e80b10ac227c0ae72cc8b (diff) | |
| download | coinos-server-4331f041b4a98d34dac30f47d8c8762db8173c8a.tar.gz coinos-server-4331f041b4a98d34dac30f47d8c8762db8173c8a.zip | |
Display payment received notification
Diffstat (limited to 'js/bitcoin_pos.js')
| -rw-r--r-- | js/bitcoin_pos.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/js/bitcoin_pos.js b/js/bitcoin_pos.js index 0ecc9264..49bf5c14 100644 --- a/js/bitcoin_pos.js +++ b/js/bitcoin_pos.js @@ -4,6 +4,8 @@ $(function() { var total = 0; var received = 0; var address = getParameterByName('address'); + + $('#received').hide(); setupqr(); @@ -33,9 +35,9 @@ $(function() { } }); - $('#status').html('Received: ' + received.toString()); if (total <= received) { - $('#status').css('color', 'green'); + $('#payment').hide(); + $('#received').fadeIn('slow'); } $.get('record_transaction.php', @@ -58,6 +60,10 @@ $(function() { $('#owing').keyup(updateTotal); $('#owing').focus(); + $('#owing').click(function() { + $('#payment').show(); + $('#received').hide(); + }); function updateTotal() { var owing = parseFloat($('#owing').val()); |
