mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 03:59:51 +08:00
Added the success flash alert
This commit is contained in:
parent
9086cd8b6b
commit
8b247770ef
1 changed files with 2 additions and 1 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue