2015-02-12 21:22:32 -07:00
|
|
|
import Ember from 'ember';
|
2014-09-29 12:17:27 +01:00
|
|
|
import DropdownButton from 'ghost/components/gh-dropdown-button';
|
|
|
|
|
2015-05-25 21:10:50 -05:00
|
|
|
export default DropdownButton.extend({
|
|
|
|
dropdown: Ember.inject.service(),
|
|
|
|
|
|
|
|
click: Ember.K,
|
2014-10-24 21:09:50 +00:00
|
|
|
|
2014-09-29 12:17:27 +01:00
|
|
|
mouseEnter: function (event) {
|
|
|
|
this._super(event);
|
|
|
|
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
|
|
|
|
},
|
2014-10-24 21:09:50 +00:00
|
|
|
|
2014-09-29 12:17:27 +01:00
|
|
|
mouseLeave: function (event) {
|
|
|
|
this._super(event);
|
|
|
|
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
|
|
|
|
}
|
|
|
|
});
|