mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 23:54:43 +08:00
Fix smart anotation to task assigned items [SCI-11897]
This commit is contained in:
parent
fe7cf6cbb1
commit
c1596b90ae
2 changed files with 10 additions and 12 deletions
|
@ -100,6 +100,14 @@ var MyModuleRepositories = (function() {
|
||||||
return columns;
|
return columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function renderSmartAnnotations() {
|
||||||
|
const scrollElement = $('#myModuleRepositoryFullViewModal .dataTables_scrollBody')[0];
|
||||||
|
scrollElement.classList.remove('sa-initialized');
|
||||||
|
window.renderElementSmartAnnotations(scrollElement, '.text-value', scrollElement);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
function fullViewColumnDefs(tableContainer) {
|
function fullViewColumnDefs(tableContainer) {
|
||||||
let columnDefs = [{
|
let columnDefs = [{
|
||||||
targets: 0,
|
targets: 0,
|
||||||
|
@ -344,6 +352,8 @@ var MyModuleRepositories = (function() {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderSmartAnnotations();
|
||||||
},
|
},
|
||||||
|
|
||||||
stateLoadCallback: function(settings, callback) {
|
stateLoadCallback: function(settings, callback) {
|
||||||
|
|
|
@ -147,18 +147,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tr[data-state]:not([data-state='']) {
|
|
||||||
td.item-name::after {
|
|
||||||
@include font-small;
|
|
||||||
background-color: $color-concrete;
|
|
||||||
color: $color-silver-chalice;
|
|
||||||
content: attr(data-state);
|
|
||||||
margin-left: 20px;
|
|
||||||
padding: .3em;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tr[data-shared=true],
|
tr[data-shared=true],
|
||||||
tr[data-i-shared=true] {
|
tr[data-i-shared=true] {
|
||||||
td.item-name::before {
|
td.item-name::before {
|
||||||
|
|
Loading…
Add table
Reference in a new issue