@@ -168,8 +168,8 @@ Module.register("calendar", {
168
168
169
169
this . selfUpdate ( ) ;
170
170
} ,
171
- notificationReceived ( notification , payload , sender ) {
172
171
172
+ notificationReceived ( notification , payload , sender ) {
173
173
if ( notification === "FETCH_CALENDAR" ) {
174
174
if ( this . hasCalendarURL ( payload . url ) ) {
175
175
this . sendSocketNotification ( notification , { url : payload . url , id : this . identifier } ) ;
@@ -217,7 +217,6 @@ Module.register("calendar", {
217
217
218
218
// Override dom generator.
219
219
getDom ( ) {
220
- const ONE_SECOND = 1000 ; // 1,000 milliseconds
221
220
const events = this . createEventList ( true ) ;
222
221
const wrapper = document . createElement ( "table" ) ;
223
222
wrapper . className = this . config . tableClass ;
@@ -308,15 +307,12 @@ Module.register("calendar", {
308
307
}
309
308
310
309
const symbolClass = this . symbolClassForUrl ( event . url ) ;
311
- symbolWrapper . className = `symbol align-right ${ symbolClass } ` ;
310
+ symbolWrapper . className = `symbol ${ symbolClass } ` ;
312
311
313
312
const symbols = this . symbolsForEvent ( event ) ;
314
- symbols . forEach ( ( s , index ) => {
313
+ symbols . forEach ( ( s ) => {
315
314
const symbol = document . createElement ( "span" ) ;
316
315
symbol . className = s ;
317
- if ( index > 0 ) {
318
- symbol . style . paddingLeft = "5px" ;
319
- }
320
316
symbolWrapper . appendChild ( symbol ) ;
321
317
} ) ;
322
318
eventWrapper . appendChild ( symbolWrapper ) ;
@@ -601,7 +597,6 @@ Module.register("calendar", {
601
597
*/
602
598
createEventList ( limitNumberOfEntries ) {
603
599
let now = moment ( ) ;
604
- let today = now . clone ( ) . startOf ( "day" ) ;
605
600
let future = now . clone ( ) . startOf ( "day" ) . add ( this . config . maximumNumberOfDays , "days" ) ;
606
601
607
602
let events = [ ] ;
0 commit comments