diff --git a/app/static/custom/js/custom.js b/app/static/custom/js/custom.js
index 73c6c3a..d740766 100644
--- a/app/static/custom/js/custom.js
+++ b/app/static/custom/js/custom.js
@@ -90,7 +90,7 @@ function editRow(oTable, nRow) {
var record_type = records_allow_edit[i];
record_types += "";
}
- jqTds[0].innerHTML = '';
+ jqTds[0].innerHTML = '';
jqTds[1].innerHTML = '';
jqTds[2].innerHTML = '';
jqTds[3].innerHTML = '';
diff --git a/app/templates/domain.html b/app/templates/domain.html
index 106e176..4b19e7c 100644
--- a/app/templates/domain.html
+++ b/app/templates/domain.html
@@ -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;
});