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 s["%%"] = "%"; // a literal '%' character
var re = /%./g; var re = /%./g;
if (!Calendar.is_ie5)
return str.replace(re, function (par) { return s[par] || par; });
var a = str.match(re); var a = str.match(re);
for (var i = 0; i < a.length; i++) { for (var i = 0; i < a.length; i++) {
@ -1760,12 +1762,9 @@ Date.prototype.print = function (str) {
str = str.replace(re, tmp); str = str.replace(re, tmp);
} }
} }
return str; return str;
}; };
Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
Date.prototype.setFullYear = function(y) { Date.prototype.setFullYear = function(y) {
var d = new Date(this); var d = new Date(this);
@ -1780,4 +1779,3 @@ Date.prototype.setFullYear = function(y) {
// global object that remembers the calendar // global object that remembers the calendar
window.calendar = null; window.calendar = null;