Changeset 811 for trunk/JSCalendarContrib/lib/Foswiki/Form/Date.pm
- Timestamp:
- 11/19/08 15:00:00 (4 years ago)
- Location:
- trunk/JSCalendarContrib/lib/Foswiki
- Files:
-
- 1 edited
- 1 moved
-
. (moved) (moved from trunk/JSCalendarContrib/lib/TWiki)
-
Form/Date.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSCalendarContrib/lib/Foswiki/Form/Date.pm
r782 r811 1 1 # See bottom of file for license and copyright details 2 # This packages subclasses TWiki::Form::FieldDefinition to implement2 # This packages subclasses Foswiki::Form::FieldDefinition to implement 3 3 # the =date= type 4 4 5 package TWiki::Form::Date;6 use base ' TWiki::Form::FieldDefinition';5 package Foswiki::Form::Date; 6 use base 'Foswiki::Form::FieldDefinition'; 7 7 8 8 use strict; 9 9 10 use TWiki::Contrib::JSCalendarContrib;10 use Foswiki::Contrib::JSCalendarContrib; 11 11 12 12 sub new { … … 31 31 $this->cssClasses('twikiInputField', 'twikiEditFormDateField') : 32 32 'twikiInputField twikiEditFormDateField'}); 33 my $ifFormat = $ TWiki::cfg{JSCalendarContrib}{format} || '%e %b %Y';34 TWiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' );33 my $ifFormat = $Foswiki::cfg{JSCalendarContrib}{format} || '%e %b %Y'; 34 Foswiki::Contrib::JSCalendarContrib::addHEAD( 'twiki' ); 35 35 my $button .= CGI::image_button( 36 36 -name => 'calendar', 37 37 -onclick => 38 38 "return showCalendar('id$this->{name}','$ifFormat')", 39 -src=> $ TWiki::cfg{PubUrlPath} . '/' .40 $ TWiki::cfg{SystemWebName} .39 -src=> $Foswiki::cfg{PubUrlPath} . '/' . 40 $Foswiki::cfg{SystemWebName} . 41 41 '/JSCalendarContrib/img.gif', 42 42 -alt => 'Calendar', … … 56 56 __DATA__ 57 57 58 Module of Foswiki - The Free Open Source Wiki, http://foswiki.org/, http:// TWiki.org/58 Module of Foswiki - The Free Open Source Wiki, http://foswiki.org/, http://Foswiki.org/ 59 59 60 Copyright (C) 2001-2007 TWiki Contributors. All Rights Reserved.61 TWiki Contributors are listed in the AUTHORS file in the root of60 Copyright (C) 2001-2007 Foswiki Contributors. All Rights Reserved. 61 Foswiki Contributors are listed in the AUTHORS file in the root of 62 62 this distribution. NOTE: Please extend that file, not this notice. 63 63
Note: See TracChangeset
for help on using the changeset viewer.
