Commits

Anonymous committed 585a3e0

WW-1429
- date picker ceases to work when inside ajax div

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2860573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/static/jscalendar/calendar.js

 
 	return str;
 };
-
-Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
+// WW-1429: added an if check to make sure no infinte recurrsion in an ajax-div tag.
+if (Date.prototype.__msh_oldSetFullYear == null) {
+	Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
+}
 Date.prototype.setFullYear = function(y) {
 	var d = new Date(this);
 	d.__msh_oldSetFullYear(y);