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

« back to all changes in this revision

Viewing changes to misc/plugin/hide-mail-field.rb

  • Committer: Package Import Robot
  • Author(s): Hideki Yamane
  • Date: 2013-05-19 16:14:01 UTC
  • mfrom: (12.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130519161401-hf5oyr8g8a94fsew
Tags: 3.2.2-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# Distributed under GPL.
9
9
#
10
10
add_header_proc do
11
 
        if @mode == 'day' and not @conf.mobile_agent? then
 
11
        if @mode == 'day' and not @cgi.mobile_agent? then
12
12
                <<-STYLE
13
13
                <style type="text/css"><!--
14
14
                        form.comment div.mail { display: none; }
20
20
end
21
21
 
22
22
add_footer_proc do
23
 
        if @mode == 'day' and not @conf.mobile_agent? then
 
23
        if @mode == 'day' and not @cgi.mobile_agent? then
24
24
                <<-SCRIPT
25
25
                <script type="text/javascript"><!--
26
26
                        document.getElementsByName("mail")[0].value = "";