Archived
1
0
This commit is contained in:
Jeff Becker 2017-09-30 16:55:22 -04:00
parent 54fde6ae2e
commit b3d65dc5b9
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -372,9 +372,6 @@ onready(function() {
}; };
// inject posthide into page // inject posthide into page
var posts = document.getElementsByClassName("post");
for (var idx = 0 ; idx < posts.length; idx++ ) {
var inject = function (elem) { var inject = function (elem) {
var hider = document.createElement("a"); var hider = document.createElement("a");
hider.setAttribute("class", "hider"); hider.setAttribute("class", "hider");
@ -407,6 +404,9 @@ onready(function() {
}; };
elem.appendChild(hider); elem.appendChild(hider);
}; };
var posts = document.getElementsByClassName("post");
for (var idx = 0 ; idx < posts.length; idx++ ) {
inject(posts[idx]); inject(posts[idx]);
} }
// apply persiting hidden posts // apply persiting hidden posts