Ver código fonte

Update calendar.js

- load locale-all.js
- localization based on user language settings
version-14
joezsweet 8 anos atrás
committed by Nabin Hait
pai
commit
619a09f96d
1 arquivos alterados com 3 adições e 1 exclusões
  1. +3
    -1
      frappe/public/js/frappe/views/calendar/calendar.js

+ 3
- 1
frappe/public/js/frappe/views/calendar/calendar.js Ver arquivo

@@ -29,7 +29,8 @@ frappe.views.CalendarView = frappe.views.ListRenderer.extend({
},
required_libs: [
'assets/frappe/js/lib/fullcalendar/fullcalendar.min.css',
'assets/frappe/js/lib/fullcalendar/fullcalendar.min.js'
'assets/frappe/js/lib/fullcalendar/fullcalendar.min.js',
'assets/frappe/js/lib/fullcalendar/locale-all.js'
]
})

@@ -128,6 +129,7 @@ frappe.views.Calendar = Class.extend({
setup_options: function() {
var me = this;
this.cal_options = {
locale: frappe.boot.user.language || "en",
header: {
left: 'title',
center: '',


Carregando…
Cancelar
Salvar