]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-search.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / entity-search.js
index b0e42401d51b1520807cfb97d295afaf27ecd826..9d45133266d7e4095219970ecc22361d9368aa2d 100644 (file)
@@ -1,7 +1,8 @@
-import {onSelect} from "../services/dom";
-import {Component} from "./component";
+import {onSelect} from '../services/dom.ts';
+import {Component} from './component';
 
 export class EntitySearch extends Component {
+
     setup() {
         this.entityId = this.$opts.entityId;
         this.entityType = this.$opts.entityType;
@@ -30,7 +31,8 @@ export class EntitySearch extends Component {
     runSearch() {
         const term = this.searchInput.value.trim();
         if (term.length === 0) {
-            return this.clearSearch();
+            this.clearSearch();
+            return;
         }
 
         this.searchView.classList.remove('hidden');
@@ -51,4 +53,5 @@ export class EntitySearch extends Component {
         this.loadingBlock.classList.add('hidden');
         this.searchInput.value = '';
     }
-}
\ No newline at end of file
+
+}