X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e711290d8b1ce06b38e0560248806e8de2077870..refs/pull/5676/head:/resources/js/components/popup.js diff --git a/resources/js/components/popup.js b/resources/js/components/popup.js index 34ab7c181..6bd8f9c72 100644 --- a/resources/js/components/popup.js +++ b/resources/js/components/popup.js @@ -1,5 +1,5 @@ -import {fadeIn, fadeOut} from '../services/animations'; -import {onSelect} from '../services/dom'; +import {fadeIn, fadeOut} from '../services/animations.ts'; +import {onSelect} from '../services/dom.ts'; import {Component} from './component'; /** @@ -26,11 +26,11 @@ export class Popup extends Component { this.container.addEventListener('click', event => { if (event.target === this.container && lastMouseDownTarget === this.container) { - return this.hide(); + this.hide(); } }); - onSelect(this.hideButtons, e => this.hide()); + onSelect(this.hideButtons, () => this.hide()); } hide(onComplete = null) {