]> git.immae.eu Git - github/wallabag/wallabag.git/blob - js/poche.js
6751920a98ce02a3883dfc55662877da402d7fd9
[github/wallabag/wallabag.git] / js / poche.js
1 function toggle_favorite(element,id) {
2 $(element).toggleClass('fav-off');
3 $.ajax ({
4 url: "process.php?action=toggle_fav",
5 data:{id:id}
6 });
7 }
8
9
10 function toggle_archive(id) {
11 $('#entry-'+id).toggle();
12 $.ajax ({
13 url: "process.php?action=toggle_archive",
14 data:{id:id}
15 });
16 }