You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ja...@apache.org on 2008/09/23 23:24:35 UTC
svn commit: r698355 - in /incubator/jspwiki/trunk: ChangeLog
src/com/ecyrd/jspwiki/Release.java src/webdocs/scripts/jspwiki-edit.js
Author: jalkanen
Date: Tue Sep 23 14:24:35 2008
New Revision: 698355
URL: http://svn.apache.org/viewvc?rev=698355&view=rev
Log:
[JSPWIKI-373] Fixed issue with sign button giving a fixed date.
Unfortunately the format is fixed. Thanks to Stefan Bohn for
a fix.
Modified:
incubator/jspwiki/trunk/ChangeLog
incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/Release.java
incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js
Modified: incubator/jspwiki/trunk/ChangeLog
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/ChangeLog?rev=698355&r1=698354&r2=698355&view=diff
==============================================================================
--- incubator/jspwiki/trunk/ChangeLog (original)
+++ incubator/jspwiki/trunk/ChangeLog Tue Sep 23 14:24:35 2008
@@ -1,5 +1,13 @@
2008-09-21 Janne Jalkanen <ja...@apache.org>
+ * 2.8.0-beta-8
+
+ * [JSPWIKI-373] Fixed issue with sign button giving a fixed date.
+ Unfortunately the format is fixed. Thanks to Stefan Bohn for
+ a fix.
+
+2008-09-21 Janne Jalkanen <ja...@apache.org>
+
* 2.8.0-beta-7
* [JSPWIKI-379] TranslateTag now properly does a deep
Modified: incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/Release.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/Release.java?rev=698355&r1=698354&r2=698355&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/Release.java (original)
+++ incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/Release.java Tue Sep 23 14:24:35 2008
@@ -77,7 +77,7 @@
* <p>
* If the build identifier is empty, it is not added.
*/
- public static final String BUILD = "7";
+ public static final String BUILD = "8";
/**
* This is the generic version string you should use
Modified: incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js?rev=698355&r1=698354&r2=698355&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js (original)
+++ incubator/jspwiki/trunk/src/webdocs/scripts/jspwiki-edit.js Tue Sep 23 14:24:35 2008
@@ -34,7 +34,13 @@
**/
var WikiSnippets =
{
- getSnippets: function(){
+ getSnippets: function(){
+ // FIXME: This is a kludge; should really insert a Date plugin or something.
+ var now = new Date();
+ var day = ((now.getDate() < 10) ? "0" + now.getDate() : now.getDate())
+ var month = ((now.getMonth() < 10) ? "0" + now.getMonth() : now.getMonth())
+ var currentDate = now.getFullYear() + "-" + month + "-" + day;
+
return {
"toc" : {
snippet:["","[{TableOfContents }]", "\n"],
@@ -122,8 +128,8 @@
},
//dynamic snippets
"sign" : {
- snippet:["\\\\\n--",Wiki.UserName+", "+"25 Sep 07","\n"],
- tab:[Wiki.UserName,'25 Sep 07','']
+ snippet:["\\\\\n--",Wiki.UserName+", "+currentDate,"\n"],
+ tab:[Wiki.UserName,currentDate,'']
},
/* TODO: how to insert the proper current date/timestamp, inline with the preferred time format */
"date" : {