diff --git a/apps/maarch_entreprise/js/functions.js b/apps/maarch_entreprise/js/functions.js index 8f5c870315e91d864a715a1595ea3cba1a5fcf2c..b1c83d3c75367c90b7f2b1767688b373fa8635eb 100755 --- a/apps/maarch_entreprise/js/functions.js +++ b/apps/maarch_entreprise/js/functions.js @@ -1591,24 +1591,22 @@ function action_send_form_confirm_result(path_manage_script, mode_req, id_action } } -function action_change_status(path_manage_script, mode_req, res_id_values, tablename, id_coll, status,page) +function action_change_status(path_manage_script, mode_req, res_id_values, tablename, id_coll, status, page) { - if(res_id_values != '' && (mode_req == 'mass' || mode_req == 'page') - && tablename != '' && id_coll != '') - { + if(res_id_values != '' && (mode_req == 'mass' || mode_req == 'page') && tablename != '' && id_coll != '') { $j.ajax({ cache : false, url : path_manage_script, type : 'POST', - dataType : 'json', - data: { values : res_id_values, - mode : mode_req, - req : 'change_status', - table : tablename, - coll_id : id_coll, - new_status : status, - }, + data: { + values : res_id_values, + mode : mode_req, + req : 'change_status', + table : tablename, + coll_id : id_coll, + new_status : status + }, success: function(answer) { setTimeout(function(){