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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user