improved momentjs

- access it via amd not global
- remove warning message
- updated 2.7.0 -> 2.9.0
This commit is contained in:
Henry Oswald 2015-01-29 18:31:11 +00:00
parent 5a15e826a7
commit 948eeb87ba
5 changed files with 10 additions and 2614 deletions

View file

@ -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":

View file

@ -103,6 +103,11 @@ block content
"ace/ext-searchbox": {
deps: ["ace/ace"]
}
},
config:{
moment:{
noGlobal: true
}
}
};
window.aceFingerprint = "#{fingerprint(jsPath + 'ace/ace.js')}"

View file

@ -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]'

View file

@ -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