diff --git a/html/js/scripts.js b/html/js/scripts.js index 335fafeb7..b2b65c8e8 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -1038,8 +1038,8 @@ function mod_predf_op(dossier_id,od_id) { var target="mod_predf_op"; removeDiv(target); - var sx=posY; - var sy=posX; + var sx='20%'; + var sy='20%'; var str_style="top:"+sx+";left:"+sy; var div={id:target, cssclass:'inner_box',style:str_style,html:loading(),drag:1}; @@ -1061,14 +1061,15 @@ function mod_predf_op(dossier_id,od_id) function save_predf_op(obj) { + waiting_box(); var querystring=$(obj).serialize()+'&op=save_predf'; // Create a ajax request to get all the person var action = new Ajax.Request ('ajax_misc.php', { - method: 'get', + method: 'post', parameters: querystring, onFailure: null, - onSuccess: refresh_window + onSuccess: refresh_window } ); diff --git a/include/ajax_mod_predf_op.php b/include/ajax_mod_predf_op.php index 0d80eaa5e..8e1d3396a 100644 --- a/include/ajax_mod_predf_op.php +++ b/include/ajax_mod_predf_op.php @@ -32,8 +32,8 @@ echo HtmlInput::anchor_close('mod_predf_op'); echo h2info('Modification du nom'); echo ' -