1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

tout est recentré sur index.php

This commit is contained in:
nicosomb 2013-04-19 11:41:12 +02:00
parent c00cdfdd3b
commit a1953dff8f
11 changed files with 123 additions and 134 deletions

View file

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