From b70971e06b67786bb61e863cf89b3b061b4f6467 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Fri, 12 Apr 2013 11:33:34 +0200 Subject: corrections mise en page avec utilisation de jquery.masonry.js --- js/poche.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'js/poche.js') 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) { }); } - function toggle_archive(id) { - $('#entry-'+id).toggle(); + /*$('#entry-'+id).toggle();*/ $.ajax ({ url: "process.php?action=toggle_archive", data:{id:id} }); -} + var obj = $('#entry-'+id); + $('#content').masonry('remove',obj); + + $('#content').masonry('reloadItems'); + $('#content').masonry('reload'); +} \ No newline at end of file -- cgit v1.2.3