mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
improved momentjs
- access it via amd not global - remove warning message - updated 2.7.0 -> 2.9.0
This commit is contained in:
@@ -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
Reference in New Issue
Block a user