Changeset 309
- Timestamp:
- 05/28/07 10:34:28 (18 months ago)
- Location:
- extension/resurrect/content
- Files:
-
- 3 modified
-
netError.xhtml (modified) (2 diffs)
-
resurrect-select-mirror.xul (modified) (1 diff)
-
resurrect.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
extension/resurrect/content/netError.xhtml
r205 r309 197 197 <h1 id="errorTitleText" /> 198 198 </div> 199 199 200 200 <!-- LONG CONTENT (the section most likely to require scrolling) --> 201 201 <div id="errorLongContent"> … … 220 220 221 221 <p>&resurrect.thispage;</p> 222 <select id='mirror' size=' 5'>222 <select id='mirror' size='6'> 223 223 <option value='coralcdn'>&resurrect.coralcdn;</option> 224 224 <option value='google'>&resurrect.google;</option> -
extension/resurrect/content/resurrect-select-mirror.xul
r205 r309 23 23 24 24 <label value='&resurrect.fromMirror;' /> 25 <listbox id='mirror' rows=' 5'25 <listbox id='mirror' rows='6' 26 26 onclick='resurrect.clickedXul(event);' 27 27 > -
extension/resurrect/content/resurrect.js
r205 r309 100 100 101 101 clickedHtml:function(event) { 102 re surrect.selectMirror(102 return resurrect.clickHandler( 103 103 event.target.ownerDocument, 104 104 event.target.ownerDocument, … … 108 108 109 109 clickedXul:function(event) { 110 re surrect.selectMirror(110 return resurrect.clickHandler( 111 111 event.target.ownerDocument, 112 112 window.arguments[0], … … 115 115 }, 116 116 117 clickHandler:function(ownerDoc, contentDoc, rawUrl) { 118 // Check, set, disabled status. 119 var listbox=ownerDoc.getElementById('mirror'); 120 121 if (-1==listbox.selectedIndex) return false; 122 if (resurrect.disabled) return false; 123 124 resurrect.disabled=true; 125 listbox.setAttribute('disabled', true); 126 127 var button=contentDoc.getElementById('mirrorSelect'); 128 if (!button && ownerDoc.documentElement.getButton) { 129 button=ownerDoc.documentElement.getButton('accept'); 130 } 131 button.setAttribute('disabled', true); 132 133 // Run the actual code. After timeout for UI repaint. 134 setTimeout(resurrect.selectMirror, 1, ownerDoc, contentDoc, rawUrl); 135 }, 136 117 137 selectMirror:function(ownerDoc, contentDoc, rawUrl) { 118 138 var listbox=ownerDoc.getElementById('mirror'); 119 if (resurrect.disabled) return false;120 resurrect.disabled=true;121 139 122 140 var gotoUrl=null;