|
|
@@ -200,9 +200,18 @@ if USE_NEW_EDITOR.get():
|
|
|
<script src="${ static('desktop/ext/js/bootstrap-better-typeahead.min.js') }"></script>
|
|
|
<script src="${ static('desktop/ext/js/fileuploader.js') }"></script>
|
|
|
<script src="${ static('desktop/js/popover-extra-placements.js') }"></script>
|
|
|
+ <script src="${ static('desktop/ext/js/moment-with-locales.min.js') }" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
|
|
+ moment.locale(window.navigator.userLanguage || window.navigator.language);
|
|
|
+ localeFormat = function (time) {
|
|
|
+ if (typeof ko !== 'undefined' && ko.isObservable(time)) {
|
|
|
+ return moment(time()).format("L LT");
|
|
|
+ }
|
|
|
+ return moment(time).format("L LT");
|
|
|
+ }
|
|
|
+
|
|
|
//Add CSRF Token to all XHR Requests
|
|
|
var xrhsend = XMLHttpRequest.prototype.send;
|
|
|
XMLHttpRequest.prototype.send = function (data) {
|