From 822ea1b4500fdb00ba02919d66e502e6e34c9c42 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 28 Jun 2018 14:07:06 +0200 Subject: [PATCH] Fix site blacklisting using sidebar --- plugins/Sidebar/media/Sidebar.coffee | 2 +- plugins/Sidebar/media/all.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Sidebar/media/Sidebar.coffee b/plugins/Sidebar/media/Sidebar.coffee index 037b921c..74601c1d 100644 --- a/plugins/Sidebar/media/Sidebar.coffee +++ b/plugins/Sidebar/media/Sidebar.coffee @@ -315,7 +315,7 @@ class Sidebar extends Class else if confirmed == 2 @wrapper.displayPrompt "Blacklist this site", "text", "Delete and Blacklist", "Reason", (reason) => @tag.find("#button-delete").addClass("loading") - @wrapper.ws.cmd "blacklistAdd", [@wrapper.site_info.address, reason] + @wrapper.ws.cmd "siteblockAdd", [@wrapper.site_info.address, reason] @wrapper.ws.cmd "siteDelete", @wrapper.site_info.address, -> document.location = $(".fixbutton-bg").attr("href") diff --git a/plugins/Sidebar/media/all.js b/plugins/Sidebar/media/all.js index eb878bae..50b1a02f 100644 --- a/plugins/Sidebar/media/all.js +++ b/plugins/Sidebar/media/all.js @@ -638,7 +638,7 @@ window.initScrollable = function () { } else if (confirmed === 2) { return _this.wrapper.displayPrompt("Blacklist this site", "text", "Delete and Blacklist", "Reason", function(reason) { _this.tag.find("#button-delete").addClass("loading"); - _this.wrapper.ws.cmd("blacklistAdd", [_this.wrapper.site_info.address, reason]); + _this.wrapper.ws.cmd("siteblockAdd", [_this.wrapper.site_info.address, reason]); return _this.wrapper.ws.cmd("siteDelete", _this.wrapper.site_info.address, function() { return document.location = $(".fixbutton-bg").attr("href"); });