Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #12748 - Use charAt instead of array-like access to format stri…

…ng to please IE. Thanks, yedpodtrzitko.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fdb9f83253d867d6ef3911349ebbf30dd39b9203 1 parent f5ee289
@jezdez jezdez authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/admin/media/js/core.js
View
6 django/contrib/admin/media/js/core.js
@@ -174,12 +174,12 @@ Date.prototype.strftime = function(format) {
};
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.