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

utilisation de jquery pour traitement ajax

mise en page de la grille, type Masonry (méthode full css). cf ici : http://designshack.net/articles/css/masonry/
réorganisation des fichiers avec un fichier dédié pour le traitement des actions (process.php)
utilisation de pictos à la place des codes héxas
This commit is contained in:
nicosomb 2013-04-09 15:05:49 +02:00
parent 1ff2333600
commit e46efced1b
10 changed files with 96 additions and 0 deletions

16
js/poche.js Normal file
View file

@ -0,0 +1,16 @@
function toggle_favorite(element,id) {
$(element).toggleClass('fav-off');
$.ajax ({
url: "process.php?action=toggle_fav",
data:{id:id}
});
}
function toggle_archive(id) {
$('#entry-'+id).toggle();
$.ajax ({
url: "process.php?action=toggle_archive",
data:{id:id}
});
}