Skip to content

Commit a524114

Browse files
committed
Removed unused admin Javascript functions from source.
Fixed django#16204. Thanks, melinath. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16642 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 8560a2c commit a524114

File tree

1 file changed

+0
-10
lines changed
  • django/contrib/admin/static/admin/js

1 file changed

+0
-10
lines changed

django/contrib/admin/static/admin/js/core.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,6 @@ function findPosY(obj) {
108108
//-----------------------------------------------------------------------------
109109
// Date object extensions
110110
// ----------------------------------------------------------------------------
111-
Date.prototype.getCorrectYear = function() {
112-
// Date.getYear() is unreliable --
113-
// see http://www.quirksmode.org/js/introdate.html#year
114-
var y = this.getYear() % 100;
115-
return (y < 38) ? y + 2000 : y + 1900;
116-
}
117111

118112
Date.prototype.getTwelveHours = function() {
119113
hours = this.getHours();
@@ -149,10 +143,6 @@ Date.prototype.getTwoDigitSecond = function() {
149143
return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds();
150144
}
151145

152-
Date.prototype.getISODate = function() {
153-
return this.getCorrectYear() + '-' + this.getTwoDigitMonth() + '-' + this.getTwoDigitDate();
154-
}
155-
156146
Date.prototype.getHourMinute = function() {
157147
return this.getTwoDigitHour() + ':' + this.getTwoDigitMinute();
158148
}

0 commit comments

Comments
 (0)