re-added ie5 support benjamin removed - I hope by acident ;-)

This commit is contained in:
Ralf Becker 2004-07-07 15:05:34 +00:00
parent bd8b16249b
commit aac320dbb4

View File

@ -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;