fix not defined error; fix element not exist for target selectors error; fix disabled state when going "back" to net error page
Cette révision appartient à :
Parent
85430a5aa3
révision
11f6aaf919
2 fichiers modifiés avec 7 ajouts et 1 suppressions
|
@ -214,6 +214,10 @@
|
|||
/>
|
||||
|
||||
<div id='resurrect'>
|
||||
<!-- fake elements that have IDs matching target selector -->
|
||||
<div id='targetTab' style='display: none;'></div>
|
||||
<div id='targetWin' style='display: none;'></div>
|
||||
|
||||
<p>&resurrect.thispage;</p>
|
||||
<select id='mirror' size='5'>
|
||||
<option value='coralcdn'>&resurrect.coralcdn;</option>
|
||||
|
@ -225,7 +229,7 @@
|
|||
<br />
|
||||
|
||||
<xul:button xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
id="mirrorSelect" label="&okButton.label;" oncommand="resurrect.selectMirror();"
|
||||
id="mirrorSelect" label="&okButton.label;"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -39,6 +39,8 @@ var resurrect={
|
|||
},
|
||||
|
||||
attachClickEvent:function() {
|
||||
resurrect.disabled=false;
|
||||
|
||||
var contentWin=getBrowser().contentWindow;
|
||||
if (contentWin.document.documentURI.match(/^about:neterror/)) {
|
||||
contentWin.document.getElementById('mirror').addEventListener(
|
||||
|
|
Chargement…
Référencer dans un nouveau ticket