Browse Source

Fallback calendar color to blue (#3542)

version-14
Faris Ansari 8 years ago
committed by Rushabh Mehta
parent
commit
fd082ea9f0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      frappe/public/js/frappe/views/calendar/calendar.js

+ 2
- 0
frappe/public/js/frappe/views/calendar/calendar.js View File

@@ -252,6 +252,8 @@ frappe.views.Calendar = Class.extend({
// see event_calendar.js // see event_calendar.js
color = d.color; color = d.color;
} }

if(!color) color = "blue";
d.className = "fc-bg-" + color; d.className = "fc-bg-" + color;
return d; return d;
}); });


Loading…
Cancel
Save