Commit 21c434dc94ca16cf703f823573595bd8f9ed8f8f
1 parent
cc98da8e
Exists in
master
and in
29 other branches
Fix for the expand-boxes not closing correctly
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
public/javascripts/catalog.js
1 | (function($) { | 1 | (function($) { |
2 | 2 | ||
3 | $('#product-list .product .expand-box').live('click', function () { | 3 | $('#product-list .product .expand-box').live('click', function () { |
4 | + $('.expand-box').each(function(index, element){ this.clicked = false; click(this); }); | ||
4 | this.clicked = !this.clicked; | 5 | this.clicked = !this.clicked; |
5 | toggle_expandbox(this); | 6 | toggle_expandbox(this); |
6 | $.each($(this).siblings('.expand-box'), function(index, value) { value.clicked = false; toggle_expandbox(value); }); | 7 | $.each($(this).siblings('.expand-box'), function(index, value) { value.clicked = false; toggle_expandbox(value); }); |