From 6529b1d9376f44e5eaa8cd27a5ac97503332c318 Mon Sep 17 00:00:00 2001 From: Xenia Date: Tue, 23 Jul 2019 17:34:57 +0200 Subject: [PATCH] verschiedenes --- public/routes/home.js | 25 ++++++++++++++++++++++--- public/routes/initGlobals.js | 2 +- public/search.js | 23 ++++++++++++++++++----- public/style/style.css | 9 ++++++--- public/style/style.less | 8 ++++++++ 5 files changed, 55 insertions(+), 12 deletions(-) diff --git a/public/routes/home.js b/public/routes/home.js index e8f3a67..58ba537 100644 --- a/public/routes/home.js +++ b/public/routes/home.js @@ -2,8 +2,8 @@ const HomeRouter = { template: `
- < zurück zu allen Einträgen - + < zurück zu allen Einträgen +
-1){ + var btnString = "#" + searchtext.replace(/#/g, '') + " abonnieren"; + $("#btn-text").text(btnString); + $("#subscribe-btn").css("visibility", "visible"); + }else{ + $("#subscribe-btn").css("visibility", "hidden"); + } + + $.ajax({ url: "api/msg/search/" + searchtext.replace(/#/g, ''), method: "GET" @@ -112,8 +127,6 @@ function searching(searchtext) { console.log("searching: err: " + e + f + g); }) - _isSubscripeButtonActiv = (_taglist.indexOf(searchtext.replace(/#/g, '')) > -1); - console.log("isSubscripeButtonActiv: " + _isSubscripeButtonActiv); } function messages() { diff --git a/public/style/style.css b/public/style/style.css index f646ef7..16e5fff 100644 --- a/public/style/style.css +++ b/public/style/style.css @@ -241,7 +241,10 @@ button.clearButton { float: right; } } - -.subscribe-btn{ - float:right; +#subscribe-btn { + float: right; + visibility: hidden; +} +#escape-search-link { + visibility: hidden; } diff --git a/public/style/style.less b/public/style/style.less index 5420cff..404487d 100644 --- a/public/style/style.less +++ b/public/style/style.less @@ -284,3 +284,11 @@ button.clearButton{ float: right; } } + +#subscribe-btn{ + float: right; + visibility: hidden; +} +#escape-search-link{ + visibility: hidden; +}