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");