From 587606803bcf153f4e0ef2cd02a1f72e15c79488 Mon Sep 17 00:00:00 2001 From: sboursen-scinote Date: Mon, 6 Mar 2023 09:28:21 +0100 Subject: [PATCH] Update search placeholder [SCI-8045] --- app/assets/javascripts/protocols/index.js | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/protocols/index.js b/app/assets/javascripts/protocols/index.js index 9ba3b67e3..607a71098 100644 --- a/app/assets/javascripts/protocols/index.js +++ b/app/assets/javascripts/protocols/index.js @@ -247,7 +247,7 @@ var ProtocolsIndex = (function() { fnInitComplete: function(e) { var dataTableWrapper = $(e.nTableWrapper); DataTableHelpers.initLengthAppearance(dataTableWrapper); - DataTableHelpers.initSearchField(dataTableWrapper, 'Enter...'); + DataTableHelpers.initSearchField(dataTableWrapper, I18n.t('protocols.index.search_bar_placeholder') ); dataTableWrapper.find('.main-actions, .pagination-row').removeClass('hidden'); let actionToolBar = $($('#protocolActionToolbar').html()); diff --git a/config/locales/en.yml b/config/locales/en.yml index c7962aba8..c89347e57 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2706,6 +2706,7 @@ en: head_title_archived: "Archived protocol templates" default_name: 'New protocol' back_to_active_protocols: 'Back to active protocols' + search_bar_placeholder: 'Filter protocols' navigation: public: "Team protocols" private: "My protocols"