Skip to content

Commit

Permalink
Fixed #12748 - Use charAt instead of array-like access to format stri…
Browse files Browse the repository at this point in the history
…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
jezdez committed Feb 7, 2010
1 parent f5ee289 commit fdb9f83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/contrib/admin/media/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fdb9f83

Please sign in to comment.