diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-08-20 15:54:50 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-08-20 15:59:00 +0200 |
commit | 8ae6abe603571839b74f3106ba53922a849d1125 (patch) | |
tree | d0ad47dffe81e10adde8752478c6ad8bca440b03 /client/components/mixins | |
parent | a79599d76c808520d36aa7c19e366906cb89982c (diff) | |
download | wekan-8ae6abe603571839b74f3106ba53922a849d1125.tar.gz wekan-8ae6abe603571839b74f3106ba53922a849d1125.tar.bz2 wekan-8ae6abe603571839b74f3106ba53922a849d1125.zip |
Switch the font to roboto
Diffstat (limited to 'client/components/mixins')
-rw-r--r-- | client/components/mixins/perfectScrollbar.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/client/components/mixins/perfectScrollbar.js b/client/components/mixins/perfectScrollbar.js index 06e8aedd..510a4563 100644 --- a/client/components/mixins/perfectScrollbar.js +++ b/client/components/mixins/perfectScrollbar.js @@ -1,6 +1,14 @@ Mixins.PerfectScrollbar = BlazeComponent.extendComponent({ onRendered: function() { var component = this.mixinParent(); - Ps.initialize(component.find('.js-perfect-scrollbar')); + var domElement = component.find('.js-perfect-scrollbar'); + Ps.initialize(domElement); + + // XXX We should create an event map to be consistent with other components + // but since BlazeComponent doesn't merge Mixins events transparently I + // prefered to use a jQuery event (which is what an event map ends up doing) + component.$(domElement).on('mouseenter', function() { + Ps.update(domElement); + }); } }); |