From 139769aa245fd58d032cb009303b0ea2cc4187cd Mon Sep 17 00:00:00 2001 From: nicosomb Date: Tue, 16 Apr 2013 11:52:25 +0200 Subject: stockage de la vue et du tri en session --- js/poche.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'js') 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 @@ function toggle_favorite(element, id, token) { $(element).toggleClass('fav-off'); $.ajax ({ - url: "process.php?action=toggle_fav", + url: "index.php?action=toggle_fav", data:{id:id, token:token} }); } @@ -9,7 +9,7 @@ function toggle_favorite(element, id, token) { function toggle_archive(element, id, token, view_article) { $(element).toggleClass('archive-off'); $.ajax ({ - url: "process.php?action=toggle_archive", + url: "index.php?action=toggle_archive", data:{id:id, token:token} }); var obj = $('#entry-'+id); @@ -20,4 +20,8 @@ function toggle_archive(element, id, token, view_article) { $('#content').masonry('reloadItems'); $('#content').masonry('reload'); } +} + +function sort_links(sort, token) { + $('#content').load('process.php', { sort: sort, token: token } ); } \ No newline at end of file -- cgit v1.2.3