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
This commit is contained in:
parent
8560a2c080
commit
a524114883
|
@ -108,12 +108,6 @@ function findPosY(obj) {
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Date object extensions
|
// 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() {
|
Date.prototype.getTwelveHours = function() {
|
||||||
hours = this.getHours();
|
hours = this.getHours();
|
||||||
|
@ -149,10 +143,6 @@ Date.prototype.getTwoDigitSecond = function() {
|
||||||
return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds();
|
return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds();
|
||||||
}
|
}
|
||||||
|
|
||||||
Date.prototype.getISODate = function() {
|
|
||||||
return this.getCorrectYear() + '-' + this.getTwoDigitMonth() + '-' + this.getTwoDigitDate();
|
|
||||||
}
|
|
||||||
|
|
||||||
Date.prototype.getHourMinute = function() {
|
Date.prototype.getHourMinute = function() {
|
||||||
return this.getTwoDigitHour() + ':' + this.getTwoDigitMinute();
|
return this.getTwoDigitHour() + ':' + this.getTwoDigitMinute();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue