]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/pages/book-show.js
Fixed book js not working
[bookstack] / resources / assets / js / pages / book-show.js
index 7388cced1b6e28181672f0d904418d92e44d5e5d..45159ad0297f18aa78750fc5748ad88e6349331b 100644 (file)
@@ -13,7 +13,7 @@ module.exports = {
             if (term.length == 0) return;
             this.searching = true;
             this.searchResults = '';
-            var searchUrl = this.$$.form.getAttribute('action');
+            var searchUrl = this.$els.form.getAttribute('action');
             searchUrl += '?term=' + encodeURIComponent(term);
             this.$http.get(searchUrl, function (data) {
                 this.$set('searchResults', data);