From 44c9fd005c17829f4d1193579033dad6b1234dc0 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Sat, 22 Nov 2025 11:11:01 +0100 Subject: [PATCH] Cosmetic : set layer correctly --- html/js/card.js | 10 +++++----- html/js/noalyss_script.js | 8 ++++++-- include/template/module.php | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/html/js/card.js b/html/js/card.js index f82a039a4..2ec564ba0 100644 --- a/html/js/card.js +++ b/html/js/card.js @@ -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);} diff --git a/html/js/noalyss_script.js b/html/js/noalyss_script.js index 8bd090620..afab017e5 100644 --- a/html/js/noalyss_script.js +++ b/html/js/noalyss_script.js @@ -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 += ' ' + content[67] + ' '; 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(); diff --git a/include/template/module.php b/include/template/module.php index 6430c6921..6990a820e 100644 --- a/include/template/module.php +++ b/include/template/module.php @@ -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 '