Fixes #147
* Piggyback on the built in logic that hides the 'try again' button to remove the resurrect buttons, for those "net error" pages where it doesn't make sense.
Cette révision appartient à :
Parent
f491cffd7f
révision
0358e9b0f5
3 fichiers modifiés avec 12 ajouts et 5 suppressions
|
@ -203,6 +203,8 @@
|
||||||
document.getElementById("errorTryAgain").style.display = "none";
|
document.getElementById("errorTryAgain").style.display = "none";
|
||||||
document.getElementById("errorPageContainer").setAttribute("class", "certerror");
|
document.getElementById("errorPageContainer").setAttribute("class", "certerror");
|
||||||
addDomainErrorLink();
|
addDomainErrorLink();
|
||||||
|
// Also, remove resurrect buttons, they're not likely to help either.
|
||||||
|
document.body.className='';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// Remove the override block for non-certificate errors. CSS-hiding
|
// Remove the override block for non-certificate errors. CSS-hiding
|
||||||
|
@ -275,7 +277,7 @@
|
||||||
]]></script>
|
]]></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="&locale.dir;">
|
<body dir="&locale.dir;" class="resurrect">
|
||||||
|
|
||||||
<!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) -->
|
<!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) -->
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<Description about="urn:mozilla:install-manifest">
|
<Description about="urn:mozilla:install-manifest">
|
||||||
<em:id>{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}</em:id>
|
<em:id>{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}</em:id>
|
||||||
<em:name>Resurrect Pages</em:name>
|
<em:name>Resurrect Pages</em:name>
|
||||||
<em:version>2.0.1</em:version>
|
<em:version>2.0.2</em:version>
|
||||||
<em:description>Resurrect dead pages, by finding their ghosts.</em:description>
|
<em:description>Resurrect dead pages, by finding their ghosts.</em:description>
|
||||||
|
|
||||||
<em:homepageURL>http://trac.arantius.com/wiki/Extensions/Resurrect</em:homepageURL>
|
<em:homepageURL>http://trac.arantius.com/wiki/Extensions/Resurrect</em:homepageURL>
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
div#errorPageContainer {
|
body.resurrect div#errorPageContainer {
|
||||||
padding-right: 18em;
|
padding-right: 18em;
|
||||||
max-width: 45em;
|
max-width: 45em;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset#resurrect {
|
fieldset#resurrect {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
body.resurrect fieldset#resurrect {
|
||||||
|
display: block;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -18,11 +23,11 @@ fieldset#resurrect {
|
||||||
-moz-border-radius: 10px;
|
-moz-border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset#resurrect legend img {
|
body.resurrect fieldset#resurrect legend img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding-right: 0.25em;
|
padding-right: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
fieldset#resurrect button {
|
body.resurrect fieldset#resurrect button {
|
||||||
width: 14em;
|
width: 14em;
|
||||||
}
|
}
|
||||||
|
|
Chargement…
Référencer dans un nouveau ticket