aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/redirector.js
diff options
context:
space:
mode:
authorEinar Egilsson2008-01-07 22:44:06 +0000
committerEinar Egilsson2008-01-07 22:44:06 +0000
commitabc92ba06bb84d544a0d1deb065eb608cac8190e (patch)
treeba33b2f82fecca18aef7b0a9dadf2cb2af3b2d51 /chrome/content/redirector.js
parent0ee5f981f3e708246674d26f8a26fc9b6d8f5fc9 (diff)
Redirector 1.5
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@102 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome/content/redirector.js')
-rw-r--r--chrome/content/redirector.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/content/redirector.js b/chrome/content/redirector.js
index 622f170..62966d6 100644
--- a/chrome/content/redirector.js
+++ b/chrome/content/redirector.js
@@ -266,14 +266,18 @@ var Redirector = {
},
openHelp : function() {
+ var windowName = "redirectorHelp";
var windowsMediator = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
var win;
var iter = windowsMediator.getEnumerator(null);
while (iter.hasMoreElements()) {
win = iter.getNext();
- alert(win.name);
+ if (win.name == windowName) {
+ win.focus();
+ return;
+ }
}
- //window.openDialog("chrome://redirector/content/help.html", windowName, "chrome,dialog,resizable=yes,location=0,toolbar=0,status=0,width=800px,height=600px,centerscreen", this);
+ window.openDialog("chrome://redirector/content/help.html", windowName, "chrome,dialog,resizable=yes,location=0,toolbar=0,status=0,width=800px,height=600px,centerscreen", this);
},