]>
Commit | Line | Data |
---|---|---|
1 | function toggle_favorite(element, id, token) { | |
2 | $(element).toggleClass('fav-off'); | |
3 | $.ajax ({ | |
4 | url: "index.php?action=toggle_fav", | |
5 | data:{id:id, token:token} | |
6 | }); | |
7 | } | |
8 | ||
9 | function toggle_archive(element, id, token, view_article) { | |
10 | $(element).toggleClass('archive-off'); | |
11 | $.ajax ({ | |
12 | url: "index.php?action=toggle_archive", | |
13 | data:{id:id, token:token} | |
14 | }); | |
15 | var obj = $('#entry-'+id); | |
16 | ||
17 | // on vient de la vue de l'article, donc pas de gestion de grille | |
18 | if (view_article != 1) { | |
19 | $('#content').masonry('remove',obj); | |
20 | $('#content').masonry('reloadItems'); | |
21 | $('#content').masonry('reload'); | |
22 | } | |
23 | } | |
24 | ||
25 | function sort_links(sort, token) { | |
26 | $('#content').load('process.php', { sort: sort, token: token } ); | |
27 | } |