You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/08/29 06:21:31 UTC

svn commit: r264057 - /myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/resource/popcalendar.js

Author: mmarinschek
Date: Sun Aug 28 21:21:24 2005
New Revision: 264057

URL: http://svn.apache.org/viewcvs?rev=264057&view=rev
Log:
thanks to Fabian Frederick for supplying this patch

Modified:
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/resource/popcalendar.js

Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/resource/popcalendar.js
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/resource/popcalendar.js?rev=264057&r1=264056&r2=264057&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/resource/popcalendar.js (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/calendar/resource/popcalendar.js Sun Aug 28 21:21:24 2005
@@ -570,6 +570,9 @@
 		jscalendarMonthSelected = parseInt( formatInt( document.getElementById(clientId+".month").value),10)-1;
 		jscalendarYearSelected = parseInt(  formatInt(document.getElementById(clientId+".year").value),10);
 		jscalendarCtlNow = document.getElementById(clientId+".day");
+		if(isNaN(jscalendarYearSelected)){
+			jscalendarYearSelected = jscalendarYearNow;
+		}		
 		jscalendarPopUpCalendar_Show(document.getElementById(clientId+".day"));
 	}
 }
@@ -645,4 +648,4 @@
     }
 	  return str;
 
-}
\ No newline at end of file
+}