From 21c434dc94ca16cf703f823573595bd8f9ed8f8f Mon Sep 17 00:00:00 2001 From: Rafael Martins Date: Wed, 28 Dec 2011 00:23:18 -0200 Subject: [PATCH] Fix for the expand-boxes not closing correctly --- public/javascripts/catalog.js | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/public/javascripts/catalog.js b/public/javascripts/catalog.js index 895e2df..8b3f23a 100644 --- a/public/javascripts/catalog.js +++ b/public/javascripts/catalog.js @@ -1,6 +1,7 @@ (function($) { $('#product-list .product .expand-box').live('click', function () { + $('.expand-box').each(function(index, element){ this.clicked = false; click(this); }); this.clicked = !this.clicked; toggle_expandbox(this); $.each($(this).siblings('.expand-box'), function(index, value) { value.clicked = false; toggle_expandbox(value); }); -- libgit2 0.21.2