mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 20:56:42 +08:00
Merge pull request #6610 from lasniscinote/gl_SCI_9311
Fixed [CAPA] - Tasks do not show up in Table View [SCI-9311]
This commit is contained in:
commit
923df0ddfb
1 changed files with 11 additions and 7 deletions
|
@ -43,7 +43,7 @@ var ExperimnetTable = {
|
|||
return `<a href="${data.url}">${data.count}</a>`;
|
||||
},
|
||||
status: function(data) {
|
||||
return `<div class="my-module-status ${data.light_color ? 'status-light' : ''}"
|
||||
return `<div class="my-module-status ${data.light_color ? 'status-light' : ''}"
|
||||
style="background-color: ${data.color}">${data.name}</div>`;
|
||||
},
|
||||
assigned: function(data) {
|
||||
|
@ -620,9 +620,11 @@ var ExperimnetTable = {
|
|||
|
||||
$.get(dataUrl, tableParams, (result) => {
|
||||
$(this.table).find('.table-row-placeholder, .table-row-placeholder-divider').remove();
|
||||
this.appendRows(result.data);
|
||||
this.initDueDatePicker(result.data);
|
||||
this.handleNoResults();
|
||||
setTimeout(() => {
|
||||
this.appendRows(result.data);
|
||||
this.initDueDatePicker(result.data);
|
||||
this.handleNoResults();
|
||||
}, 100);
|
||||
|
||||
InfiniteScroll.init(this.table, {
|
||||
url: dataUrl,
|
||||
|
@ -632,9 +634,11 @@ var ExperimnetTable = {
|
|||
pageSize: this.pageSize,
|
||||
lastPage: !result.next_page,
|
||||
customResponse: (response) => {
|
||||
this.appendRows(response.data);
|
||||
this.initDueDatePicker(response.data);
|
||||
this.initProvisioningStatusPolling();
|
||||
setTimeout(() => {
|
||||
this.appendRows(response.data);
|
||||
this.initDueDatePicker(response.data);
|
||||
this.initProvisioningStatusPolling();
|
||||
}, 100);
|
||||
},
|
||||
customParams: (params) => {
|
||||
return { ...params, ...tableParams };
|
||||
|
|
Loading…
Reference in a new issue