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
-
#IPSUM ABONNIEREN
+
< 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;
+}