Add highlight to active row within Order Form view
This commit is contained in:
parent
37a9153c4d
commit
346bb48f9c
|
@ -12,6 +12,14 @@
|
||||||
|
|
||||||
$(function() {
|
$(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) {
|
$('.order-form td.current-order input').keydown(function(event) {
|
||||||
if (key_allowed(event) || key_modifies(event)) {
|
if (key_allowed(event) || key_modifies(event)) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -64,6 +72,10 @@
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.order-form tr.active {
|
||||||
|
border: 5px solid Blue;
|
||||||
|
}
|
||||||
|
|
||||||
.order-form td {
|
.order-form td {
|
||||||
border-right: 1px solid #000000;
|
border-right: 1px solid #000000;
|
||||||
border-top: 1px solid #000000;
|
border-top: 1px solid #000000;
|
||||||
|
|
Loading…
Reference in a new issue