From 13100b8019adce3d88c5ac39aca2306f70e24fa2 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Fri, 26 Apr 2019 15:57:29 +0200 Subject: [PATCH] FIX #9630 TIME 2 fix select no file when default cat outgoing --- apps/maarch_entreprise/js/indexing.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/maarch_entreprise/js/indexing.js b/apps/maarch_entreprise/js/indexing.js index 70f5329dc58..e9b12a2d69a 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'){ -- GitLab