2017-01-04 11:18:01 +01:00
|
|
|
import { Template } from 'meteor/templating';
|
|
|
|
|
|
2016-07-22 18:23:36 +02:00
|
|
|
Template.toolbarSectionTools.events({
|
2017-01-04 14:20:13 +01:00
|
|
|
'click .expandable'(event, instance) {
|
2016-07-22 18:23:36 +02:00
|
|
|
const $target = $(event.currentTarget);
|
2017-01-04 14:20:13 +01:00
|
|
|
const isExpanded = $target.hasClass('expanded');
|
|
|
|
|
$target.toggleClass('expanded', !isExpanded);
|
2016-07-22 18:23:36 +02:00
|
|
|
}
|
|
|
|
|
});
|