diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js
index f23e31f10..0757e5f4b 100644
--- a/html/js/acc_ledger.js
+++ b/html/js/acc_ledger.js
@@ -806,7 +806,7 @@ function view_history_account(p_value, dossier, p_exercice) {
add_div(popup);
success_box(req, xml);
id$(idbox).style.top = calcy(140 + (layer * 3)) + "px";
- $id$(idbox).setStyle({top:calcy(140 + (layer * 3)) + "px"
+ id$(idbox).setStyle({top:calcy(140 + (layer * 3)) + "px"
,"z-index":layer})
}
}
@@ -850,7 +850,7 @@ function view_history_anc_account(p_value, dossier, p_exercice) {
id$(idbox).setStyle(
{
top:calcy(140 + (layer * 3)) + "px"
- ,"z-index":get_next_layer()
+ ,"z-index":layer
}
)
}
diff --git a/html/js/card.js b/html/js/card.js
index 2ec564ba0..889648ff2 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -46,7 +46,7 @@ function boxsearch_card(p_dossier)
return;
}
var y=calcy(15);
- var div_style="position:absolute;"+";top:"+y+"px";
+ var div_style="position:absolute;"+";top:"+y+"px;z-index:"+get_next_layer();
add_div({id:'boxsearch_card_div',cssclass:'inner_box',html:loading(),style:div_style,drag:true});
id$('boxsearch_card_div').innerHTML=req.responseText;
sorttable.makeSortable(id$('tb_fiche'));