X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fcalendar.js;h=ccc963d8adab1f6c733c6c5f87f1ec922abdc6e6;hp=f5c74f608dd2dd0b0608fcb4fff64d6ca3d81505;hb=31d11d5b964328ecdd55340636c91088729aede6;hpb=4d364d506c717b1b73858dd287413d3788ec586d 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