aboutsummaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-15 14:09:58 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-15 14:09:58 +0200
commitcf3180f6b8c552bbf7214d1ba72fbf1fc90ef861 (patch)
tree86d0cad24ed4891165d720a3bb19fffe6f55c73b /js
parent358ab47957de18183aa3d3f7a62b631cd131f41f (diff)
downloadwallabag-cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861.tar.gz
wallabag-cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861.tar.zst
wallabag-cf3180f6b8c552bbf7214d1ba72fbf1fc90ef861.zip
vérificatio CSRF et mise en page
Diffstat (limited to 'js')
-rw-r--r--js/poche.js8
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 @@
1function toggle_favorite(element, id) { 1function 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
9function toggle_archive(element, id, view_article) { 9function 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