aboutsummaryrefslogtreecommitdiffhomepage
path: root/js
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-16 11:52:25 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-16 11:52:25 +0200
commit139769aa245fd58d032cb009303b0ea2cc4187cd (patch)
tree5a69fec8dedb380e034b318a4fb16e0c664c2545 /js
parent643e3037e6e63befb2cec20f7986f14480d4ae4b (diff)
downloadwallabag-139769aa245fd58d032cb009303b0ea2cc4187cd.tar.gz
wallabag-139769aa245fd58d032cb009303b0ea2cc4187cd.tar.zst
wallabag-139769aa245fd58d032cb009303b0ea2cc4187cd.zip
stockage de la vue et du tri en session
Diffstat (limited to 'js')
-rw-r--r--js/poche.js8
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 @@
1function toggle_favorite(element, id, token) { 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: "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) {
9function toggle_archive(element, id, token, 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: "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
25function 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