mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Fix inventory item CSS abd set nonce shared file preview inline JavaScript [SCI-9043]
This commit is contained in:
parent
acb1a034a8
commit
b9e391e781
3 changed files with 8 additions and 1 deletions
|
@ -717,7 +717,9 @@ var RepositoryDatatable = (function(global) {
|
|||
}
|
||||
customColumns.each((i, column) => {
|
||||
var columnData = $(column).data('type') === 'RepositoryStockValue' ? 'stock' : String(columns.length);
|
||||
const className = $(column).data('type') === 'RepositoryChecklistValue' ? 'checklist-column' : '';
|
||||
columns.push({
|
||||
className: className,
|
||||
visible: true,
|
||||
searchable: true,
|
||||
data: columnData,
|
||||
|
|
|
@ -90,6 +90,7 @@
|
|||
// Assigned
|
||||
|
||||
.assigned-column {
|
||||
overflow: unset;
|
||||
padding: 1px 8px;
|
||||
position: relative;
|
||||
|
||||
|
@ -170,6 +171,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.checklist-column {
|
||||
overflow: unset;
|
||||
}
|
||||
|
||||
.item-name {
|
||||
padding: 2px 8px;
|
||||
|
||||
|
|
|
@ -104,4 +104,4 @@
|
|||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= javascript_include_tag 'shared/file_preview' %>
|
||||
<%= javascript_include_tag 'shared/file_preview', nonce: true %>
|
||||
|
|
Loading…
Reference in a new issue