* 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.
This commit is contained in:
Anthony Lieuallen 2008-05-31 20:22:17 +00:00
parent f491cffd7f
commit 0358e9b0f5
3 changed files with 12 additions and 5 deletions

View file

@ -203,6 +203,8 @@
document.getElementById("errorTryAgain").style.display = "none";
document.getElementById("errorPageContainer").setAttribute("class", "certerror");
addDomainErrorLink();
// Also, remove resurrect buttons, they're not likely to help either.
document.body.className='';
}
else {
// Remove the override block for non-certificate errors. CSS-hiding
@ -275,7 +277,7 @@
]]></script>
</head>
<body dir="&locale.dir;">
<body dir="&locale.dir;" class="resurrect">
<!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) -->

View file

@ -3,7 +3,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}</em:id>
<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:homepageURL>http://trac.arantius.com/wiki/Extensions/Resurrect</em:homepageURL>

View file

@ -1,9 +1,14 @@
div#errorPageContainer {
body.resurrect div#errorPageContainer {
padding-right: 18em;
max-width: 45em;
}
fieldset#resurrect {
display: none;
}
body.resurrect fieldset#resurrect {
display: block;
position: absolute;
top: 0;
right: 0;
@ -18,11 +23,11 @@ fieldset#resurrect {
-moz-border-radius: 10px;
}
fieldset#resurrect legend img {
body.resurrect fieldset#resurrect legend img {
vertical-align: middle;
padding-right: 0.25em;
}
fieldset#resurrect button {
body.resurrect fieldset#resurrect button {
width: 14em;
}