Author: jezdez
Date: 2010-02-07 08:42:16 -0600 (Sun, 07 Feb 2010)
New Revision: 12397
Modified:
django/trunk/django/contrib/admin/media/js/core.js
Log:
Fixed #12748 - Use charAt instead of array-like access to format string to
please IE. Thanks, yedpodtrzitko.
Modified: django/trunk/django/contrib/admin/media/js/core.js
===================================================================
--- django/trunk/django/contrib/admin/media/js/core.js 2010-02-07 14:41:43 UTC
(rev 12396)
+++ django/trunk/django/contrib/admin/media/js/core.js 2010-02-07 14:42:16 UTC
(rev 12397)
@@ -174,12 +174,12 @@
};
var result = '', i = 0;
while (i < format.length) {
- if (format[i] === '%') {
- result = result + fields[format[i + 1]];
+ if (format.charAt(i) === '%') {
+ result = result + fields[format.charAt(i + 1)];
++i;
}
else {
- result = result + format[i];
+ result = result + format.charAt(i);
}
++i;
}
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.