Changeset 2892

Show
Ignore:
Timestamp:
12/08/07 23:54:14 (4 years ago)
Author:
machu
Message:

platform/tdiary-plugins/day2section: use footer_proc instead of window.onload

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary-plugins/day2section/day2section.rb

    r2886 r2892  
    77# Distributed under the GPL 
    88# 
    9 add_header_proc do 
     9add_footer_proc do 
    1010  if @mode == 'day' 
    1111    <<-SCRIPT 
    1212    <script type="text/javascript"> 
    13     window.onload = function() { 
    14       if(location.hash == "") { 
    15         location.replace(location.href + "#p01"); 
    16       } 
     13    if(location.hash == "") { 
     14      location.replace(location.href + "#p01"); 
    1715    } 
    1816    </script>