diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/poche.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/js/poche.js b/js/poche.js index 0dcc0a35..f0e39b38 100644 --- a/js/poche.js +++ b/js/poche.js | |||
@@ -1,7 +1,7 @@ | |||
1 | function toggle_favorite(element, id, token) { | 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: "index.php?action=toggle_fav", |
5 | data:{id:id, token:token} | 5 | data:{id:id, token:token} |
6 | }); | 6 | }); |
7 | } | 7 | } |
@@ -9,7 +9,7 @@ function toggle_favorite(element, id, token) { | |||
9 | function toggle_archive(element, id, token, 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: "index.php?action=toggle_archive", |
13 | data:{id:id, token:token} | 13 | data:{id:id, token:token} |
14 | }); | 14 | }); |
15 | var obj = $('#entry-'+id); | 15 | var obj = $('#entry-'+id); |
@@ -20,4 +20,8 @@ function toggle_archive(element, id, token, view_article) { | |||
20 | $('#content').masonry('reloadItems'); | 20 | $('#content').masonry('reloadItems'); |
21 | $('#content').masonry('reload'); | 21 | $('#content').masonry('reload'); |
22 | } | 22 | } |
23 | } | ||
24 | |||
25 | function sort_links(sort, token) { | ||
26 | $('#content').load('process.php', { sort: sort, token: token } ); | ||
23 | } \ No newline at end of file | 27 | } \ No newline at end of file |