typographie
This commit is contained in:
@@ -8,9 +8,7 @@
|
||||
$this = $(this);
|
||||
if ( $this.is('#ressource') || $this.is('#publication') ) {
|
||||
e.preventDefault();
|
||||
|
||||
var $url = $this.attr("href");
|
||||
|
||||
if ($( ".side_notes" )[0]) {
|
||||
$( ".side_notes" ).remove();
|
||||
}
|
||||
@@ -22,10 +20,10 @@
|
||||
|
||||
function content_type($url, $this) {
|
||||
if ($this.is('#ressource')) {
|
||||
$("<div class='side_notes'><a href="+$url+"></a> </div>").insertAfter("article");
|
||||
$("<div class='side_notes'><a href="+$url+"></a> </div>").insertAfter(".__wrap_side article");
|
||||
}else if ( $this.is('#publication') ) {
|
||||
console.log('clcik');
|
||||
$("<div class='side_notes'></>").insertAfter("article");
|
||||
$("<div class='side_notes'></>").insertAfter(".__wrap_side article");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,9 +35,9 @@
|
||||
async: true,
|
||||
success: function(data) {
|
||||
if ($this.is('#ressource')) {
|
||||
$(data).find('article > div:not(.__wrap_side) .__wrapper').appendTo('.side_notes a');
|
||||
$(data).find('article.publications .__wrapper').appendTo('.side_notes a');
|
||||
}else if ($this.is('#publication')) {
|
||||
$(data).find('article > div:not(.__wrap_side) .__wrapper').appendTo('.side_notes');
|
||||
$(data).find('article.publications .__wrapper').appendTo('.side_notes');
|
||||
}
|
||||
position_link($this);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user