]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - js/poche.js
1 function toggle_favorite(element
, id
) {
2 $(element
).toggleClass('fav-off');
4 url: "index.php?action=toggle_fav",
9 function toggle_archive(element
, id
, view_article
) {
10 $(element
).toggleClass('archive-off');
12 url: "index.php?action=toggle_archive",
15 var obj
= $('#entry-'+id
);
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');
25 function sort_links(view
, sort
) {
26 //$('#content').load('index.php', { view: view, sort: sort, full_head: 'no' } );
27 $.get('index.php', { view: view
, sort: sort
, full_head: 'no' }, function(data
) {
28 $('#content').html(data
);