Changeset 418

Show
Ignore:
Timestamp:
05/31/08 16:22:17 (6 months ago)
Author:
t-bone
Message:

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.
Location:
extension/resurrect
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • extension/resurrect/content/netError.xhtml

    r404 r418  
    204204          document.getElementById("errorPageContainer").setAttribute("class", "certerror"); 
    205205          addDomainErrorLink(); 
     206          // Also, remove resurrect buttons, they're not likely to help either. 
     207          document.body.className=''; 
    206208        } 
    207209        else { 
     
    276278  </head> 
    277279 
    278   <body dir="&locale.dir;"> 
     280  <body dir="&locale.dir;" class="resurrect"> 
    279281 
    280282    <!-- ERROR ITEM CONTAINER (removed during loading to avoid bug 39098) --> 
  • extension/resurrect/install.rdf

    r405 r418  
    44        <em:id>{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}</em:id> 
    55        <em:name>Resurrect Pages</em:name> 
    6         <em:version>2.0.1</em:version> 
     6        <em:version>2.0.2</em:version> 
    77        <em:description>Resurrect dead pages, by finding their ghosts.</em:description> 
    88 
  • extension/resurrect/skin/netError.css

    r379 r418  
    1 div#errorPageContainer { 
     1body.resurrect div#errorPageContainer { 
    22    padding-right: 18em; 
    33    max-width: 45em; 
     
    55 
    66fieldset#resurrect { 
     7    display: none; 
     8} 
     9body.resurrect fieldset#resurrect { 
     10    display: block; 
     11 
    712    position: absolute; 
    813    top: 0; 
     
    1924} 
    2025 
    21 fieldset#resurrect legend img { 
     26body.resurrect fieldset#resurrect legend img { 
    2227    vertical-align: middle; 
    2328    padding-right: 0.25em; 
    2429} 
    2530 
    26 fieldset#resurrect button { 
     31body.resurrect fieldset#resurrect button { 
    2732    width: 14em; 
    2833}