return null if no objects with property exist

This commit is contained in:
Collin M. Barrett 2016-12-16 16:28:46 -06:00
parent 255133746d
commit b7ad18b4a3
9 changed files with 9 additions and 9 deletions

View file

@ -5,7 +5,7 @@ function GenerateHtmlAddLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"abp:subscribe?location=" + url + "&title=" + listName + "\" title=\"Subscribe to " + listName + " in your content blocker.\" class=\"button\">Add</a>";
return html;
} else {

View file

@ -5,7 +5,7 @@ function GenerateHtmlChangelogLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"" + listName + " Changelog\" class=\"button\">Changelog</a>";
return html;
} else {

View file

@ -5,7 +5,7 @@ function GenerateHtmlDonateLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"Donate to support the maintainers of " + listName + ".\" class=\"button\">Donate</a>";
return html;
} else {

View file

@ -5,7 +5,7 @@ function GenerateHtmlEmailLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"mailto:" + url + "\" title=\"Contribute to " + listName + " via email.\" class=\"button\">Email</a>";
return html;
} else {

View file

@ -5,7 +5,7 @@ function GenerateHtmlForumLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"" + listName + " Forum\" class=\"button\">Forum</a>";
return html;
} else {

View file

@ -5,7 +5,7 @@ function GenerateHtmlGuideLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"" + listName + " Guide\" class=\"button\">Guide</a>";
return html;
} else {

View file

@ -5,7 +5,7 @@ function GenerateHtmlHomeLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"" + listName + " Home Page\" class=\"button\">Home</a>";
return html;
} else {

View file

@ -5,7 +5,7 @@ function GenerateHtmlIssuesLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"" + listName + " GitHub Issues\" class=\"button\">Issues</a>";
return html;
} else {

View file

@ -5,7 +5,7 @@ function GenerateHtmlViewLink(url, listName) {
}
return url;
} else {
if (url) {
if (url && url != "#N/A") {
var html = "<a href=\"" + url + "\" title=\"Preview " + listName + " in your browser.\" class=\"button\">View</a>";
return html;
} else {