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

}, },
changeSubscribtion: function(){ changeSubscribtion: function(){
var btnString = $("#btn-text").text(); var btnString = $("#btn-text").text();
//console.log(btnString);
console.log(btnString);


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



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

}*/ }*/
}, },
filterForTag: function (tag) { 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); searching(tag);
}, },
isBookmarkActive: function (msgid) { isBookmarkActive: function (msgid) {

Loading…
Cancel
Save