LT-115: Grouping sub target tools with new layout and changing data structure
This commit is contained in:
1 parent
55ca29e0cf
commit
e996367ed5
7 files changed
+183
-161
No files matched your search
+3
-3
@@ -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);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user