diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-09 15:05:49 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-09 15:05:49 +0200 |
commit | e46efced1b2c19ca0f628207b70b28a30fcbc288 (patch) | |
tree | c475b5e47e13ba9196b2f5765875868b64f95172 /js/poche.js | |
parent | 1ff23336004fb0870e8329a163f6edd851417b01 (diff) | |
download | wallabag-e46efced1b2c19ca0f628207b70b28a30fcbc288.tar.gz wallabag-e46efced1b2c19ca0f628207b70b28a30fcbc288.tar.zst wallabag-e46efced1b2c19ca0f628207b70b28a30fcbc288.zip |
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
Diffstat (limited to 'js/poche.js')
-rw-r--r-- | js/poche.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/poche.js b/js/poche.js new file mode 100644 index 00000000..6751920a --- /dev/null +++ b/js/poche.js | |||
@@ -0,0 +1,16 @@ | |||
1 | function toggle_favorite(element,id) { | ||
2 | $(element).toggleClass('fav-off'); | ||
3 | $.ajax ({ | ||
4 | url: "process.php?action=toggle_fav", | ||
5 | data:{id:id} | ||
6 | }); | ||
7 | } | ||
8 | |||
9 | |||
10 | function toggle_archive(id) { | ||
11 | $('#entry-'+id).toggle(); | ||
12 | $.ajax ({ | ||
13 | url: "process.php?action=toggle_archive", | ||
14 | data:{id:id} | ||
15 | }); | ||
16 | } | ||