diff options
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/import_table.html | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/ishtar_common/templates/ishtar/import_table.html b/ishtar_common/templates/ishtar/import_table.html index 56e73c6f0..7c65cd2f7 100644 --- a/ishtar_common/templates/ishtar/import_table.html +++ b/ishtar_common/templates/ishtar/import_table.html @@ -5,31 +5,12 @@ {% trans "Error" as error_label %} {% trans "Match" as match_label %} {% localize off %}<script type="text/javascript"> - {% comment %} - - /* TODO : à effacer ? */ - - var html = $("#message_list").html(); - {% if MESSAGES and AJAX %}{% for message, message_type in MESSAGES %} - html += '<div class="alert alert-{{message_type}} alert-dismissible fade show"'; - html += ' role="alert">'; - html += ' {{message}}'; - html += ' <button type="button" class="close" data-dismiss="alert"'; - html += ' aria-label="Close">'; - html += ' <span aria-hidden="true">×</span>'; - html += ' </button>'; - html += ' </div>'; - {% endfor %}{% endif %} - $("#message_list").html(html); - - {% endcomment %} - $("#import-list").find('select').prop('disabled', true); $("#import-list").find('input').prop('disabled', true); var import_table_update_import_ids = new Array(); var import_table_import_state = new Array(); - {% for import in object_list %}{% if import.state == 'IP' or import.state == 'PP' %} + {% for import in object_list %}{% if import.state == 'IP' or import.state == 'PP' or import.state == 'IQ' %} import_table_update_import_ids.push("{{import.import_id}}"); {% if not import.importer_type.type_label %}{# group #}{% for sub in import.import_list %} import_table_update_import_ids.push("{{sub.id}}");{% endfor %} @@ -38,6 +19,7 @@ if (import_table_update_import_ids.length) need_refresh = true; $(document).ready(function(){ + setTimeout(function(){$(".alert-info.alert-dismissible").hide("fade");}, 5000); register_qa(); if (need_refresh) setInterval(function(){ import_table_update_import_list(import_table_update_import_ids) |