1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

some (very minor) code cleanup in feeds class

This commit is contained in:
Andrew Dolgov
2017-12-04 10:39:50 +03:00
parent 003a7447c3
commit 8f92a67e6f
2 changed files with 8 additions and 32 deletions

View File

@@ -423,11 +423,9 @@ function toggleMark(id, client_only) {
if (!row.hasClassName("marked")) {
img.src = img.src.replace("mark_unset", "mark_set");
img.alt = __("Unstar article");
query = query + "&mark=1";
} else {
img.src = img.src.replace("mark_set", "mark_unset");
img.alt = __("Star article");
query = query + "&mark=0";
}
}
@@ -477,11 +475,9 @@ function togglePub(id, client_only, no_effects, note) {
if (!row.hasClassName("published") || note != undefined) {
img.src = img.src.replace("pub_unset", "pub_set");
img.alt = __("Unpublish article");
query = query + "&pub=1";
} else {
img.src = img.src.replace("pub_set", "pub_unset");
img.alt = __("Publish article");
query = query + "&pub=0";
}
}