Changeset 358

Show
Ignore:
Timestamp:
12/18/06 18:03:16 (2 years ago)
Author:
jarmo
Message:
  • Merged changes from cmms_js.patch
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/views/layouts/mainlevel.rhtml

    r351 r358  
    4545    <% end -%> 
    4646 
     47    <script type="text/javascript"> 
     48    //<![CDATA[ 
     49 
     50    // If the page is loaded in an IFrame, redirect its parent to this page. 
     51    // This is used by the Windows version's loader page. 
     52    if (window.parent.location != window.location) 
     53        window.parent.location.replace(window.location); 
     54 
     55    //]]> 
     56    </script> 
     57 
    4758    <!-- Style for asset type links --> 
    4859    <% types = AssetType.find(:all, :readonly => true, :select => 'id, asset_type_icon_id') -%> 
  • trunk/app/views/user/login.rhtml

    r304 r358  
    55    <title>Welcome to NorfelloCMMS</title> 
    66    <%= stylesheet_link_tag 'login' %> 
     7    <script type="text/javascript"> 
     8    //<![CDATA[ 
     9 
     10    // If the page is loaded in an IFrame, redirect its parent to this page. 
     11    // This is used by the Windows version's loader page. 
     12    if (window.parent.location != window.location) 
     13        window.parent.location.replace(window.location); 
     14 
     15    //]]> 
     16    </script> 
    717  </head> 
    818 

© 2004-2007 Norfello Oy All Rights Reserved