mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00:00
improved momentjs
- access it via amd not global - remove warning message - updated 2.7.0 -> 2.9.0
This commit is contained in:
parent
5a15e826a7
commit
948eeb87ba
5 changed files with 10 additions and 2614 deletions
|
@ -83,7 +83,7 @@ module.exports = (grunt) ->
|
|||
inlineText: false
|
||||
preserveLicenseComments: false
|
||||
paths:
|
||||
"moment": "libs/moment-2.7.0"
|
||||
"moment": "libs/moment-2.9.0"
|
||||
"mathjax": "/js/libs/mathjax/MathJax.js?config=TeX-AMS_HTML"
|
||||
shim:
|
||||
"libs/pdfListView/PdfListView":
|
||||
|
|
|
@ -103,6 +103,11 @@ block content
|
|||
"ace/ext-searchbox": {
|
||||
deps: ["ace/ace"]
|
||||
}
|
||||
},
|
||||
config:{
|
||||
moment:{
|
||||
noGlobal: true
|
||||
}
|
||||
}
|
||||
};
|
||||
window.aceFingerprint = "#{fingerprint(jsPath + 'ace/ace.js')}"
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
define [
|
||||
"base"
|
||||
], (App) ->
|
||||
moment.lang "en", calendar:
|
||||
"libs/moment-2.9.0"
|
||||
], (App, moment) ->
|
||||
moment.locale "en", calendar:
|
||||
lastDay : '[Yesterday]'
|
||||
sameDay : '[Today]'
|
||||
nextDay : '[Tomorrow]'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
define [
|
||||
"libs/moment-2.7.0"
|
||||
"libs/moment-2.9.0"
|
||||
"libs/angular-autocomplete/angular-autocomplete"
|
||||
"libs/ui-bootstrap"
|
||||
"libs/ng-context-menu-0.1.4"
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue