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