Browse Source

Suche nach Links

master
Xenia Gruenzinger 5 years ago
parent
commit
ce740b61ec
2 changed files with 7 additions and 4 deletions
  1. 3
    3
      public/routes/home.js
  2. 4
    1
      public/routes/msgCard.js

+ 3
- 3
public/routes/home.js View File

@@ -35,16 +35,16 @@ const HomeRouter = {
},
changeSubscribtion: function(){
var btnString = $("#btn-text").text();
//console.log(btnString);
console.log(btnString);

if($("#btn-text").hasClass("subscribed")){
$("#btn-text").removeClass("subscribed");
var newBtnString = "#" + $("#btn-text").text(/deabonnieren/g, '') + "abonnieren";
var newBtnString = btnString.replace(/deabonnieren/g, '') + "abonnieren";
//console.log(btnString);
$("#btn-text").text(newBtnString);
}else{
$("#btn-text").addClass("subscribed");
var newBtnString = "#" + $("#btn-text").text(/abonnieren/g, '') + "deabonnieren";
var newBtnString = btnString.replace(/abonnieren/g, '') + "deabonnieren";
//console.log(newBtnString);
$("#btn-text").text(newBtnString);


+ 4
- 1
public/routes/msgCard.js View File

@@ -68,7 +68,10 @@ Vue.component('MsgCard', {
}*/
},
filterForTag: function (tag) {
console.log("link: " + tag);
var btnString = "#" + tag + " abonnieren"
$("#btn-text").text(btnString);
$("#subscribe-btn").css("visibility", "visible");
//console.log("link: " + tag);
searching(tag);
},
isBookmarkActive: function (msgid) {

Loading…
Cancel
Save