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:48 -0800 |
commit | 11765017e0e6358df88018bab894a2f7a80238c8 (patch) | |
tree | 7632776112e9b76ac2d857327f9c4559317c491b /httemplate/elements/calendar.js | |
parent | 28f406b8e23681f6ec1542bb3d7aed048aba65c1 (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 |