js: listen on the label (#49185)

This commit is contained in:
Emmanuel Cazenave 2021-02-02 14:49:27 +01:00
parent 37ad37270d
commit 216e53061a
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
(function () {
$(function () { /* foldable sections */
$('div#div_id_extra_senders.foldable').on('click', function() {
$(this).children('div.selector').toggleClass('folded');
$('div#div_id_extra_senders.foldable label').on('click', function() {
$(this).parent().children('div.selector').toggleClass('folded');
});
});
})();