]> git.immae.eu Git - github/wallabag/wallabag.git/blame - js/poche.js
utilisation de jquery pour traitement ajax
[github/wallabag/wallabag.git] / js / poche.js
CommitLineData
e46efced 1function 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
10function toggle_archive(id) {
11 $('#entry-'+id).toggle();
12 $.ajax ({
13 url: "process.php?action=toggle_archive",
14 data:{id:id}
15 });
16}