mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
re-added ie5 support benjamin removed - I hope by acident ;-)
This commit is contained in:
parent
bd8b16249b
commit
aac320dbb4
@ -1751,6 +1751,8 @@ Date.prototype.print = function (str) {
|
||||
s["%%"] = "%"; // a literal '%' character
|
||||
|
||||
var re = /%./g;
|
||||
if (!Calendar.is_ie5)
|
||||
return str.replace(re, function (par) { return s[par] || par; });
|
||||
|
||||
var a = str.match(re);
|
||||
for (var i = 0; i < a.length; i++) {
|
||||
@ -1760,12 +1762,9 @@ Date.prototype.print = function (str) {
|
||||
str = str.replace(re, tmp);
|
||||
}
|
||||
}
|
||||
|
||||
return str;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
|
||||
Date.prototype.setFullYear = function(y) {
|
||||
var d = new Date(this);
|
||||
@ -1780,4 +1779,3 @@ Date.prototype.setFullYear = function(y) {
|
||||
|
||||
// global object that remembers the calendar
|
||||
window.calendar = null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user