aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/poche.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/poche.js')
-rw-r--r--js/poche.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/js/poche.js b/js/poche.js
index 98fc48ea..6bc3c188 100644
--- a/js/poche.js
+++ b/js/poche.js
@@ -1,16 +1,16 @@
1function toggle_favorite(element, id, token) { 1function toggle_favorite(element, id) {
2 $(element).toggleClass('fav-off'); 2 $(element).toggleClass('fav-off');
3 $.ajax ({ 3 $.ajax ({
4 url: "index.php?action=toggle_fav", 4 url: "index.php?action=toggle_fav",
5 data:{id:id, token:token} 5 data:{id:id}
6 }); 6 });
7} 7}
8 8
9function toggle_archive(element, id, token, view_article) { 9function toggle_archive(element, id, view_article) {
10 $(element).toggleClass('archive-off'); 10 $(element).toggleClass('archive-off');
11 $.ajax ({ 11 $.ajax ({
12 url: "index.php?action=toggle_archive", 12 url: "index.php?action=toggle_archive",
13 data:{id:id, token:token} 13 data:{id:id}
14 }); 14 });
15 var obj = $('#entry-'+id); 15 var obj = $('#entry-'+id);
16 16
@@ -22,6 +22,9 @@ function toggle_archive(element, id, token, view_article) {
22 } 22 }
23} 23}
24 24
25function sort_links(view, sort, token) { 25function sort_links(view, sort) {
26 $('#content').load('process.php', { view: view, sort: sort, token: token } ); 26 //$('#content').load('index.php', { view: view, sort: sort, full_head: 'no' } );
27 $.get('index.php', { view: view, sort: sort, full_head: 'no' }, function(data) {
28 $('#content').html(data);
29 });
27} \ No newline at end of file 30} \ No newline at end of file