mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Fix naming of filter field for repositories tables
This commit is contained in:
parent
41ceba11b8
commit
9464d2753d
6 changed files with 8 additions and 7 deletions
|
@ -170,7 +170,7 @@ var MyModuleRepositories = (function() {
|
|||
fnInitComplete: function() {
|
||||
var dataTableWrapper = $(tableContainer).closest('.dataTables_wrapper');
|
||||
DataTableHelpers.initLengthApearance(dataTableWrapper);
|
||||
DataTableHelpers.initSearchField(dataTableWrapper);
|
||||
DataTableHelpers.initSearchField(dataTableWrapper, I18n.t('repositories.show.filter_inventory_items'));
|
||||
dataTableWrapper.find('.main-actions, .pagination-row').removeClass('hidden');
|
||||
if (options.assign_mode) {
|
||||
renderFullViewAssignButtons();
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
}
|
||||
});
|
||||
DataTableHelpers.initLengthApearance(dataTableWrapper);
|
||||
DataTableHelpers.initSearchField(dataTableWrapper);
|
||||
DataTableHelpers.initSearchField(dataTableWrapper, I18n.t('repositories.index.filter_inventory'));
|
||||
$('.content-body .toolbar').html($('#repositoriesListButtons').html());
|
||||
dataTableWrapper.find('.main-actions, .pagination-row').removeClass('hidden');
|
||||
$('#createRepoBtn').initializeModal('#create-repo-modal');
|
||||
|
|
|
@ -594,7 +594,7 @@ var RepositoryDatatable = (function(global) {
|
|||
initCancelButton();
|
||||
|
||||
DataTableHelpers.initLengthApearance($(TABLE_ID).closest('.dataTables_wrapper'));
|
||||
DataTableHelpers.initSearchField($(TABLE_ID).closest('.dataTables_wrapper'));
|
||||
DataTableHelpers.initSearchField($(TABLE_ID).closest('.dataTables_wrapper'), I18n.t('repositories.show.filter_inventory_items'));
|
||||
|
||||
if ($('.repository-show').length) {
|
||||
$('.dataTables_scrollBody, .dataTables_scrollHead').css('overflow', '');
|
||||
|
|
|
@ -22,9 +22,9 @@ var DataTableHelpers = (function() {
|
|||
});
|
||||
},
|
||||
|
||||
initSearchField: function(dataTableWraper) {
|
||||
initSearchField: function(dataTableWraper, searchText) {
|
||||
var tableFilterInput = $(dataTableWraper).find('.dataTables_filter input');
|
||||
tableFilterInput.attr('placeholder', I18n.t('repositories.index.filter_inventory'))
|
||||
tableFilterInput.attr('placeholder', searchText)
|
||||
.addClass('sci-input-field')
|
||||
.css('margin', 0);
|
||||
$('.dataTables_filter').append(`
|
||||
|
@ -126,4 +126,3 @@ DataTableCheckboxes.prototype.initSelectAllCheckbox = function() {
|
|||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
|
||||
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);
|
||||
|
|
|
@ -1079,7 +1079,7 @@ en:
|
|||
share_inventory: "Share"
|
||||
view_only_permission_label: "You have veiw-only permission"
|
||||
show_per_page: "Show %{number} per page"
|
||||
filter_inventory: "Filter inventory item"
|
||||
filter_inventory: "Filter inventories"
|
||||
no_inventories: "No inventories here"
|
||||
no_inventories_matched: "No inventories matched your search request"
|
||||
no_archived_inventories: "No archived inventories here"
|
||||
|
@ -1138,6 +1138,7 @@ en:
|
|||
active: "These are individually archived items from the %{repository_name} inventory. The inventory itself is active."
|
||||
archived_on: "Inventory archived on"
|
||||
archived_by: "by"
|
||||
filter_inventory_items: "Filter inventory items"
|
||||
no_items: "No items here"
|
||||
no_items_matched: "No items matched your search request"
|
||||
no_archived_items: "No archived items here"
|
||||
|
|
Loading…
Reference in a new issue