LT-115: Grouping sub target tools with new layout and changing data structure

This commit is contained in:
Bruno Alves de Faria committed 2017-01-04 11:20:13 -02:00
1 parent 55ca29e0cf
commit e996367ed5
7 files changed
+183 -161

No files matched your search

@@ -1,9 +1,9 @@
import { Template } from 'meteor/templating';
Template.toolbarSectionTools.events({
'click .js-open-more-tools'(event, instance) {
'click .expandable'(event, instance) {
const $target = $(event.currentTarget);
const isActive = $target.hasClass('active');
$target.toggleClass('active', !isActive);
const isExpanded = $target.hasClass('expanded');
$target.toggleClass('expanded', !isExpanded);
}
});