mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
78643344e4
Closes #2418, #2714 Ref #2446, #2565 - Added and injected `popover` service to globally control popovers - Added `gh-popover-button` component - Added `popover-mixin` for popover and popover-buttons to mixin - Added body-event-listener mixin for popover service to watch for body clicks with - Post settings and post save button both now use `gh-popover` - Added hacks to `ember-hacks.css` to make popovers work until ghost-ui consolidates functionality
11 lines
268 B
JavaScript
11 lines
268 B
JavaScript
/*
|
|
Popovers and their buttons are evented and do not propagate clicks.
|
|
*/
|
|
var PopoverMixin = Ember.Mixin.create(Ember.Evented, {
|
|
click: function (event) {
|
|
this._super(event);
|
|
return event.stopPropagation();
|
|
}
|
|
});
|
|
|
|
export default PopoverMixin; |