blacklists: refactor blacklist html+css.

* Consolidate blacklist css in one file.
* blacklist box: fix tag colors not dimming on hover.
* blacklist box: allow middle clicking on tags to open in new tab.
* /wiki_pages: move blacklist controls to top of tag sidebar.
* /wiki_pages: fix missing "disable all" / "re-enable all" buttons.
This commit is contained in:
evazion
2018-08-16 12:06:01 -05:00
parent d26d450c09
commit 6ccf4ed9c0
7 changed files with 36 additions and 64 deletions

View File

@@ -55,6 +55,7 @@ Blacklist.toggle_entry = function(e) {
}
}
Blacklist.apply();
e.preventDefault();
}
Blacklist.update_sidebar = function() {
@@ -68,6 +69,7 @@ Blacklist.update_sidebar = function() {
var count = $("<span/>");
link.text(entry.tags);
link.attr("href", `/posts?tags=${encodeURIComponent(entry.tags)}`);
link.click(Blacklist.toggle_entry);
count.html(entry.hits);
count.addClass("count");