Index: data/TWiki/TWikiPreferences.txt
===================================================================
RCS file: /d/www/CVS/twiki-cairo-beta/data/TWiki/TWikiPreferences.txt,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -c -r1.1.1.1 -r1.1.1.1.2.1
*** data/TWiki/TWikiPreferences.txt 5 Jun 2004 02:32:34 -0000 1.1.1.1
--- data/TWiki/TWikiPreferences.txt 6 Jun 2004 02:35:09 -0000 1.1.1.1.2.1
***************
*** 248,253 ****
--- 248,263 ----
* %TWIKIWEB%.PreviewBackground image:
* Set PREVIEWBGIMAGE = %PUBURLPATH%/%TWIKIWEB%/PreviewBackground/preview2bg.gif
+ ---++ Calendar preferences of [[http://dynarch.com/mishoo/calendar.epl][Mishoo DHTML calendar]]
+
+ * Date format
+ * Set JSCALENDARDATEFORMAT = %d %b %Y
+
+ * Language of DHTML calendar, pointing to attached =calendar-<code>.js= language file: =en=, =af=, =br=, =ca=, =cs-win=, =da=, =de=, =du=, =el=, =es=, =fr=, =hr=, =hr-utf8=, =hu=, =it=, =jp=, =nl=, =no=, =pl=, =pt=, =ro=, =ru=, =sk=, =sp=, =sv=, =tr=, =zh=
+ * Set JSCALENDARLANGUAGE = en
+
+ * Additional options of DHTML calendar:
+ * Set JSCALENDAROPTIONS =
---++ Access Control Settings
Index: lib/TWiki/Form.pm
===================================================================
RCS file: /d/www/CVS/twiki-cairo-beta/lib/TWiki/Form.pm,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.2
diff -c -r1.1.1.1 -r1.1.1.1.2.2
*** lib/TWiki/Form.pm 5 Jun 2004 02:32:39 -0000 1.1.1.1
--- lib/TWiki/Form.pm 6 Jun 2004 02:33:53 -0000 1.1.1.1.2.2
***************
*** 334,339 ****
--- 334,346 ----
$value =~ s/<\;/go;
$value =~ s/>/>\;/go;
$value = "";
+ } elsif ( $type eq "date" ) { # calendar.ep
+ $value =~ s/"/"/go; # Make sure double quote don't kill us
+ $value =~ s/&/&\;/go;
+ $value =~ s/<\;/go;
+ $value =~ s/>/>\;/go;
+ $value = "";
+ $query->{'jscalendar'} = 1;
} elsif( $type eq "label" ) {
my $escaped = $value;
$escaped =~ s/&/&\;/go;
Index: lib/TWiki/Plugins/EditTablePlugin.pm
===================================================================
RCS file: /d/www/CVS/twiki-cairo-beta/lib/TWiki/Plugins/EditTablePlugin.pm,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.2
diff -c -r1.1.1.1 -r1.1.1.1.2.2
*** lib/TWiki/Plugins/EditTablePlugin.pm 5 Jun 2004 02:32:39 -0000 1.1.1.1
--- lib/TWiki/Plugins/EditTablePlugin.pm 6 Jun 2004 02:33:54 -0000 1.1.1.1.2.2
***************
*** 126,147 ****
&TWiki::Func::writeDebug( "- EditTablePlugin::commonTagsHandler( $_[2].$_[1] )" ) if $debug;
- # Add style sheet for date calendar to skin if needed.
- # Handling of the common tags is done separately for the topic text and view skin
- # The following if statement must be done before the early escape.
- #
- # NOTE:
- # When adding a new button to the table that needs the table to be in the edit mode,
- # be sure to add it below.
- if( ( $_[0] =~ m/^[<][!]DOCTYPE/ ) &&
- ( $query->param( 'etedit' ) || $query->param( 'etaddrow' ) || $query->param( 'etdelrow') ) &&
- (!($_[0] =~ m/calendar-system/) ) ) {
-
- my $string = " \n";
- $_[0] =~ s/([<]\/head[>])/$string$1/i;
- }
-
return unless $_[0] =~ /%EDIT(TABLE|CELL){(.*)}%/os;
unless( $prefsInitialized ) {
--- 126,131 ----
***************
*** 152,158 ****
$prefEDITBUTTON = &TWiki::Func::getPreferencesValue("EDITBUTTON") ||
&TWiki::Func::getPreferencesValue("EDITTABLEPLUGIN_EDITBUTTON") || "Edit table";
$prefJSCALENDARDATEFORMAT = &TWiki::Func::getPreferencesValue("JSCALENDARDATEFORMAT") ||
! &TWiki::Func::getPreferencesValue("EDITTABLEPLUGIN_JSCALENDARDATEFORMAT") || "%Y/%m/%d";
$prefJSCALENDARLANGUAGE = &TWiki::Func::getPreferencesValue("JSCALENDARLANGUAGE") ||
&TWiki::Func::getPreferencesValue("EDITTABLEPLUGIN_JSCALENDARLANGUAGE") || "en";
$prefJSCALENDAROPTIONS = &TWiki::Func::getPreferencesValue("JSCALENDAROPTIONS") ||
--- 136,142 ----
$prefEDITBUTTON = &TWiki::Func::getPreferencesValue("EDITBUTTON") ||
&TWiki::Func::getPreferencesValue("EDITTABLEPLUGIN_EDITBUTTON") || "Edit table";
$prefJSCALENDARDATEFORMAT = &TWiki::Func::getPreferencesValue("JSCALENDARDATEFORMAT") ||
! &TWiki::Func::getPreferencesValue("EDITTABLEPLUGIN_JSCALENDARDATEFORMAT") || "%d %b %Y";
$prefJSCALENDARLANGUAGE = &TWiki::Func::getPreferencesValue("JSCALENDARLANGUAGE") ||
&TWiki::Func::getPreferencesValue("EDITTABLEPLUGIN_JSCALENDARLANGUAGE") || "en";
$prefJSCALENDAROPTIONS = &TWiki::Func::getPreferencesValue("JSCALENDAROPTIONS") ||
***************
*** 396,410 ****
{
my( $theWeb, $theTopic, $theTableNr, $doEdit ) = @_;
! my $viewUrl = &TWiki::Func::getScriptUrl( $theWeb, $theTopic, "viewauth" ) . "\#edittable$theTableNr";
my $text = "";
- if( $doEdit ) {
- my $dir = "%PUBURL%/$installWeb/EditTablePlugin";
- $text .= "$preSp\n";
- $text .= "$preSp\n";
- $text .= "$preSp\n";
- }
$text .= "$preSp\n" if $doEdit;
$text .= "$preSp\n";
$text .= "$preSp