From 6368cf17ef3062d05f8dbc56660af95b7df84e3a Mon Sep 17 00:00:00 2001 From: Tessier Date: Fri, 16 Oct 2020 11:45:59 +0200 Subject: [PATCH] fix ajax --- web/themes/custom/popsu_colloque/js/script.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/web/themes/custom/popsu_colloque/js/script.js b/web/themes/custom/popsu_colloque/js/script.js index 717dd597..8624c97b 100644 --- a/web/themes/custom/popsu_colloque/js/script.js +++ b/web/themes/custom/popsu_colloque/js/script.js @@ -53,15 +53,13 @@ function content_type($url, $this) { if ($this.is('#ressource')) { - $("
").insertAfter(".__wrap_side article"); + $("
").insertAfter(".__wrap_side .notes"); } else if ( $this.is('#bibliographie') ) { - $("
").insertAfter(".__wrap_side article"); + $("
").insertAfter(".__wrap_side .notes"); } } function ajax($url , $this) { - console.log('$url',$url); - console.log('$this',$this); $.ajax({ url: $url + '#publicationAjax', method: "GET", @@ -71,8 +69,7 @@ if ($this.is('#ressource')) { var hero = 'article .__wrapper .__hero'; var head = 'article .__wrapper .__head'; - console.log('data', $(data).find(hero)); - + $(data).find(hero +','+ head).appendTo('.side_notes > div a').hide().fadeIn(200); $("
").appendTo(".side_notes > div");