From a1953dff8f39b225b408c3046246e9446a01f305 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Fri, 19 Apr 2013 11:41:12 +0200 Subject: =?UTF-8?q?tout=20est=20recentr=C3=A9=20sur=20index.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/poche.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'js') 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 @@ -function toggle_favorite(element, id, token) { +function toggle_favorite(element, id) { $(element).toggleClass('fav-off'); $.ajax ({ url: "index.php?action=toggle_fav", - data:{id:id, token:token} + data:{id:id} }); } -function toggle_archive(element, id, token, view_article) { +function toggle_archive(element, id, view_article) { $(element).toggleClass('archive-off'); $.ajax ({ url: "index.php?action=toggle_archive", - data:{id:id, token:token} + data:{id:id} }); var obj = $('#entry-'+id); @@ -22,6 +22,9 @@ function toggle_archive(element, id, token, view_article) { } } -function sort_links(view, sort, token) { - $('#content').load('process.php', { view: view, sort: sort, token: token } ); +function sort_links(view, sort) { + //$('#content').load('index.php', { view: view, sort: sort, full_head: 'no' } ); + $.get('index.php', { view: view, sort: sort, full_head: 'no' }, function(data) { + $('#content').html(data); + }); } \ No newline at end of file -- cgit v1.2.3