1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-27 17:28:39 +00:00

stockage de la vue et du tri en session

This commit is contained in:
nicosomb 2013-04-16 11:52:25 +02:00
parent 643e3037e6
commit 139769aa24
8 changed files with 99 additions and 88 deletions

View file

@ -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 } );
}