Fix Tabulator editor configuration for autocomplete forms
This commit is contained in:
@@ -439,15 +439,7 @@ async function promptForRequiredFields(requiredFields, optionalFields) {
|
||||
title: 'Значение',
|
||||
field: 'field_value',
|
||||
headerSort: false,
|
||||
editor: function(cell) {
|
||||
const meta = cell.getRow().getData()._field_meta;
|
||||
|
||||
if (meta.is_fk && fkOptions[meta.name]?.length > 0) {
|
||||
return 'list';
|
||||
}
|
||||
|
||||
return 'input';
|
||||
},
|
||||
editor: 'list',
|
||||
editorParams: function(cell) {
|
||||
const meta = cell.getRow().getData()._field_meta;
|
||||
const isRequired = cell.getRow().getData()._required;
|
||||
@@ -724,13 +716,7 @@ async function showEditModal(selectedRows) {
|
||||
if (!isSingleRow && !data.update) return false;
|
||||
return true;
|
||||
},
|
||||
editor: function(cell) {
|
||||
const meta = cell.getRow().getData()._field_meta;
|
||||
if (meta.is_fk && fkOptions[meta.name]?.length > 0) {
|
||||
return 'list';
|
||||
}
|
||||
return 'input';
|
||||
},
|
||||
editor: 'list',
|
||||
editorParams: function(cell) {
|
||||
const meta = cell.getRow().getData()._field_meta;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user