]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/popup.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / popup.js
index 34ab7c1818e94a40d83baae14aedd0d2943a2f68..6bd8f9c722b7044b9ae9ab5cd73867e8383a5434 100644 (file)
@@ -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) {