ajout condition isAjaxRequest