Ignore:
Timestamp:
11/19/08 15:00:00 (4 years ago)
Author:
CrawfordCurrie
Message:

Item175: port a subset of the standard extensions over to the new namespace to make a working system with mixed TWiki and Foswiki plugins

Location:
trunk/JSCalendarContrib/lib/Foswiki
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/JSCalendarContrib/lib/Foswiki/Form/Date.pm

    r782 r811  
    11# See bottom of file for license and copyright details 
    2 # This packages subclasses TWiki::Form::FieldDefinition to implement 
     2# This packages subclasses Foswiki::Form::FieldDefinition to implement 
    33# the =date= type 
    44 
    5 package TWiki::Form::Date; 
    6 use base 'TWiki::Form::FieldDefinition'; 
     5package Foswiki::Form::Date; 
     6use base 'Foswiki::Form::FieldDefinition'; 
    77 
    88use strict; 
    99 
    10 use TWiki::Contrib::JSCalendarContrib; 
     10use Foswiki::Contrib::JSCalendarContrib; 
    1111 
    1212sub new { 
     
    3131            $this->cssClasses('twikiInputField', 'twikiEditFormDateField') : 
    3232              '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' ); 
    3535    my $button .= CGI::image_button( 
    3636        -name => 'calendar', 
    3737        -onclick => 
    3838          "return showCalendar('id$this->{name}','$ifFormat')", 
    39         -src=> $TWiki::cfg{PubUrlPath} . '/' . 
    40           $TWiki::cfg{SystemWebName} . 
     39        -src=> $Foswiki::cfg{PubUrlPath} . '/' . 
     40          $Foswiki::cfg{SystemWebName} . 
    4141            '/JSCalendarContrib/img.gif', 
    4242        -alt => 'Calendar', 
     
    5656__DATA__ 
    5757 
    58 Module of Foswiki - The Free Open Source Wiki, http://foswiki.org/, http://TWiki.org/ 
     58Module of Foswiki - The Free Open Source Wiki, http://foswiki.org/, http://Foswiki.org/ 
    5959 
    60 Copyright (C) 2001-2007 TWiki Contributors. All Rights Reserved. 
    61 TWiki Contributors are listed in the AUTHORS file in the root of 
     60Copyright (C) 2001-2007 Foswiki Contributors. All Rights Reserved. 
     61Foswiki Contributors are listed in the AUTHORS file in the root of 
    6262this distribution. NOTE: Please extend that file, not this notice. 
    6363 
Note: See TracChangeset for help on using the changeset viewer.