diff options
Diffstat (limited to 'js/poche.js')
-rw-r--r-- | js/poche.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/poche.js b/js/poche.js index 64df553c..0dcc0a35 100644 --- a/js/poche.js +++ b/js/poche.js | |||
@@ -1,16 +1,16 @@ | |||
1 | function toggle_favorite(element, id) { | 1 | function toggle_favorite(element, id, token) { |
2 | $(element).toggleClass('fav-off'); | 2 | $(element).toggleClass('fav-off'); |
3 | $.ajax ({ | 3 | $.ajax ({ |
4 | url: "process.php?action=toggle_fav", | 4 | url: "process.php?action=toggle_fav", |
5 | data:{id:id} | 5 | data:{id:id, token:token} |
6 | }); | 6 | }); |
7 | } | 7 | } |
8 | 8 | ||
9 | function toggle_archive(element, id, view_article) { | 9 | function toggle_archive(element, id, token, view_article) { |
10 | $(element).toggleClass('archive-off'); | 10 | $(element).toggleClass('archive-off'); |
11 | $.ajax ({ | 11 | $.ajax ({ |
12 | url: "process.php?action=toggle_archive", | 12 | url: "process.php?action=toggle_archive", |
13 | data:{id:id} | 13 | data:{id:id, token:token} |
14 | }); | 14 | }); |
15 | var obj = $('#entry-'+id); | 15 | var obj = $('#entry-'+id); |
16 | 16 | ||