Added the success flash alert

This commit is contained in:
Zanz2 2017-10-25 23:04:19 +02:00
parent 9086cd8b6b
commit 8b247770ef

View file

@ -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 %>