From aac320dbb42c241b38e48d8715aae3fb6c02e609 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 7 Jul 2004 15:05:34 +0000 Subject: [PATCH] re-added ie5 support benjamin removed - I hope by acident ;-) --- phpgwapi/js/jscalendar/calendar.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/phpgwapi/js/jscalendar/calendar.js b/phpgwapi/js/jscalendar/calendar.js index 865b4cdefa..f6289c37e6 100644 --- a/phpgwapi/js/jscalendar/calendar.js +++ b/phpgwapi/js/jscalendar/calendar.js @@ -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); @@ -1779,5 +1778,4 @@ Date.prototype.setFullYear = function(y) { // global object that remembers the calendar -window.calendar = null; - +window.calendar = null; \ No newline at end of file