diff --git a/apps/maarch_entreprise/js/indexing.js b/apps/maarch_entreprise/js/indexing.js index 70f5329dc585e6515f2b4f9519ff78e6154fb7fb..e9b12a2d69a28e1f48043f933812fb2dc9d83e23 100755 --- a/apps/maarch_entreprise/js/indexing.js +++ b/apps/maarch_entreprise/js/indexing.js @@ -813,11 +813,19 @@ function change_category(cat_id, display_value_tr, path_manage_script,get_js_scr document.getElementById("diff_list_tr").style.display = 'table-row'; document.getElementById("subject_tr").style.display = 'table-row'; } - + if(cat_id != 'outgoing'){ - $('choose_file_div').show(); + $j("#choose_file").on("load", function () { + $j("#choose_file").off(); + $j('#choose_file_div').show(); + $j('#choose_file').contents().find('#with_file').click(); + }); }else{ - $('choose_file_div').hide(); + $j("#choose_file").on("load", function () { + $j("#choose_file").off(); + $j('#choose_file').contents().find('#with_file2').click(); + $j('#choose_file_div').hide(); + }); } if(origin != 'init'){