summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-04-16 06:55:44 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-04-16 09:32:39 (GMT)
commit28d1d6ed8afd4bc6c4e498db1af1091d149d33d8 (patch)
tree1b0b80787281c9ff9790b0656d03bbd178e13b40
parent0082f407165f3ff1a59b7276e9af51c2a97eaabd (diff)
downloadcombo-28d1d6ed8afd4bc6c4e498db1af1091d149d33d8.zip
combo-28d1d6ed8afd4bc6c4e498db1af1091d149d33d8.tar.gz
combo-28d1d6ed8afd4bc6c4e498db1af1091d149d33d8.tar.bz2
misc: make click on cell picture (un)fold cell (#32357)
-rw-r--r--combo/public/static/js/combo.public.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/combo/public/static/js/combo.public.js b/combo/public/static/js/combo.public.js
index e7f19e9..aad1d91 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;
});