LT-115: Changing the 'more tools' layout and behavior
This commit is contained in:
1 parent
6be83653f8
commit
55ca29e0cf
9 files changed
+84
-65
No files matched your search
+2
-1
@@ -1,8 +1,9 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
|
||||
Template.toolbarSectionTools.events({
|
||||
'click .js-open-more-tools'(event, instance) {
|
||||
const $target = $(event.currentTarget);
|
||||
const isActive = $target.hasClass('active');
|
||||
$target.toggleClass('active', !isActive);
|
||||
$target.closest('.toolbarSection').toggleClass('expanded', !isActive);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user