Ghost/ghost/admin/app/components/gh-popover-button.js

19 lines
489 B
JavaScript
Raw Normal View History

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';
export default DropdownButton.extend({
dropdown: Ember.inject.service(),
click: Ember.K,
2014-09-29 15:17:27 +04:00
mouseEnter: function (event) {
this._super(event);
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
},
2014-09-29 15:17:27 +04:00
mouseLeave: function (event) {
this._super(event);
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
}
});