aboutsummaryrefslogtreecommitdiffhomepage
path: root/js/poche.js
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-19 11:41:12 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-19 11:41:12 +0200
commita1953dff8f39b225b408c3046246e9446a01f305 (patch)
tree70b1989080f5fcf9581dc6aa208664efaeb7b02d /js/poche.js
parentc00cdfdd3bc8e53750d34c60d13cd2d885c5d4fd (diff)
downloadwallabag-a1953dff8f39b225b408c3046246e9446a01f305.tar.gz
wallabag-a1953dff8f39b225b408c3046246e9446a01f305.tar.zst
wallabag-a1953dff8f39b225b408c3046246e9446a01f305.zip
tout est recentré sur index.php0.1
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