[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/master] Change links to options page to open in new tab.



commit 2c94207c97d516227df690382e2330c3d054d9a0
Author: Alexandre Allaire <alexandre.allaire@xxxxxxxxxxxxxx>
Date:   Fri Dec 21 14:11:24 2012 -0500

    Change links to options page to open in new tab.
    
    Change the link targets to "_blank" to have the
    options page open in a new tab when users click on the badge.
---
 proxy/embed.html    |    2 +-
 proxy/flashproxy.js |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxy/embed.html b/proxy/embed.html
index 9524f9c..feb2fd0 100644
--- a/proxy/embed.html
+++ b/proxy/embed.html
@@ -81,7 +81,7 @@ body {
 flashproxy_badge_insert().start();
 </script>
 <noscript>
-<table id="flashproxy-badge" class="disabled"><tr><td><a href="options.html" target="_parent"><img src="badge.png" alt="Internet freedom"></a></td></tr></table>
+<table id="flashproxy-badge" class="disabled"><tr><td><a href="options.html" target="_blank"><img src="badge.png" alt="Internet freedom"></a></td></tr></table>
 </noscript>
 </body>
 </html>
diff --git a/proxy/flashproxy.js b/proxy/flashproxy.js
index 704e514..aff64a9 100644
--- a/proxy/flashproxy.js
+++ b/proxy/flashproxy.js
@@ -795,7 +795,7 @@ function Badge() {
     tr.appendChild(td);
     a = document.createElement("a");
     a.setAttribute("href", "options.html");
-    a.setAttribute("target", "_parent");
+    a.setAttribute("target", "_blank");
     td.appendChild(a);
     img = document.createElement("img");
     img.setAttribute("src", "badge.png");



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits