diff --git a/html/js/scripts.js b/html/js/scripts.js index 027e8a459..2bc7159ab 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -3479,9 +3479,12 @@ function progress_bar_check(p_idx, p_taskid) } } - +/** + * In the user's setting box, update the period list with the choosen exercice + * @param {int} p_dossier + */ function updatePeriodePreference(p_dossier) { - var exercice=$('exercice').value; + var exercice=$('exercice_setting').value; new Ajax.Updater('setting_period',"ajax_misc.php",{method:"get",parameters:{ "op":"pref_exercice","gDossier":p_dossier,"exercice":exercice}}); } \ No newline at end of file diff --git a/include/ajax/ajax_preference.php b/include/ajax/ajax_preference.php index f2d1aacde..07f62bf5e 100644 --- a/include/ajax/ajax_preference.php +++ b/include/ajax/ajax_preference.php @@ -131,7 +131,7 @@ if (isset($_REQUEST['gDossier']) && $_REQUEST['gDossier']<>0) - select("exercice",$selected_exercice,$js)->input();?> + select("exercice_setting",$selected_exercice,$js)->input();?>