mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
removed str.replace with anonymous function, as suggested by benjamin
This commit is contained in:
parent
bfab7d5a46
commit
f827b8a29b
@ -1751,9 +1751,6 @@ Date.prototype.print = function (str) {
|
||||
s["%%"] = "%"; // a literal '%' character
|
||||
|
||||
var re = /%./g;
|
||||
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);
|
||||
for (var i = 0; i < a.length; i++) {
|
||||
var tmp = s[a[i]];
|
||||
|
Loading…
Reference in New Issue
Block a user