Compare commits

..

No commits in common. "ab358abe986e2d291a689ac791492a8724b6b4b3" and "8c0d3dc669bc52ca1eec85bb93f201a8f2105cfd" have entirely different histories.

2 changed files with 20 additions and 44 deletions

View File

@ -99,18 +99,20 @@
<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()">
<b-field>
<b-taginput
id="search-text"
<b-input
type="search"
v-model="selected"
:data=taglist
autocomplete
allow-new:true
v-model="searchtext"
icon="magnify"
placeholder="suche.."
@typing="getFilteredTags"
@input="saveTagsToArray">
</b-taginput>
placeholder="Suche...">
</b-input>
<!--<b-autocomplete
v-model="name"
:data="filteredTagArray"
type="search"
icon="magnify"
placeholder="Suche..."
@blur="evaluate">
</b-autocomplete>-->
</b-field>
</form>
</div>
@ -167,12 +169,6 @@
</div>
<script>
var tagArray = [];
const data=[
'th',
'efi',
'wichtig',
];
const routes = [
{ path: "/", component: HomeRouter },
@ -191,8 +187,6 @@
data: function() {
return{
searchtext: "ipsum",
selected: [],
taglist: data,
};
},
methods: {
@ -214,27 +208,7 @@
}).fail(function(e, f, g) {
console.log("searching: err: " + e + f + g);
})
},
getFilteredTags(text) {
this.taglist = data.filter((option) => {
return option
.toString()
.toLowerCase()
.indexOf(text.toLowerCase()) >= 0
})
},
saveTagsToArray: function() {
tagArray = this.selected;
console.info(tagArray);
},
function get_insert_tag(id){
$.ajax({ url: "api/tag/"+id, method: "GET" }).done(function (tag) {
data.push("#"+tag.name);
console.log("it worked!");
}).fail(function (e, f, g) {
console.log("cannot load " + id + ".json: " + e + f + g);
})
},
}
},
mounted: function () {
//this.search();

View File

@ -1,8 +1,8 @@
var tagArray = [];
const data=[
'th',
'efi',
'wichtig',
'#th',
'#efi',
'#wichtig',
];
const CreateMsgRouter = {
template: `
@ -38,6 +38,8 @@ const CreateMsgRouter = {
<b-button @click="$router.go(-1)">ABBRECHEN</b-button>
<b-button type="is-primary" @click="createMsg">SENDEN</b-button>
</div>
`,
data: function () {