diff --git a/tailbone/templates/ordering/order_form.mako b/tailbone/templates/ordering/order_form.mako index d8a2485b..90d01084 100644 --- a/tailbone/templates/ordering/order_form.mako +++ b/tailbone/templates/ordering/order_form.mako @@ -12,6 +12,14 @@ $(function() { + $('.order-form td.current-order input').focus(function(event) { + $(this).parents('tr:first').addClass('active'); + }); + + $('.order-form td.current-order input').blur(function(event) { + $(this).parents('tr:first').removeClass('active'); + }); + $('.order-form td.current-order input').keydown(function(event) { if (key_allowed(event) || key_modifies(event)) { return true; @@ -64,6 +72,10 @@ text-align: left; } + .order-form tr.active { + border: 5px solid Blue; + } + .order-form td { border-right: 1px solid #000000; border-top: 1px solid #000000;