From 20293ab3f0d18d0f2ca9f37d25d1572faf8a0592 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Tue, 26 Jun 2018 14:37:22 +0200 Subject: [PATCH] FIX #7998 fix set link doc in indexing --- apps/maarch_entreprise/js/indexing.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/apps/maarch_entreprise/js/indexing.js b/apps/maarch_entreprise/js/indexing.js index c3a52d93423..c5fc211e642 100755 --- a/apps/maarch_entreprise/js/indexing.js +++ b/apps/maarch_entreprise/js/indexing.js @@ -386,6 +386,8 @@ function change_category(cat_id, display_value_tr, path_manage_script,get_js_scr if(cat_id == 'incoming') { var category = [ + {id:'attachment_tr', type:'tr', state:'display'}, ++ {id:'attach_show', type:'tr', state:'display'}, {id:'doctype_mail', type:'label', state:'display'}, {id:'doctype_res', type:'label', state:'hide'}, {id:'priority_tr', type:'tr', state:'display'}, @@ -801,7 +803,7 @@ function change_category(cat_id, display_value_tr, path_manage_script,get_js_scr {id:'contact_mandatory', type:'label', state:'hide'}, {id:'nature_id_mandatory', type:'label', state:'hide'}, {id:'subject_mandatory', type:'label', state:'hide'}, - //{id:'subject_tr', type:'label', state:'hide'}, + {id:'subject_tr', type:'label', state:'hide'}, {id:'destination_mandatory', type:'label', state:'hide'}, {id:'process_limit_date_use_mandatory', type:'label', state:'hide'}, {id:'process_limit_date_mandatory', type:'label', state:'hide'}, @@ -906,18 +908,6 @@ function change_category(cat_id, display_value_tr, path_manage_script,get_js_scr } }); } - // NCH01 - if(cat_id == 'attachment'){ - document.getElementById("attachment_tr").style.display='table-row'; - document.getElementById("attach_show").style.display='table-row'; - document.getElementById("subject_tr").style.display = 'none'; - document.getElementById("diff_list_tr").style.display = 'none'; - }else{ - document.getElementById("attachment_tr").style.display='none'; - document.getElementById("attach_show").style.display='none'; - document.getElementById("diff_list_tr").style.display = 'table-row'; - document.getElementById("subject_tr").style.display = 'table-row'; - } } /** -- GitLab