tine20/Calendar/js/MonthViewEventUI.js
Rama main · réplica de lectura del repositorio original.
/*
* Tine 2.0
*
* @license http://www.gnu.org/licenses/agpl.html AGPL Version 3
* @author Cornelius Weiss <c.weiss@metaways.de>
* @copyright Copyright (c) 2007-2016 Metaways Infosystems GmbH (http://www.metaways.de)
*/
Ext.ns('Tine.Calendar');
Tine.Calendar.MonthViewEventUI = Ext.extend(Tine.Calendar.EventUI, {
onSelectedChange: function(state){
Tine.Calendar.MonthViewEventUI.superclass.onSelectedChange.call(this, state);
if (state){
this.addClass('cal-monthview-active');
this.setStyle({
'background-color': this.color,
'color': (this.colorSet) ? this.colorSet.text : '#000000'
});
} else {
this.removeClass('cal-monthview-active');
this.setStyle({
'background-color': this.is_all_day_event ? this.bgColor : '',
'color': this.is_all_day_event ? '#000000' : this.color
});
}
}
});
Tine.Calendar.YearViewEventUI = Ext.extend(Tine.Calendar.EventUI, {
onSelectedChange: function(state){
Tine.Calendar.YearViewEventUI.superclass.onSelectedChange.call(this, state);
if (state){
this.addClass('cal-yearview-active');
this.setStyle({
'background-color': this.color,
'color': (this.colorSet) ? this.colorSet.text : '#000000'
});
} else {
this.removeClass('cal-yearview-active');
this.setStyle({
'background-color': this.is_all_day_event ? this.bgColor : '',
'color': this.is_all_day_event ? '#000000' : this.color
});
}
}
});