mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Bugfix boostrap alerts.less was accidentally removed
Bugfix Date.fromNow('past'/'future') reversed
Replace Events[pub/sub]('interval.*') with setInterval()
Events[pub/sub] to native
Cleanup knockout extensions
Replaced momentToNode with proper HTML5 <time>
Cleanup Momentor
This commit is contained in:
parent
6541a1de7c
commit
9f1ea1a0fd
44 changed files with 539 additions and 1126 deletions
2
dev/prototype-date.js
vendored
2
dev/prototype-date.js
vendored
|
|
@ -168,7 +168,7 @@
|
|||
Date.prototype.fromNow = function() {
|
||||
let format,
|
||||
seconds = ((new Date()).getTime() - this.getTime()) / 1000,
|
||||
str = locale.relativeTime[0 < seconds ? 'future' : 'past'];
|
||||
str = locale.relativeTime[0 < seconds ? 'past' : 'future'];
|
||||
seconds = Math.abs(seconds);
|
||||
if (60 > seconds) {
|
||||
format = 's';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue