]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
reverted the 'min' directory to its original state 1622/head
authorAlexander Karelas <alex.karelas@gmail.com>
Thu, 24 Apr 2014 16:23:37 +0000 (16:23 +0000)
committerAlexander Karelas <alex.karelas@gmail.com>
Thu, 24 Apr 2014 16:23:37 +0000 (16:23 +0000)
min/langs.js
min/moment-with-langs.js

index e70f91d8802fb04862e27bec9961cf7ce9627efc..c0b3c6b43133ba51d5eb054a16e87a3d066a3a35 100644 (file)
             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 : {
index 553554200e0a57b820c0f02818eafbc5167cb3f3..72687db9931ada557475372c5ed275c7597793b4 100644 (file)
             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 : {