Fixed weird behaviour on Opera 15

This commit is contained in:
LouCypher 2013-07-05 05:12:16 +07:00
parent 9e8902bfe1
commit ae634474bf
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,7 @@
<div id="installed"></div> <div id="installed"></div>
<div id="find-styles"><a id="find-styles-link" href="#"></a></div> <div id="find-styles"><a id="find-styles-link" href="#"></a></div>
<div id="manage-styles"><a id="open-manage-link" href="manage.html" target="stylishmanage"></a></div> <div id="manage-styles"><a id="open-manage-link" href="manage.html"></a></div>
<script src="popup.js"></script> <script src="popup.js"></script>

View File

@ -66,8 +66,9 @@ function getId(event) {
} }
function openLink(event) { function openLink(event) {
event.preventDefault();
chrome.tabs.create({url: event.target.href}); chrome.tabs.create({url: event.target.href});
return false; //return false;
} }
function handleUpdate(style) { function handleUpdate(style) {
@ -84,4 +85,5 @@ tE("open-manage-link", "openManage");
tE("find-styles-link", "findStylesForSite"); 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);