diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2011-08-22 02:52:20 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2011-08-22 02:52:20 +0000 |
| commit | a52411488398303e67e2f4019b052172edd99a68 (patch) | |
| tree | b2ade7c0d4a10939ad1e4a6cfcd17f37b6b70cd0 /django/contrib/admin | |
| parent | 8560a2c08030d67e234112b6951279de205b4778 (diff) | |
Removed unused admin Javascript functions from source.
Fixed #16204. Thanks, melinath.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16642 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/admin')
| -rw-r--r-- | django/contrib/admin/static/admin/js/core.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/django/contrib/admin/static/admin/js/core.js b/django/contrib/admin/static/admin/js/core.js index 3ca8ad0f9a..ab776509ba 100644 --- a/django/contrib/admin/static/admin/js/core.js +++ b/django/contrib/admin/static/admin/js/core.js @@ -108,12 +108,6 @@ function findPosY(obj) { //----------------------------------------------------------------------------- // Date object extensions // ---------------------------------------------------------------------------- -Date.prototype.getCorrectYear = function() { - // Date.getYear() is unreliable -- - // see http://www.quirksmode.org/js/introdate.html#year - var y = this.getYear() % 100; - return (y < 38) ? y + 2000 : y + 1900; -} Date.prototype.getTwelveHours = function() { hours = this.getHours(); @@ -149,10 +143,6 @@ Date.prototype.getTwoDigitSecond = function() { return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds(); } -Date.prototype.getISODate = function() { - return this.getCorrectYear() + '-' + this.getTwoDigitMonth() + '-' + this.getTwoDigitDate(); -} - Date.prototype.getHourMinute = function() { return this.getTwoDigitHour() + ':' + this.getTwoDigitMinute(); } |
