Fix name of iteration variable in nested loop in Date/Picker.js
authorMatthias Schmidt <gravatronics@live.com>
Sun, 22 May 2016 13:50:52 +0000 (15:50 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 22 May 2016 13:52:52 +0000 (15:52 +0200)
wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js

index 1ea7f363b5576ee841a33d73547bd5652c1bc11a..90006103fea9b8a4328632c625560d0fb85f7e71 100644 (file)
@@ -116,8 +116,8 @@ define(['DateUtil', 'Language', 'ObjectMap', 'Dom/ChangeListener', 'Ui/Alignment
                                
                                // check if the date input has one of the following classes set otherwise default to 'short'
                                var hasClass = false, knownClasses = ['tiny', 'short', 'medium', 'long'];
-                               for (var i = 0; i < 4; i++) {
-                                       if (element.classList.contains(knownClasses[i])) {
+                               for (var j = 0; j < 4; j++) {
+                                       if (element.classList.contains(knownClasses[j])) {
                                                hasClass = true;
                                        }
                                }