Browse Source

search repaired

master
Senta Mandutz 5 years ago
parent
commit
3478901450
1 changed files with 15 additions and 8 deletions
  1. 15
    8
      public/index.html

+ 15
- 8
public/index.html View File

@@ -97,9 +97,15 @@
<div class="om-header-container">
<div class="om-header">
<a class="logo-img" href="index.html"><img src="img/app_icon.png" width=45px height=45px></a>
<form class="om-searchbar" @submit.prevent="search">
<form class="om-searchbar" @submit.prevent="search()">
<b-field>
<b-taginput
<b-input
type="search"
v-model="searchtext"
icon="magnify"
placeholder="Suche...">
</b-input>
<!--<b-taginput
id="search-text"
type="search"
v-model="selected"
@@ -107,10 +113,10 @@
autocomplete
allow-new:true
icon="magnify"
placeholder="suche.."
placeholder="Suche.."
@typing="getFilteredTags"
@input="saveTagsToArray">
</b-taginput>
</b-taginput>-->
</b-field>
</form>
</div>
@@ -167,7 +173,7 @@
</div>

<script>
var tagArray = [];
var tagArray = ["lorem"];
const dat=[
'th',
'efi',
@@ -192,12 +198,12 @@
return{
searchtext: "ipsum",
selected: [],
taglist: data,
taglist: dat,
};
},
methods: {
search: function() {
console.log("Searchtext: " +this.searchtext);
console.log("Searchtext: " +this.searchtext + tagArray);
$.ajax({
url: "api/msg/search/" + this.searchtext,
method: "GET"
@@ -222,6 +228,7 @@
.toLowerCase()
.indexOf(text.toLowerCase()) >= 0
})
this.search();
},
saveTagsToArray: function() {
tagArray = this.selected;
@@ -246,7 +253,7 @@

},
mounted: function () {
//this.search();
this.search();
this.list_tags();
},
});

Loading…
Cancel
Save