Potentially open edit in new window #7
This commit is contained in:
parent
01329b7835
commit
8c717e871c
2
popup.js
2
popup.js
|
@ -72,7 +72,7 @@ function createStyleElement(style) {
|
||||||
styleName.appendChild(document.createTextNode(style.name));
|
styleName.appendChild(document.createTextNode(style.name));
|
||||||
var editLink = e.querySelector(".style-edit-link");
|
var editLink = e.querySelector(".style-edit-link");
|
||||||
editLink.setAttribute("href", editLink.getAttribute("href") + style.id);
|
editLink.setAttribute("href", editLink.getAttribute("href") + style.id);
|
||||||
editLink.addEventListener("click", openLink, false);
|
editLink.addEventListener("click", openLinkInTabOrWindow, false);
|
||||||
|
|
||||||
// the checkbox will not toggle itself after clicking the name, but calling enable will regenerate it
|
// the checkbox will not toggle itself after clicking the name, but calling enable will regenerate it
|
||||||
styleName.addEventListener("click", function() { enable(event, !event.target.previousSibling.checked); }, false);
|
styleName.addEventListener("click", function() { enable(event, !event.target.previousSibling.checked); }, false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user