~ubuntu-branches/ubuntu/wily/tdiary/wily

« back to all changes in this revision

Viewing changes to contrib2/plugin/day2section.rb

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2011-04-11 21:53:16 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110411215316-ih4gt4q8p29d2wf8
Tags: 3.0.1-1
* New upstream release (Closes: #542801, #594947)
* debian/control:
 - Bumped up Standards-Version to 3.9.1.
 - Updated version dependency.
* debian/tdiary-setup.rb: Followed the upstream changes, incorporating js and
  index.fcgi

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# day2section.rb - tDiary plugin
 
3
#
 
4
# When a visitor accesses to day page without section anchor, navigate to first section.
 
5
#
 
6
# Copyright (c) MATSUOKA Kohei <http://www.machu.jp/>
 
7
# Distributed under the GPL
 
8
#
 
9
add_footer_proc do
 
10
        if @mode == 'day'
 
11
                <<-SCRIPT
 
12
                <script type="text/javascript">
 
13
                if(!location.hash) {
 
14
                        location.replace(location.hash + "#p01");
 
15
                }
 
16
                </script>
 
17
                SCRIPT
 
18
        end
 
19
end
 
20