summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-07-20 16:31:56 -0400
committerTim Graham <timograham@gmail.com>2015-07-22 17:09:53 -0400
commit5dceb7c82875e4bcb0b4fe27fc1c6d3e6a5ee30b (patch)
treeb488d7f23fd029ab482cdfcf9bbb07d28cc4c859
parent85d6b5d1ed1d49412d813b75d60bb076653675bf (diff)
downloaddjango-5dceb7c82875e4bcb0b4fe27fc1c6d3e6a5ee30b.tar.gz
Fixed JavaScript "no-underscore-dangle" violations.
-rw-r--r--.eslintrc2
-rw-r--r--django/contrib/admin/static/admin/js/calendar.js10
2 files changed, 6 insertions, 6 deletions
diff --git a/.eslintrc b/.eslintrc
index 701d7f9fbc..3873b850f1 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -18,7 +18,7 @@
"no-extend-native": [2, {"exceptions": ["Date", "String"]}],
"no-multi-spaces": [2],
"no-octal-escape": [2],
- "no-underscore-dangle": [1],
+ "no-underscore-dangle": [2],
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-script-url": [1],
"no-shadow": [2, {"hoist": "functions"}],
diff --git a/django/contrib/admin/static/admin/js/calendar.js b/django/contrib/admin/static/admin/js/calendar.js
index bc64634bad..3083ca8b1a 100644
--- a/django/contrib/admin/static/admin/js/calendar.js
+++ b/django/contrib/admin/static/admin/js/calendar.js
@@ -68,13 +68,13 @@ var CalendarNamespace = {
var startingPos = new Date(year, month - 1, 1 - CalendarNamespace.firstDayOfWeek).getDay();
var days = CalendarNamespace.getDaysInMonth(month, year);
- var _cell;
+ var nonDayCell;
// Draw blanks before first of month
tableRow = quickElement('tr', tableBody);
for (i = 0; i < startingPos; i++) {
- _cell = quickElement('td', tableRow, ' ');
- _cell.className = "nonday";
+ nonDayCell = quickElement('td', tableRow, ' ');
+ nonDayCell.className = "nonday";
}
// Draw days of month
@@ -105,8 +105,8 @@ var CalendarNamespace = {
// Draw blanks after end of month (optional, but makes for valid code)
while (tableRow.childNodes.length < 7) {
- _cell = quickElement('td', tableRow, ' ');
- _cell.className = "nonday";
+ nonDayCell = quickElement('td', tableRow, ' ');
+ nonDayCell.className = "nonday";
}
calDiv.appendChild(calTable);