2014-09-29 06:17:27 -05:00
|
|
|
import DropdownButton from 'ghost/components/gh-dropdown-button';
|
|
|
|
|
|
|
|
var PopoverButton = DropdownButton.extend({
|
|
|
|
click: Ember.K, // We don't want clicks on popovers, but dropdowns have them. So `K`ill them here.
|
2014-10-24 16:09:50 -05:00
|
|
|
|
2014-09-29 06:17:27 -05:00
|
|
|
mouseEnter: function (event) {
|
|
|
|
this._super(event);
|
|
|
|
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
|
|
|
|
},
|
2014-10-24 16:09:50 -05:00
|
|
|
|
2014-09-29 06:17:27 -05:00
|
|
|
mouseLeave: function (event) {
|
|
|
|
this._super(event);
|
|
|
|
this.get('dropdown').toggleDropdown(this.get('popoverName'), this);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-10-24 16:09:50 -05:00
|
|
|
export default PopoverButton;
|