diff --git a/html/js/acc_ledger.js b/html/js/acc_ledger.js index 533f6d2ed..5257ed2c2 100644 --- a/html/js/acc_ledger.js +++ b/html/js/acc_ledger.js @@ -659,10 +659,10 @@ function go_next_concerned() function view_history_account(p_value, dossier) { layer++; - id = 'det' + layer; - var popup = {'id': id, 'cssclass': 'inner_box', 'html': loading(), 'drag': true}; + var idbox = 'det' + layer; + var popup = {'id': idbox, 'cssclass': 'inner_box', 'html': loading(), 'drag': false}; - var querystring={'gDossier':dossier,'act':'de','pcm_val':p_value,'div':id,'l':layer,'op':'history'}; + var querystring={'gDossier':dossier,'act':'de','pcm_val':p_value,'div':idbox,'l':layer,'op':'history'}; waiting_box(); var action = new Ajax.Request( @@ -725,15 +725,15 @@ function update_history_account(obj) function view_history_card(p_value, dossier) { layer++; - id = 'det' + layer; - var popup = {'id':id, + var idbox = 'det' + layer; + var popup = {'id':idbox, 'cssclass': 'inner_box', 'html':loading(), - 'drag':true}; + 'drag':false}; var querystring = { 'gDossier' : dossier , 'act':'de', 'f_id' : p_value , - 'div' : id , + 'div' : idbox , "l" : layer, "op":"history"}; waiting_box(); @@ -862,7 +862,7 @@ function modifyOperation(p_value, dossier) onFailure: error_box, onSuccess: function (xml, txt) { var popup = {'id': id_div, 'cssclass': 'inner_box' - , 'html': "", 'drag': true}; + , 'html': "", 'drag': false}; remove_waiting_box(); add_div(popup); success_box(xml, txt); diff --git a/html/js/accounting_item.js b/html/js/accounting_item.js index 4694f73c5..80cae00f4 100644 --- a/html/js/accounting_item.js +++ b/html/js/accounting_item.js @@ -64,7 +64,7 @@ function search_poste(obj) var div_style="top:"+sx+"px"; removeDiv('search_account'); - add_div({id:'search_account',cssclass:'inner_box',html:loading(),style:div_style,drag:true}); + add_div({id:'search_account',cssclass:'inner_box',html:loading(),style:div_style,drag:false}); var dossier=$('gDossier').value; diff --git a/html/js/card.js b/html/js/card.js index 936c470f3..bc941e6ae 100644 --- a/html/js/card.js +++ b/html/js/card.js @@ -317,8 +317,8 @@ function result_card_search(req) sx=document.body.scrollTop+60; } - var div_style="top:"+sx+"px;height:80%"; - add_div({id:'search_card',cssclass:'inner_box',html:"",style:div_style,drag:true,effect:'blinddown'}); + var div_style="top:"+sx+"px;height:auto"; + add_div({id:'search_card',cssclass:'inner_box',html:"",style:div_style,drag:false,effect:'blinddown'}); $('search_card').innerHTML=code_html; @@ -459,7 +459,7 @@ function fill_ipopcard(obj) var str_top=fixed_position(250,nTop) var str_style=str_top+";width:45em;height:auto;position:absolute"; - var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':loading(),'drag':true}; + var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':loading(),'drag':false}; add_div(popup); var dossier=$('gDossier').value; @@ -486,7 +486,7 @@ function fill_ipopcard(obj) if ( obj.nohistory != undefined) { queryString+='&nohistory'; } - + queryString=encodeURI(queryString); var action=new Ajax.Request ( 'ajax_misc.php', { method:'get', @@ -570,7 +570,7 @@ function select_card_type(obj) var str_style="top:"+sx+"px;height:auto"; waiting_box(); - var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':"",'drag':true}; + var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':"",'drag':false}; add_div(popup); @@ -658,7 +658,7 @@ function dis_blank_card(obj) var nLeft=posX; var str_style="top:"+nTop+"px;right:"+nLeft+"px;height:auto"; - var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':loading(),'drag':true}; + var popup={'id': content,'cssclass':'inner_box','style':str_style,'html':loading(),'drag':false}; add_div(popup); diff --git a/html/js/scripts.js b/html/js/scripts.js index 766792083..b09ebdd6c 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -524,7 +524,7 @@ function popup_select_tva(obj) var nLeft = "15%"; var str_style = "top:" + nTop + "px;left:" + nLeft + ";right:" + nLeft + ";width:55em;height:auto"; - var popup = {'id': 'tva_select', 'cssclass': 'inner_box', 'style': str_style, 'html': code_html, 'drag': true}; + var popup = {'id': 'tva_select', 'cssclass': 'inner_box', 'style': str_style, 'html': code_html, 'drag': false}; add_div(popup); $('lk_tva_select_table').focus(); } @@ -1071,13 +1071,13 @@ function show_calc() } var sid = 'calc1'; var shtml = ''; - shtml += '
'; + shtml += ''; shtml += '