Changeset 23502 for main/trunk


Ignore:
Timestamp:
12/16/10 15:18:15 (10 years ago)
Author:
davidb
Message:

Still further tweaking to get it right for IE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/macros/seaweed.dm

    r23500 r23502  
    126126
    127127  window.onload=function()\{
    128       try \{
     128//      try \{
    129129      de.init();
    130       document.addEventListener('beforeunload',saveMetadata,true);
    131        
     130      if (window.addEventListener) \{
     131          window.addEventListener('beforeunload',saveMetadata,true);
     132           \}
     133       else \{
     134          window.attachEvent('onbeforeunload',saveMetadata);
     135       \}
    132136       de.doc.declarePropertySets(\{
    133137                metadata: \{
     
    137141       \});
    138142       
    139       \}
     143/*      \}
    140144      catch(err) \{
    141145        alert("SeaWeed failed to initialise: " + err.message);
    142146      \}
     147*/
    143148  \}
    144149
Note: See TracChangeset for help on using the changeset viewer.