FixBug for Safari (Mac)

This commit is contained in:
bgigon 2004-07-12 09:39:54 +00:00
parent 14720c0cfd
commit 959740dd9f

View File

@ -1751,7 +1751,7 @@ Date.prototype.print = function (str) {
s["%%"] = "%"; // a literal '%' character
var re = /%./g;
if (!Calendar.is_ie5 && !Calendar.is_opera)
if (!Calendar.is_ie5 && !Calendar.is_opera && !Calendar.is_khtml)
return str.replace(re, function (par) { return s[par] || par; });
var a = str.match(re);
@ -1778,4 +1778,4 @@ Date.prototype.setFullYear = function(y) {
// global object that remembers the calendar
window.calendar = null;
window.calendar = null;