diff options
Diffstat (limited to 'js/poche.js')
-rw-r--r-- | js/poche.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/js/poche.js b/js/poche.js index 6751920a..42958e83 100644 --- a/js/poche.js +++ b/js/poche.js | |||
@@ -6,11 +6,15 @@ function toggle_favorite(element,id) { | |||
6 | }); | 6 | }); |
7 | } | 7 | } |
8 | 8 | ||
9 | |||
10 | function toggle_archive(id) { | 9 | function toggle_archive(id) { |
11 | $('#entry-'+id).toggle(); | 10 | /*$('#entry-'+id).toggle();*/ |
12 | $.ajax ({ | 11 | $.ajax ({ |
13 | url: "process.php?action=toggle_archive", | 12 | url: "process.php?action=toggle_archive", |
14 | data:{id:id} | 13 | data:{id:id} |
15 | }); | 14 | }); |
16 | } | 15 | var obj = $('#entry-'+id); |
16 | $('#content').masonry('remove',obj); | ||
17 | |||
18 | $('#content').masonry('reloadItems'); | ||
19 | $('#content').masonry('reload'); | ||
20 | } \ No newline at end of file | ||