Limit record selection in reverse lookup domain to PTR

And also fix the default type selection of a new record
This commit is contained in:
SIPOS, Peter
2016-11-21 15:52:07 +01:00
parent 4ec70f4143
commit 1538cf0239
2 changed files with 8 additions and 3 deletions

View File

@ -223,7 +223,8 @@
$("#tbl_records").DataTable().search('').columns().search('').draw();
// add new row
var nRow = jQuery('#tbl_records').dataTable().fnAddData(['', 'A', 'Active', 3600, '', '', '', '0']);
var default_type = records_allow_edit[0]
var nRow = jQuery('#tbl_records').dataTable().fnAddData(['', default_type, 'Active', 3600, '', '', '', '0']);
editRow($("#tbl_records").DataTable(), nRow);
document.getElementById("edit-row-focus").focus();
nEditing = nRow;