Commit 7e453c2f authored by Clint Mourlevat's avatar Clint Mourlevat

Detect enter keyboard for click-edit

parent 7e27df9e
...@@ -42,7 +42,12 @@ ...@@ -42,7 +42,12 @@
}); });
signalr.start(); signalr.start();
$(".click-edit").click(function() { $(".click-edit").bind("keypress",function(e) {
if (e.keyCode == 13) {
stratisAmount = $(this).text();
UpdateTicker();
}
}).click(function() {
$(this).prop('contenteditable', true).focus().select(); $(this).prop('contenteditable', true).focus().select();
}).on("blur", function() { }).on("blur", function() {
if ($.isNumeric($(this).text())) { if ($.isNumeric($(this).text())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment