remove tor buttons when card empty

This commit is contained in:
Amolith 2019-03-21 17:18:51 -04:00
parent c51e45072a
commit e99fdc1fa0
Signed by: Amolith
GPG Key ID: 51FD40936DB0065B
1 changed files with 5 additions and 1 deletions

6
app.js
View File

@ -93,7 +93,11 @@ $(function(){
var $tor = $("<a>").attr("href", tor);
$a.append($button);
$tor.append($icon);
$card.append($h1).append($desc).append($a).append($tor);
if (tor == "#") {
$card.append($h1).append($desc).append($a);
} else {
$card.append($h1).append($desc).append($a).append($tor);
}
this.container.append($card);
},
clean_cards: function() {