Allow for successive growing of "unread_articles".
Move helper function adjacent to method which uses it.
This commit is contained in:
parent
124f6ac7ad
commit
ef96c04946
2 changed files with 37 additions and 41 deletions
|
@ -8,15 +8,6 @@ function debug(obj) {
|
|||
alert(obj)
|
||||
}
|
||||
|
||||
function toggleFeed(feedid) {
|
||||
var e = document.getElementById("feed" + feedid.toString());
|
||||
if (e.style.display == "none") {
|
||||
e.style.display = "";
|
||||
} else {
|
||||
e.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function $(obj) {
|
||||
if(typeof obj == "string") return document.querySelector(obj);
|
||||
else return obj;
|
||||
|
|
Reference in a new issue