]> git.immae.eu Git - github/wallabag/wallabag.git/blame - js/poche.js
suppression ancien fichier
[github/wallabag/wallabag.git] / js / poche.js
CommitLineData
c8bbe19b 1function toggle_favorite(element, id) {
e46efced 2 $(element).toggleClass('fav-off');
3 $.ajax ({
4 url: "process.php?action=toggle_fav",
5 data:{id:id}
6 });
7}
8
c8bbe19b 9function toggle_archive(element, id, view_article) {
10 $(element).toggleClass('archive-off');
e46efced 11 $.ajax ({
12 url: "process.php?action=toggle_archive",
13 data:{id:id}
14 });
b70971e0 15 var obj = $('#entry-'+id);
b70971e0 16
c8bbe19b 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 }
b70971e0 23}