]>
Commit | Line | Data |
---|---|---|
e46efced | 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 | } |