Showing
3 changed files
with
8 additions
and
8 deletions
| ... | @@ -175,7 +175,7 @@ class SearchService | ... | @@ -175,7 +175,7 @@ class SearchService |
| 175 | // Split filter values out | 175 | // Split filter values out |
| 176 | $splitFilters = []; | 176 | $splitFilters = []; |
| 177 | foreach ($terms['filters'] as $filter) { | 177 | foreach ($terms['filters'] as $filter) { |
| 178 | - $explodedFilter = explode(':', $filter, 1); | 178 | + $explodedFilter = explode(':', $filter, 2); |
| 179 | $splitFilters[$explodedFilter[0]] = (count($explodedFilter) > 1) ? $explodedFilter[1] : ''; | 179 | $splitFilters[$explodedFilter[0]] = (count($explodedFilter) > 1) ? $explodedFilter[1] : ''; |
| 180 | } | 180 | } |
| 181 | $terms['filters'] = $splitFilters; | 181 | $terms['filters'] = $splitFilters; | ... | ... |
| ... | @@ -53,6 +53,10 @@ let methods = { | ... | @@ -53,6 +53,10 @@ let methods = { |
| 53 | return; | 53 | return; |
| 54 | } | 54 | } |
| 55 | this.appendTerm(typeTerm); | 55 | this.appendTerm(typeTerm); |
| 56 | + }, | ||
| 57 | + | ||
| 58 | + updateSearch() { | ||
| 59 | + window.location = '/search?term=' + encodeURIComponent(this.termString); | ||
| 56 | } | 60 | } |
| 57 | 61 | ||
| 58 | }; | 62 | }; | ... | ... |
| ... | @@ -40,6 +40,9 @@ | ... | @@ -40,6 +40,9 @@ |
| 40 | <label><input type="checkbox" v-on:change="typeChange" v-model="search.type.book" value="book"> Book</label> | 40 | <label><input type="checkbox" v-on:change="typeChange" v-model="search.type.book" value="book"> Book</label> |
| 41 | </div> | 41 | </div> |
| 42 | 42 | ||
| 43 | + | ||
| 44 | + <button type="button" class="button pos" v-on:click="updateSearch">Update Search</button> | ||
| 45 | + | ||
| 43 | </div> | 46 | </div> |
| 44 | 47 | ||
| 45 | </div> | 48 | </div> |
| ... | @@ -49,10 +52,3 @@ | ... | @@ -49,10 +52,3 @@ |
| 49 | </div> | 52 | </div> |
| 50 | 53 | ||
| 51 | @stop | 54 | @stop |
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 52 | - | ||
| 53 | -@section('scripts') | ||
| 54 | - <script> | ||
| 55 | - | ||
| 56 | - | ||
| 57 | - </script> | ||
| 58 | -@stop | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment