From 8b247770efa065870bb7b4285957512f9ac56e05 Mon Sep 17 00:00:00 2001 From: Zanz2 Date: Wed, 25 Oct 2017 23:04:19 +0200 Subject: [PATCH] Added the success flash alert --- app/views/protocols/protocolsio_import_save.js.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/protocols/protocolsio_import_save.js.erb b/app/views/protocols/protocolsio_import_save.js.erb index 16ad30454..830ebafbf 100644 --- a/app/views/protocols/protocolsio_import_save.js.erb +++ b/app/views/protocols/protocolsio_import_save.js.erb @@ -1,8 +1,9 @@ <% if @protocolsio_general_error %> - alert('<%= I18n.t('my_modules.protocols.load_from_file_protocol_general_error', + alert('<%= t('my_modules.protocols.load_from_file_protocol_general_error', max: Constants::NAME_MAX_LENGTH, min: Constants::NAME_MIN_LENGTH) %>'); <% else %> $('#modal-import-json-protocol-preview').modal('hide'); $('#protocols_io_form').trigger("reset"); protocolsDatatable.ajax.reload(); + HelperModule.flashAlertMsg('<%= t('protocols.index.import_results.message_ok_pio')%>', 'success'); <% end %>