diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-12-15 22:16:20 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-12-15 22:16:20 -0800 |
commit | 31d11d5b964328ecdd55340636c91088729aede6 (patch) | |
tree | 8b16703e7694826467ed201bf5eb911ffa71a79f /httemplate/elements/calendar.js | |
parent | 4d364d506c717b1b73858dd287413d3788ec586d (diff) |
fix "too much recursion" calendar javascript error
Diffstat (limited to 'httemplate/elements/calendar.js')
-rw-r--r-- | httemplate/elements/calendar.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/elements/calendar.js b/httemplate/elements/calendar.js index f5c74f608..ccc963d8a 100644 --- a/httemplate/elements/calendar.js +++ b/httemplate/elements/calendar.js @@ -1790,6 +1790,7 @@ Date.prototype.print = function (str) { return str; }; +if ( !Date.prototype.__msh_oldSetFullYear ) { Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; Date.prototype.setFullYear = function(y) { var d = new Date(this); @@ -1798,6 +1799,7 @@ Date.prototype.setFullYear = function(y) { this.setDate(28); this.__msh_oldSetFullYear(y); }; +} // END: DATE OBJECT PATCHES |