Clicking the style name now toggles it as well
This commit is contained in:
parent
01e705aef0
commit
9574adeaeb
5
popup.js
5
popup.js
|
@ -35,10 +35,10 @@ function createStyleElement(style) {
|
||||||
editLink.addEventListener("click", openLink, false);
|
editLink.addEventListener("click", openLink, false);
|
||||||
|
|
||||||
if (checkbox.checked == true) {
|
if (checkbox.checked == true) {
|
||||||
(checkbox).addEventListener("click", function() { enable(event, false); }, false);
|
(checkbox, styleName).addEventListener("click", function() { enable(event, false); }, false);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
(checkbox).addEventListener("click", function() { enable(event, true); }, false);
|
(checkbox, styleName).addEventListener("click", function() { enable(event, true); }, false);
|
||||||
}
|
}
|
||||||
e.querySelector(".delete").addEventListener("click", function() { doDelete(event, false); }, false);
|
e.querySelector(".delete").addEventListener("click", function() { doDelete(event, false); }, false);
|
||||||
return e;
|
return e;
|
||||||
|
@ -99,4 +99,3 @@ tE("find-styles-link", "findStylesForSite");
|
||||||
|
|
||||||
document.getElementById("find-styles-link").addEventListener("click", openLink, false);
|
document.getElementById("find-styles-link").addEventListener("click", openLink, false);
|
||||||
document.getElementById("open-manage-link").addEventListener("click", openLink, false);
|
document.getElementById("open-manage-link").addEventListener("click", openLink, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user