aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html/display_panel/content/display-panel.html4
-rw-r--r--html/display_panel/content/main_panel.js9
2 files changed, 6 insertions, 7 deletions
diff --git a/html/display_panel/content/display-panel.html b/html/display_panel/content/display-panel.html
index 2879826..0fc18a7 100644
--- a/html/display_panel/content/display-panel.html
+++ b/html/display_panel/content/display-panel.html
@@ -55,7 +55,7 @@
</div>
</div>
<div id="info">
- <div id="whitelisted" style="display:none">
+ <div id="whitelisted">
<h2 class="blocked-js"></h2>
<ul class="blocked-js"></ul>
</div>
@@ -67,7 +67,7 @@
<h2 class="blocked-js"></h2>
<ul class="blocked-js"></ul>
</div>
- <div id="blacklisted" style="display:none">
+ <div id="blacklisted">
<h2 class="blocked-js"></h2>
<ul class="blocked-js"></ul>
</div>
diff --git a/html/display_panel/content/main_panel.js b/html/display_panel/content/main_panel.js
index edbd909..8622493 100644
--- a/html/display_panel/content/main_panel.js
+++ b/html/display_panel/content/main_panel.js
@@ -3,6 +3,7 @@
* *
* Copyright (C) 2017, 2018 NateN1222 <nathannichols454@gmail.com>
* Copyright (C) 2018 Ruben Rodriguez <ruben@gnu.org>
+ * Copyright (C) 2018 Giorgio Maone <giorgio@maone.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -19,8 +20,6 @@
*
*/
-//TODO: there is a known bug involving "forget preference" not working correctly.
-
/**
*
* Sets global variable "webex" to either "chrome" or "browser" for
@@ -91,9 +90,9 @@ function new_debug_button(name_text,callback){
*/
function write_elements(data,name,color){
var url = data["url"];
- var button_html = '<div style="display:none; float:left;"><input id="temp" type="button" value="blacklist"></input></div>';
- var button_html_2 = '<div style="display:none;float:left;"><input id="temp2" type="button" value="whitelist"></input></div>';
- var button_html_3 = '<div style="display:none;float:left;"><input id="temp3" type="button" value="forget preference"></input></div>';
+ var button_html = '<div style="float:left;"><input id="temp" type="button" value="blacklist"></input></div>';
+ var button_html_2 = '<div style="float:left;"><input id="temp2" type="button" value="whitelist"></input></div>';
+ var button_html_3 = '<div style="float:left;"><input id="temp3" type="button" value="forget preference"></input></div>';
var heading = document.getElementById(name).getElementsByTagName("h2")[0];
var list = document.getElementById(name).getElementsByTagName("ul")[0];
if(typeof(data[name]) == "undefined" || data[name].length == 0){