From 710f354d0f6d590faac0753b0959f01e55af9137 Mon Sep 17 00:00:00 2001 From: Anthony Lieuallen Date: Sat, 20 May 2006 21:04:35 +0000 Subject: [PATCH] disabled state, click while waiting for an API call does nothing --- content/resurrect.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/resurrect.js b/content/resurrect.js index 8ce58ca..c849fcc 100644 --- a/content/resurrect.js +++ b/content/resurrect.js @@ -9,7 +9,7 @@ var resurrect={ ], originalDoc:null, - gotoUrl:null, + disabled:false, // // // // // // // // // // // // // // // // // // // // // // // // // // // @@ -76,7 +76,6 @@ var resurrect={ showDialog:function(url) { resurrect.originalDoc=getBrowser().contentWindow.document; - resurrect.gotoUrl=url; window.openDialog( 'chrome://resurrect/content/resurrect-select-mirror.xul', @@ -87,8 +86,9 @@ var resurrect={ selectMirror:function(event) { var ownerDoc=event.target.ownerDocument; - var listbox=ownerDoc.getElementById('mirror'); + if (resurrect.disabled) return false; + resurrect.disabled=true; // find the content document -- this depends on whether we are // living inline in the netError page