public: add a generic togglable event to combo.public.js

This commit is contained in:
Frédéric Péters 2015-06-06 19:25:14 +02:00
parent dfac40936e
commit 50a8619721
1 changed files with 5 additions and 0 deletions

View File

@ -21,4 +21,9 @@ $(function() {
var $elem = $(elem);
combo_load_cell($elem, $elem.parents('div.cell').data('ajax-cell-url'));
});
/* utility functions and events, for themes */
$('.togglable').on('click', function() {
$(this).toggleClass('toggled');
});
});