From 8c717e871cac3587e2445de05054d9ed844a1c6c Mon Sep 17 00:00:00 2001 From: Jason Barnabe Date: Fri, 30 Jan 2015 12:38:17 -0600 Subject: [PATCH] Potentially open edit in new window #7 --- popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup.js b/popup.js index 3c05ff25..497f3c5e 100644 --- a/popup.js +++ b/popup.js @@ -72,7 +72,7 @@ function createStyleElement(style) { styleName.appendChild(document.createTextNode(style.name)); var editLink = e.querySelector(".style-edit-link"); 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 styleName.addEventListener("click", function() { enable(event, !event.target.previousSibling.checked); }, false);