mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-26 18:21:02 +00:00
vérificatio CSRF et mise en page
This commit is contained in:
parent
358ab47957
commit
cf3180f6b8
9 changed files with 125 additions and 50 deletions
|
@ -1,16 +1,16 @@
|
|||
function toggle_favorite(element, id) {
|
||||
function toggle_favorite(element, id, token) {
|
||||
$(element).toggleClass('fav-off');
|
||||
$.ajax ({
|
||||
url: "process.php?action=toggle_fav",
|
||||
data:{id:id}
|
||||
data:{id:id, token:token}
|
||||
});
|
||||
}
|
||||
|
||||
function toggle_archive(element, id, view_article) {
|
||||
function toggle_archive(element, id, token, view_article) {
|
||||
$(element).toggleClass('archive-off');
|
||||
$.ajax ({
|
||||
url: "process.php?action=toggle_archive",
|
||||
data:{id:id}
|
||||
data:{id:id, token:token}
|
||||
});
|
||||
var obj = $('#entry-'+id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue