mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 10:08:11 +08:00
Update new renderer for StatusList
This commit is contained in:
parent
400c109592
commit
7116034b34
1 changed files with 2 additions and 12 deletions
|
@ -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 = `
|
||||
<input form="${formId}"
|
||||
type="hidden"
|
||||
name="repository_cells[${columnId}]"
|
||||
value=""
|
||||
data-type="RepositoryStatusValue">`;
|
||||
|
||||
$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) {
|
||||
|
|
Loading…
Reference in a new issue