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:
parent
c00cdfdd3b
commit
a1953dff8f
11 changed files with 123 additions and 134 deletions
15
js/poche.js
15
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);
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue