From 28d1d6ed8afd4bc6c4e498db1af1091d149d33d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 16 Apr 2019 08:55:44 +0200 Subject: [PATCH] misc: make click on cell picture (un)fold cell (#32357) --- combo/public/static/js/combo.public.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combo/public/static/js/combo.public.js b/combo/public/static/js/combo.public.js index e7f19e94..aad1d910 100644 --- a/combo/public/static/js/combo.public.js +++ b/combo/public/static/js/combo.public.js @@ -209,7 +209,7 @@ $(function() { $(checkboxes[checkboxes.length-1]).parents('tr').next().find('td:nth-child(' + (column_index+1) + ')').addClass('clickable'); } - $('body').on('click', 'div.cell.foldable > div > h2:first-child', function() { + $('body').on('click', 'div.cell.foldable > div > h2:first-child, div.cell.foldable > div > picture', function() { $(this).parents('div.foldable').toggleClass('folded'); return false; });