You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by id...@apache.org on 2006/01/04 17:22:08 UTC

svn commit: r365932 - /incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js

Author: idus
Date: Wed Jan  4 08:22:02 2006
New Revision: 365932

URL: http://svn.apache.org/viewcvs?rev=365932&view=rev
Log:
Tomahawk date.js was relocated; updated link in comments

Modified:
    incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js

Modified: incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js?rev=365932&r1=365931&r2=365932&view=diff
==============================================================================
--- incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js (original)
+++ incubator/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/script/dateConverter.js Wed Jan  4 08:22:02 2006
@@ -15,7 +15,7 @@
  */
 
 // copied Revision 326068
-// from http://svn.apache.org/viewcvs.cgi/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/resource/date.js
+// from http://svn.apache.org/viewcvs.cgi/myfaces/tomahawk/trunk/src/main/java/org/apache/myfaces/custom/calendar/resource/date.js
 // XXX: reuse Tomahawk date.js
 
 DateFormatSymbols = function() {
@@ -241,6 +241,9 @@
       if (patternSub.length == 3) {
         var fragment = dateStr.substr(dateIndex, 3);
         var index = this._indexOf(this.dateFormatSymbols.shortMonths, fragment);
+        log("shortMonths: " + this.dateFormatSymbols.shortMonths);
+        log("fragment: " + fragment);
+        log("index: " + index);
         if (index != -1) {
           context.month = index;
           context.newIndex = dateIndex + 3;
@@ -257,6 +260,7 @@
         this._parseNum(context, dateStr, 2, dateIndex);
         context.month = context.retValue - 1;
       }
+      log("month: " + context.month);
     } else {
       if (patternSub.length == 3) {
         context.dateStr += this.dateFormatSymbols.shortMonths[context.month];