Set focus to the first field when adding a new row.

This commit is contained in:
Joachim Tingvold
2016-08-19 18:13:34 +00:00
parent 480a00bb87
commit 4f5b2e5c50
2 changed files with 2 additions and 1 deletions

View File

@ -225,6 +225,7 @@
// add new row
var nRow = jQuery('#tbl_records').dataTable().fnAddData(['', 'A', 'Active', 3600, '', '', '', '0']);
editRow($("#tbl_records").DataTable(), nRow);
document.getElementById("edit-row-focus").focus();
nEditing = nRow;
nNew = true;
});