Browse Source

Update calendar.js

- load locale-all.js
- localization based on user language settings
version-14
joezsweet 8 years ago
committed by Nabin Hait
parent
commit
619a09f96d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      frappe/public/js/frappe/views/calendar/calendar.js

+ 3
- 1
frappe/public/js/frappe/views/calendar/calendar.js View File

@@ -29,7 +29,8 @@ frappe.views.CalendarView = frappe.views.ListRenderer.extend({
}, },
required_libs: [ required_libs: [
'assets/frappe/js/lib/fullcalendar/fullcalendar.min.css', '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() { setup_options: function() {
var me = this; var me = this;
this.cal_options = { this.cal_options = {
locale: frappe.boot.user.language || "en",
header: { header: {
left: 'title', left: 'title',
center: '', center: '',


Loading…
Cancel
Save