Fix #3867: Add namespaces to all Javascript events.

This commit is contained in:
evazion
2018-09-04 11:58:09 -05:00
parent c03af7f563
commit 3bed5f3cf9
23 changed files with 121 additions and 119 deletions

View File

@@ -71,7 +71,7 @@ Blacklist.update_sidebar = function() {
link.text(entry.tags);
link.attr("href", `/posts?tags=${encodeURIComponent(entry.tags)}`);
link.attr("title", entry.tags);
link.click(Blacklist.toggle_entry);
link.on("click.danbooru", Blacklist.toggle_entry);
count.html(entry.hits);
count.addClass("count");
item.append(link);
@@ -93,7 +93,7 @@ Blacklist.initialize_disable_all_blacklists = function() {
$("#disable-all-blacklists").show()
}
$("#disable-all-blacklists").click(function(e) {
$("#disable-all-blacklists").on("click.danbooru", function(e) {
$("#disable-all-blacklists").hide();
$("#re-enable-all-blacklists").show();
Cookie.put("dab", "1");
@@ -101,7 +101,7 @@ Blacklist.initialize_disable_all_blacklists = function() {
e.preventDefault();
});
$("#re-enable-all-blacklists").click(function(e) {
$("#re-enable-all-blacklists").on("click.danbooru", function(e) {
$("#disable-all-blacklists").show();
$("#re-enable-all-blacklists").hide();
Cookie.put("dab", "0");