Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jannis Leidel authored February 07, 2010

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/admin/media/js/core.js
6  django/contrib/admin/media/js/core.js
@@ -174,12 +174,12 @@ Date.prototype.strftime = function(format) {
174 174
     };
175 175
     var result = '', i = 0;
176 176
     while (i < format.length) {
177  
-        if (format[i] === '%') {
178  
-            result = result + fields[format[i + 1]];
  177
+        if (format.charAt(i) === '%') {
  178
+            result = result + fields[format.charAt(i + 1)];
179 179
             ++i;
180 180
         }
181 181
         else {
182  
-            result = result + format[i];
  182
+            result = result + format.charAt(i);
183 183
         }
184 184
         ++i;
185 185
     }

0 notes on commit fdb9f83

Please sign in to comment.
Something went wrong with that request. Please try again.