diff options
Diffstat (limited to 'js/poche.js')
-rw-r--r-- | js/poche.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/poche.js b/js/poche.js new file mode 100644 index 00000000..6751920a --- /dev/null +++ b/js/poche.js | |||
@@ -0,0 +1,16 @@ | |||
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 | } | ||