Cosmetic : set layer correctly

This commit is contained in:
sparkyx 2025-11-22 11:11:01 +01:00
parent ac87e863ad
commit 44c9fd005c
3 changed files with 12 additions and 8 deletions

View file

@ -116,7 +116,7 @@ function search_card(obj)
if ( document.getElementById('search_card') ) {
removeDiv('search_card');
}
waiting_box();
@ -464,7 +464,7 @@ function result_card_search(req)
sx=document.body.scrollTop+60;
}
var div_style="top:"+sx+"px;min-height:80%;height:auto";
var div_style="top:"+sx+"px;min-height:80%;height:auto;z-index:"+get_next_layer();;
add_div({id:'search_card',cssclass:'inner_box',html:"",style:div_style,drag:false,effect:'blinddown'});
id$('search_card').innerHTML=code_html;
@ -690,7 +690,7 @@ function select_card_type(obj)
var sx=0;
sx=calcy(160);
var str_style="top:"+sx+"px;height:auto";
var str_style="top:"+sx+"px;height:auto;z-index:"+get_next_layer();
waiting_box();
var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':"",'drag':false};
@ -782,7 +782,7 @@ function dis_blank_card(obj)
var content='div_new_card';
var nTop=calcy(150);
var nLeft=posX;
var str_style="top:"+nTop+"px;right:"+nLeft+"px;height:auto;width:45rem;";
var str_style="top:"+nTop+"px;right:"+nLeft+"px;height:auto;width:45rem;z-index:"+get_next_layer();
var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':loading(),'drag':false};
@ -824,7 +824,7 @@ function form_blank_card(obj)
var content='div_new_card';
var nTop=posY-40;
var nLeft=posX-20;
var str_style="top:"+nTop+"px;left:"+nLeft+"px;width:60em;height:auto";
var str_style="top:"+nTop+"px;left:"+nLeft+"px;width:60em;height:auto;z-index:"+get_next_layer();
var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':loading(),'drag':true};
if ( document.getElementById(content)) {removeDiv(content);}

View file

@ -1140,6 +1140,8 @@ function show_calc() {
if (document.getElementById('calc1')) {
this.document.getElementById('inp').value = "";
this.document.getElementById('inp').focus();
document.getElementById("calc1").setStyle({ 'z-index':get_next_layer()});
return;
}
var sid = 'calc1';
@ -1152,8 +1154,10 @@ function show_calc() {
shtml += '</form><span class="highligth" style="display:block" id="sub_total"> ' + content[67] + ' </span><span style="display:block" id="listing"> </span>';
var obj = {
id: sid, html: shtml,
drag: false, style: 'z-index:'+get_next_layer()
id: sid,
html: shtml,
drag: false,
style: 'z-index:'+get_next_layer()
};
add_div(obj);
this.document.getElementById('inp').focus();

View file

@ -24,7 +24,7 @@ if ( $cn->get_value("select count(*) from profile join profile_user using (p_id)
$search_card=new IText('card_search');
$search_card->css_size='97%';
$search_card_js=sprintf('onclick="boxsearch_card(\'%d\')"',dossier::id());
echo Icon_Action::card( "$('box_search_card').show()");
echo Icon_Action::card( "$('box_search_card').show();$('box_search_card').setStyle({'z-index':get_next_layer()})");
echo '<div id="box_search_card" style="display:none;width:20rem;padding:0" class="inner_box">';
echo HtmlInput::title_box(_('Recherche de fiche'), "box_search_card","hide");
echo '<p class="info p-1" >';