diff --git a/app/assets/javascripts/repositories/renderers/new_renderers.js b/app/assets/javascripts/repositories/renderers/new_renderers.js index 3daafebfd..d57229d28 100644 --- a/app/assets/javascripts/repositories/renderers/new_renderers.js +++ b/app/assets/javascripts/repositories/renderers/new_renderers.js @@ -1,5 +1,5 @@ /* -global ListColumnHelper ChecklistColumnHelper Status SmartAnnotation I18n +global ListColumnHelper ChecklistColumnHelper StatusColumnHelper SmartAnnotation I18n GLOBAL_CONSTANTS DateTimeHelper */ @@ -55,17 +55,7 @@ $.fn.dataTable.render.newRepositoryListValue = function(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}]']`)); + StatusColumnHelper.initialStatusEditMode(formId, columnId, $cell); }; $.fn.dataTable.render.newRepositoryChecklistValue = function(formId, columnId, $cell) {