mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +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 %>
|
<% 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) %>');
|
max: Constants::NAME_MAX_LENGTH, min: Constants::NAME_MIN_LENGTH) %>');
|
||||||
<% else %>
|
<% else %>
|
||||||
$('#modal-import-json-protocol-preview').modal('hide');
|
$('#modal-import-json-protocol-preview').modal('hide');
|
||||||
$('#protocols_io_form').trigger("reset");
|
$('#protocols_io_form').trigger("reset");
|
||||||
protocolsDatatable.ajax.reload();
|
protocolsDatatable.ajax.reload();
|
||||||
|
HelperModule.flashAlertMsg('<%= t('protocols.index.import_results.message_ok_pio')%>', 'success');
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue