Author: mtredinnick
Date: 2011-08-21 19:52:20 -0700 (Sun, 21 Aug 2011)
New Revision: 16642

Modified:
   django/trunk/django/contrib/admin/static/admin/js/core.js
Log:
Removed unused admin Javascript functions from source.

Fixed #16204. Thanks, melinath.

Modified: django/trunk/django/contrib/admin/static/admin/js/core.js
===================================================================
--- django/trunk/django/contrib/admin/static/admin/js/core.js   2011-08-22 
02:46:59 UTC (rev 16641)
+++ django/trunk/django/contrib/admin/static/admin/js/core.js   2011-08-22 
02:52:20 UTC (rev 16642)
@@ -108,12 +108,6 @@
 //-----------------------------------------------------------------------------
 // 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 @@
     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();
 }

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to