mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fix for a "too much recursion" JavaScript error in calendar.js, when the user tries to pick another year; the fix was taken from dynarch.com
provided by a user named ilyaf. Thanks,
This commit is contained in:
parent
20a5ce1293
commit
ace6deee7b
@ -1774,15 +1774,16 @@ Date.prototype.print = function (str) {
|
|||||||
return str;
|
return str;
|
||||||
};
|
};
|
||||||
|
|
||||||
Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
|
if ( !Date.prototype.__msh_oldSetFullYear ) {
|
||||||
Date.prototype.setFullYear = function(y) {
|
Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
|
||||||
var d = new Date(this);
|
Date.prototype.setFullYear = function(y) {
|
||||||
d.__msh_oldSetFullYear(y);
|
var d = new Date(this);
|
||||||
if (d.getMonth() != this.getMonth())
|
d.__msh_oldSetFullYear(y);
|
||||||
this.setDate(28);
|
if (d.getMonth() != this.getMonth())
|
||||||
this.__msh_oldSetFullYear(y);
|
this.setDate(28);
|
||||||
|
this.__msh_oldSetFullYear(y);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// END: DATE OBJECT PATCHES
|
// END: DATE OBJECT PATCHES
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user