/* global List Status SmartAnnotation I18n GLOBAL_CONSTANTS */ $.fn.dataTable.render.newRowName = function(formId, $cell) { $cell.html(`
`); }; $.fn.dataTable.render.newRepositoryAssetValue = function(formId, columnId, $cell) { $cell.html(`
`); }; $.fn.dataTable.render.newRepositoryTextValue = function(formId, columnId, $cell) { $cell.html(`
`); SmartAnnotation.init($cell.find('input')); }; $.fn.dataTable.render.newRepositoryListValue = function(formId, columnId, $cell) { ListColumnHelper.initialListEditMode(formId, columnId, $cell) }; $.fn.dataTable.render.newRepositoryStatusValue = function(formId, columnId, $cell) { let url = $cell.closest('table').data('status-items-path'); let hiddenField = ` `; $cell.html(hiddenField + Status.initialStatusItemsRequest(columnId, '', formId, url)); Status.initStatusSelectPicker($cell.find('select'), $cell.find(`[name='repository_cells[${columnId}]']`)); }; $.fn.dataTable.render.newRepositoryChecklistValue = function(formId, columnId, $cell) { ChecklistColumnHelper.initialChecklistEditMode(formId, columnId, $cell) };