Browse Source

Brings focus back to select > transaction_type, green in css.

devel
Jonathan Rosenbaum 9 years ago
parent
commit
50ecfd22d1
  1. 2
      css/transactions.css
  2. 4
      js/transaction.js

2
css/transactions.css

@ -22,7 +22,7 @@ input[value=Delete], input[name=date_fill] {
cursor: pointer;
}
form[name=FormEdit] select:focus {
select[name=transaction_type], form[name=FormEdit] select:focus {
color: green;
}

4
js/transaction.js

@ -8,8 +8,8 @@ $(function() {
$.ajaxSetup({async:false}); // best to do this in $.ajax,
// but all ajax needs to be synchronous in this program because of the use of mysql
$("#transaction_type").attr("tabindex",1);
$("#transaction_type").focus();
$("[name='transaction_type']").attr("tabindex",1);
$("[name='transaction_type']").focus();
$("input[value='Create Transaction']").attr("tabindex",2);
$("#trans_date").mask("0000-00-00", {placeholder: "yyyy-mm-dd" });

Loading…
Cancel
Save