|
|
@@ -719,42 +719,34 @@ Grid.mixin({
|
|
|
},
|
|
|
|
|
|
|
|
|
- // Utility for generating a CSS string with all the event skin-related properties
|
|
|
+ // Utility for generating event skin-related CSS properties
|
|
|
getEventSkinCss: function(event) {
|
|
|
var view = this.view;
|
|
|
var source = event.source || {};
|
|
|
var eventColor = event.color;
|
|
|
var sourceColor = source.color;
|
|
|
var optionColor = view.opt('eventColor');
|
|
|
- var backgroundColor =
|
|
|
- event.backgroundColor ||
|
|
|
- eventColor ||
|
|
|
- source.backgroundColor ||
|
|
|
- sourceColor ||
|
|
|
- view.opt('eventBackgroundColor') ||
|
|
|
- optionColor;
|
|
|
- var borderColor =
|
|
|
- event.borderColor ||
|
|
|
- eventColor ||
|
|
|
- source.borderColor ||
|
|
|
- sourceColor ||
|
|
|
- view.opt('eventBorderColor') ||
|
|
|
- optionColor;
|
|
|
- var textColor =
|
|
|
- event.textColor ||
|
|
|
- source.textColor ||
|
|
|
- view.opt('eventTextColor');
|
|
|
- var statements = [];
|
|
|
- if (backgroundColor) {
|
|
|
- statements.push('background-color:' + backgroundColor);
|
|
|
- }
|
|
|
- if (borderColor) {
|
|
|
- statements.push('border-color:' + borderColor);
|
|
|
- }
|
|
|
- if (textColor) {
|
|
|
- statements.push('color:' + textColor);
|
|
|
- }
|
|
|
- return statements.join(';');
|
|
|
+
|
|
|
+ return {
|
|
|
+ 'background-color':
|
|
|
+ event.backgroundColor ||
|
|
|
+ eventColor ||
|
|
|
+ source.backgroundColor ||
|
|
|
+ sourceColor ||
|
|
|
+ view.opt('eventBackgroundColor') ||
|
|
|
+ optionColor,
|
|
|
+ 'border-color':
|
|
|
+ event.borderColor ||
|
|
|
+ eventColor ||
|
|
|
+ source.borderColor ||
|
|
|
+ sourceColor ||
|
|
|
+ view.opt('eventBorderColor') ||
|
|
|
+ optionColor,
|
|
|
+ 'color':
|
|
|
+ event.textColor ||
|
|
|
+ source.textColor ||
|
|
|
+ view.opt('eventTextColor')
|
|
|
+ };
|
|
|
},
|
|
|
|
|
|
|