summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/index.html b/index.html
index ba53bb6..a72baf1 100644
--- a/index.html
+++ b/index.html
@@ -24,13 +24,16 @@
}
$('#order-submit').click(function() {
- console.log('presub');
var type = $('input:radio[name=type]:checked').val();
var price = $('#order-price').val();
var amount = $('#order-amount').val();
- var order = client_id + '|' + type + '|' + price + '|' + amount
- ws.send(order);
- console.log('postsub');
+ var order = {
+ type: type,
+ amount: amount,
+ price: price,
+ client: client_id
+ };
+ ws.send(JSON.stringify(order));
return false;
});
});