From: Alexander Karelas Date: Thu, 24 Apr 2014 16:23:37 +0000 (+0000) Subject: reverted the 'min' directory to its original state X-Git-Tag: 2.7.0~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5f2d0bfbd937fb653c653ff7d4f617261bfbd08;p=thirdparty%2Fmoment.git reverted the 'min' directory to its original state --- diff --git a/min/langs.js b/min/langs.js index e70f91d88..c0b3c6b43 100644 --- a/min/langs.js +++ b/min/langs.js @@ -983,24 +983,13 @@ nextDay : '[Αύριο {}] LT', nextWeek : 'dddd [{}] LT', lastDay : '[Χθες {}] LT', - lastWeek : function() { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, + lastWeek : '[την προηγούμενη] dddd [{}] LT', sameElse : 'L' }, calendar : function (key, mom) { var output = this._calendarEl[key], hours = mom && mom.hours(); - if (typeof output === 'function') { - output = output.apply(mom); - } - return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις")); }, relativeTime : { diff --git a/min/moment-with-langs.js b/min/moment-with-langs.js index 553554200..72687db99 100644 --- a/min/moment-with-langs.js +++ b/min/moment-with-langs.js @@ -3349,24 +3349,13 @@ nextDay : '[Αύριο {}] LT', nextWeek : 'dddd [{}] LT', lastDay : '[Χθες {}] LT', - lastWeek : function() { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, + lastWeek : '[την προηγούμενη] dddd [{}] LT', sameElse : 'L' }, calendar : function (key, mom) { var output = this._calendarEl[key], hours = mom && mom.hours(); - if (typeof output === 'function') { - output = output.apply(mom); - } - return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις")); }, relativeTime : {