From b029846985b187596f24faddf61220fc1e2fe629 Mon Sep 17 00:00:00 2001 From: senta_mandutz Date: Tue, 9 Jul 2019 11:22:56 +0200 Subject: [PATCH 1/5] added tags --- mong.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mong.js b/mong.js index 2cb9c0f..9efff90 100644 --- a/mong.js +++ b/mong.js @@ -82,3 +82,8 @@ db.messages.insert( } ] ) + + db.tags.insert([{"name":"Lorem"},{"name":"fugiat"},{"name":"aliqua"},{"name":"consequat"},{"name":"mollit"},{"name":"a +et"},{"name":"consectetur"},{"name":"dolore"},{"name":"nulla"},{"name":"tempor"},{"name":"veniam"},{"name":"ipsum"},{"n +me":"adipisicing"},{"name":"qui"},{"name":"sint"},{"name":"ullamco"},{"name":"incididunt"},{"name":"nisi"},{"name":"sit +},{"name":"minim"},{"name":"labore"},{"name":"sunt"},{"name":"in"}]) From 45315d7c47152f841c9f6b983361e202f95912bf Mon Sep 17 00:00:00 2001 From: senta_mandutz Date: Tue, 9 Jul 2019 11:24:12 +0200 Subject: [PATCH 2/5] search not in mounted --- public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 226d315..4c41d82 100644 --- a/public/index.html +++ b/public/index.html @@ -279,7 +279,7 @@ }, mounted: function () { - this.search(); + //this.search(); this.list_tags(); }, }); From f4ab8813f3ad2350f6666d95b29c632bddf33ad3 Mon Sep 17 00:00:00 2001 From: Xenia Date: Tue, 9 Jul 2019 11:36:54 +0200 Subject: [PATCH 3/5] Clear-Funktion bei der Suche --- public/index.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 226d315..b77f044 100644 --- a/public/index.html +++ b/public/index.html @@ -101,6 +101,7 @@ @@ -211,8 +213,9 @@ router, el: '#api', data: function() { - return{ + return { searchtext: "", + isSearchActiv: false, selected: [], taglist: dat, }; @@ -229,6 +232,7 @@ }, methods: { search: function() { + this.isSearchActiv = true; console.log("Searchtext: " +this.searchtext.replace(/#/g,'')); $.ajax({ url: "api/msg/search/" + this.searchtext.replace(/#/g, ''), @@ -274,8 +278,16 @@ } }).fail(function (e, f, g) { console.log("err: " + e + f + g); - }); - } + }); + }, + + clear: function() { + console.log("clear"); + + this.isSearchActiv = false; + this.searchtext = ""; + listMessages(); + }, }, mounted: function () { From 8ddf59666b38f3cc4ce9545f199cb1e9ead32292 Mon Sep 17 00:00:00 2001 From: Xenia Date: Tue, 9 Jul 2019 12:37:21 +0200 Subject: [PATCH 4/5] =?UTF-8?q?link=20zu=20button=20ge=C3=A4ndert=20->=20T?= =?UTF-8?q?agsuche=20durch=20"link"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 1 - public/routes/msgCard.js | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index bd3679b..dec2949 100644 --- a/public/index.html +++ b/public/index.html @@ -101,7 +101,6 @@