This commit is contained in:
Tessier
2020-10-16 11:45:59 +02:00
parent 196f8058a8
commit 6368cf17ef
@@ -53,15 +53,13 @@
function content_type($url, $this) { function content_type($url, $this) {
if ($this.is('#ressource')) { if ($this.is('#ressource')) {
$("<div class='side_notes'><div class='wrap'><a href="+$url+"></a></div> </div>").insertAfter(".__wrap_side article"); $("<div class='side_notes'><div class='wrap'><a href="+$url+"></a></div> </div>").insertAfter(".__wrap_side .notes");
} else if ( $this.is('#bibliographie') ) { } else if ( $this.is('#bibliographie') ) {
$("<div class='side_notes'><div class='wrap'></div></>").insertAfter(".__wrap_side article"); $("<div class='side_notes'><div class='wrap'></div></>").insertAfter(".__wrap_side .notes");
} }
} }
function ajax($url , $this) { function ajax($url , $this) {
console.log('$url',$url);
console.log('$this',$this);
$.ajax({ $.ajax({
url: $url + '#publicationAjax', url: $url + '#publicationAjax',
method: "GET", method: "GET",
@@ -71,7 +69,6 @@
if ($this.is('#ressource')) { if ($this.is('#ressource')) {
var hero = 'article .__wrapper .__hero'; var hero = 'article .__wrapper .__hero';
var head = 'article .__wrapper .__head'; var head = 'article .__wrapper .__head';
console.log('data', $(data).find(hero));
$(data).find(hero +','+ head).appendTo('.side_notes > div a').hide().fadeIn(200); $(data).find(hero +','+ head).appendTo('.side_notes > div a').hide().fadeIn(200);
$("<div class='close'></div>").appendTo(".side_notes > div"); $("<div class='close'></div>").appendTo(".side_notes > div");