Rev 1231 | Rev 1234 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1231 | Rev 1233 | ||
|---|---|---|---|
| Line 137... | Line 137... | ||
| 137 | this.exchangeCalendarBook = new ExchangeCalendar(function(shortname, data) { self.exchangeCalendarBookCallback(shortname, data); }); |
137 | this.exchangeCalendarBook = new ExchangeCalendar(function(shortname, data) { self.exchangeCalendarBookCallback(shortname, data); }); |
| 138 | 138 | ||
| 139 | /* create the first menu item */ |
139 | /* create the first menu item */ |
| 140 | this.statusMenuItem = new MenuItem(this); |
140 | this.statusMenuItem = new MenuItem(this); |
| 141 | this.statusMenuItem.displayData[0] = this.lcdCenterText(this.niceName); |
141 | this.statusMenuItem.displayData[0] = this.lcdCenterText(this.niceName); |
| 142 | this.statusMenuItem.doUpdate = |
142 | this.statusMenuItem.doUpdate = function(args) { self.updateStatusMenuItem(); }; |
| 143 | this.currentMenuItem = this.statusMenuItem; |
143 | this.currentMenuItem = this.statusMenuItem; |
| 144 | 144 | ||
| 145 | /* create the menuitem where you can choose to enter the booking sub-menu */ |
145 | /* create the menuitem where you can choose to enter the booking sub-menu */ |
| 146 | this.bookMenuItem = new MenuItem(this); |
146 | this.bookMenuItem = new MenuItem(this); |
| 147 | this.bookMenuItem.displayData[0] = this.lcdCenterText("Book room"); |
147 | this.bookMenuItem.displayData[0] = this.lcdCenterText("Book room"); |
| 148 | this.bookMenuItem.displayData[1] = this.lcdCenterText("(Push button)"); |
148 | this.bookMenuItem.displayData[1] = this.lcdCenterText("(Push button)"); |
| 149 | this.bookMenuItem.doUpdate = |
149 | this.bookMenuItem.doUpdate = function(args) { self.updateBookMenuItem(); }; |
| 150 | 150 | ||
| 151 | /* connect the items as a linked list */ |
151 | /* connect the items as a linked list */ |
| 152 | this.statusMenuItem.setNextItem(this.bookMenuItem); |
152 | this.statusMenuItem.setNextItem(this.bookMenuItem); |
| 153 | this.statusMenuItem.setPrevItem(this.bookMenuItem); |
153 | this.statusMenuItem.setPrevItem(this.bookMenuItem); |
| 154 | /* set the function that shall be executed when knob is turned */ |
154 | /* set the function that shall be executed when knob is turned */ |
| 155 | this.statusMenuItem.doRight = |
155 | this.statusMenuItem.doRight = function(args) { self.changeToNext(); }; |
| 156 | this.statusMenuItem.doLeft = |
156 | this.statusMenuItem.doLeft = function(args) { self.changeToPrev(); }; |
| 157 | 157 | ||
| 158 | /* connect the items as a linked list */ |
158 | /* connect the items as a linked list */ |
| 159 | this.bookMenuItem.setNextItem(this.statusMenuItem); |
159 | this.bookMenuItem.setNextItem(this.statusMenuItem); |
| 160 | this.bookMenuItem.setPrevItem(this.statusMenuItem); |
160 | this.bookMenuItem.setPrevItem(this.statusMenuItem); |
| 161 | /* set the function that shall be executed when knob is turned */ |
161 | /* set the function that shall be executed when knob is turned */ |
| 162 | this.bookMenuItem.doRight = |
162 | this.bookMenuItem.doRight = function(args) { self.changeToNext(); }; |
| 163 | this.bookMenuItem.doLeft = |
163 | this.bookMenuItem.doLeft = function(args) { self.changeToPrev(); }; |
| 164 | 164 | ||
| 165 | /* create the menuitem where you can choose the to-time */ |
165 | /* create the menuitem where you can choose the to-time */ |
| 166 | var menuChooseTo = new MenuItem(this); |
166 | var menuChooseTo = new MenuItem(this); |
| 167 | menuChooseTo.displayData[1] = this.lcdCenterText(" Ok Cancel "); |
167 | menuChooseTo.displayData[1] = this.lcdCenterText(" Ok Cancel "); |
| 168 | menuChooseTo.doUpdate = |
168 | menuChooseTo.doUpdate = function(args) { self.chooseBookTimeTo(); }; |
| 169 | 169 | ||
| 170 | this.bookMenuItem.doPress = |
170 | this.bookMenuItem.doPress = function(args) { self.prepareBookingMenu(); }; |
| 171 | this.bookMenuItem.setDescItem(menuChooseTo); |
171 | this.bookMenuItem.setDescItem(menuChooseTo); |
| 172 | 172 | ||
| 173 | /* create the menuitem where you can choose to book the room with OK */ |
173 | /* create the menuitem where you can choose to book the room with OK */ |
| 174 | var menuChooseOk = new MenuItem(this); |
174 | var menuChooseOk = new MenuItem(this); |
| 175 | menuChooseOk.displayData[1] = this.lcdCenterText("<Ok> Cancel "); |
175 | menuChooseOk.displayData[1] = this.lcdCenterText("<Ok> Cancel "); |
| 176 | menuChooseOk.doUpdate = |
176 | menuChooseOk.doUpdate = function(args) { self.setBookTime(); }; |
| 177 | 177 | ||
| 178 | /* create the menuitem where you can choose to cancel the booking */ |
178 | /* create the menuitem where you can choose to cancel the booking */ |
| 179 | var menuChooseCancel = new MenuItem(this); |
179 | var menuChooseCancel = new MenuItem(this); |
| 180 | menuChooseCancel.displayData[1] = this.lcdCenterText(" Ok <Cancel>"); |
180 | menuChooseCancel.displayData[1] = this.lcdCenterText(" Ok <Cancel>"); |
| 181 | menuChooseCancel.doUpdate = |
181 | menuChooseCancel.doUpdate = function(args) { self.setBookTime(); }; |
| 182 | 182 | ||
| 183 | /* create the menuitem where you can choose the from-time */ |
183 | /* create the menuitem where you can choose the from-time */ |
| 184 | var menuChooseFrom = new MenuItem(this); |
184 | var menuChooseFrom = new MenuItem(this); |
| 185 | menuChooseFrom.displayData[1] = this.lcdCenterText(" Ok Cancel "); |
185 | menuChooseFrom.displayData[1] = this.lcdCenterText(" Ok Cancel "); |
| 186 | menuChooseFrom.doUpdate = |
186 | menuChooseFrom.doUpdate = function(args) { self.chooseBookTimeFrom(); }; |
| 187 | 187 | ||
| 188 | /* create the menuitem where you see the result of a booking */ |
188 | /* create the menuitem where you see the result of a booking */ |
| 189 | this.bookResultMenuItem = new MenuItem(this); |
189 | this.bookResultMenuItem = new MenuItem(this); |
| 190 | this.bookResultMenuItem.displayData[0] = this.lcdCenterText("Booking..."); |
190 | this.bookResultMenuItem.displayData[0] = this.lcdCenterText("Booking..."); |
| 191 | this.bookResultMenuItem.displayData[1] = this.lcdCenterText("(Push to return)"); |
191 | this.bookResultMenuItem.displayData[1] = this.lcdCenterText("(Push to return)"); |
| 192 | this.bookResultMenuItem.setDescItem(this.bookMenuItem); |
192 | this.bookResultMenuItem.setDescItem(this.bookMenuItem); |
| 193 | this.bookResultMenuItem.doPress = |
193 | this.bookResultMenuItem.doPress = function(args) { self.changeToDesc(); }; |
| 194 | 194 | ||
| 195 | /* connect the items as a linked list */ |
195 | /* connect the items as a linked list */ |
| 196 | menuChooseTo.setNextItem(menuChooseOk); |
196 | menuChooseTo.setNextItem(menuChooseOk); |
| 197 | menuChooseTo.setPrevItem(menuChooseFrom); |
197 | menuChooseTo.setPrevItem(menuChooseFrom); |
| 198 | /* set the function that shall be executed when knob is turned */ |
198 | /* set the function that shall be executed when knob is turned */ |
| 199 | menuChooseTo.doRight = |
199 | menuChooseTo.doRight = function(args) { self.changeToNext(); }; |
| 200 | menuChooseTo.doLeft = |
200 | menuChooseTo.doLeft = function(args) { self.changeToPrev(); }; |
| 201 | menuChooseTo.doPress = |
201 | menuChooseTo.doPress = function(args) { self.changeToDesc(); }; |
| 202 | 202 | ||
| 203 | /* connect the items as a linked list */ |
203 | /* connect the items as a linked list */ |
| 204 | menuChooseOk.setNextItem(menuChooseCancel); |
204 | menuChooseOk.setNextItem(menuChooseCancel); |
| 205 | menuChooseOk.setPrevItem(menuChooseTo); |
205 | menuChooseOk.setPrevItem(menuChooseTo); |
| 206 | menuChooseOk.setDescItem(this.bookResultMenuItem); |
206 | menuChooseOk.setDescItem(this.bookResultMenuItem); |
| 207 | /* set the function that shall be executed when knob is turned */ |
207 | /* set the function that shall be executed when knob is turned */ |
| 208 | menuChooseOk.doRight = |
208 | menuChooseOk.doRight = function(args) { self.changeToNext(); }; |
| 209 | menuChooseOk.doLeft = |
209 | menuChooseOk.doLeft = function(args) { self.changeToPrev(); }; |
| 210 | menuChooseOk.doPress = |
210 | menuChooseOk.doPress = function(args) { self.doBooking(); }; |
| 211 | 211 | ||
| 212 | /* connect the items as a linked list */ |
212 | /* connect the items as a linked list */ |
| 213 | menuChooseCancel.setNextItem(menuChooseFrom); |
213 | menuChooseCancel.setNextItem(menuChooseFrom); |
| 214 | menuChooseCancel.setPrevItem(menuChooseOk); |
214 | menuChooseCancel.setPrevItem(menuChooseOk); |
| 215 | menuChooseCancel.setDescItem(this.bookMenuItem); |
215 | menuChooseCancel.setDescItem(this.bookMenuItem); |
| 216 | /* set the function that shall be executed when knob is turned */ |
216 | /* set the function that shall be executed when knob is turned */ |
| 217 | menuChooseCancel.doRight = |
217 | menuChooseCancel.doRight = function(args) { self.changeToNext(); }; |
| 218 | menuChooseCancel.doLeft = |
218 | menuChooseCancel.doLeft = function(args) { self.changeToPrev(); }; |
| 219 | menuChooseCancel.doPress = |
219 | menuChooseCancel.doPress = function(args) { self.changeToDesc(); }; |
| 220 | 220 | ||
| 221 | /* connect the items as a linked list */ |
221 | /* connect the items as a linked list */ |
| 222 | menuChooseFrom.setNextItem(menuChooseTo); |
222 | menuChooseFrom.setNextItem(menuChooseTo); |
| 223 | menuChooseFrom.setPrevItem(menuChooseCancel); |
223 | menuChooseFrom.setPrevItem(menuChooseCancel); |
| 224 | /* set the function that shall be executed when knob is turned */ |
224 | /* set the function that shall be executed when knob is turned */ |
| 225 | menuChooseFrom.doRight = |
225 | menuChooseFrom.doRight = function(args) { self.changeToNext(); }; |
| 226 | menuChooseFrom.doLeft = |
226 | menuChooseFrom.doLeft = function(args) { self.changeToPrev(); }; |
| 227 | menuChooseFrom.doPress = |
227 | menuChooseFrom.doPress = function(args) { self.changeToDesc(); }; |
| 228 | 228 | ||
| 229 | /* create the menuitem where you can modify the to-time */ |
229 | /* create the menuitem where you can modify the to-time */ |
| 230 | var menuSetTo = new MenuItem(this); |
230 | var menuSetTo = new MenuItem(this); |
| 231 | menuSetTo.doUpdate = |
231 | menuSetTo.doUpdate = function(args) { self.setBookTimeTo(); }; |
| 232 | menuSetTo.displayData[0] = this.lcdCenterText("Set end time"); |
232 | menuSetTo.displayData[0] = this.lcdCenterText("Set end time"); |
| 233 | menuSetTo.doRight = |
233 | menuSetTo.doRight = function(args) { self.incBookTimeTo(); }; |
| 234 | menuSetTo.doLeft = |
234 | menuSetTo.doLeft = function(args) { self.decBookTimeTo(); }; |
| 235 | menuSetTo.doPress = |
235 | menuSetTo.doPress = function(args) { self.changeToDesc(); }; |
| 236 | menuSetTo.setDescItem(menuChooseTo); |
236 | menuSetTo.setDescItem(menuChooseTo); |
| 237 | menuChooseTo.setDescItem(menuSetTo); |
237 | menuChooseTo.setDescItem(menuSetTo); |
| 238 | 238 | ||
| 239 | /* create the menuitem where you can modify the from-time */ |
239 | /* create the menuitem where you can modify the from-time */ |
| 240 | var menuSetFrom = new MenuItem(this); |
240 | var menuSetFrom = new MenuItem(this); |
| 241 | menuSetFrom.doUpdate = |
241 | menuSetFrom.doUpdate = function(args) { self.setBookTimeFrom(); }; |
| 242 | menuSetFrom.displayData[0] = this.lcdCenterText("Set start time"); |
242 | menuSetFrom.displayData[0] = this.lcdCenterText("Set start time"); |
| 243 | menuSetFrom.doRight = |
243 | menuSetFrom.doRight = function(args) { self.incBookTimeFrom(); }; |
| 244 | menuSetFrom.doLeft = |
244 | menuSetFrom.doLeft = function(args) { self.decBookTimeFrom(); }; |
| 245 | menuSetFrom.doPress = |
245 | menuSetFrom.doPress = function(args) { self.changeToDesc(); }; |
| 246 | menuSetFrom.setDescItem(menuChooseFrom); |
246 | menuSetFrom.setDescItem(menuChooseFrom); |
| 247 | menuChooseFrom.setDescItem(menuSetFrom); |
247 | menuChooseFrom.setDescItem(menuSetFrom); |
| 248 | 248 | ||
| 249 | } |
249 | } |
| 250 | 250 | ||
| Line 279... | Line 279... | ||
| 279 | } |
279 | } |
| 280 | } |
280 | } |
| 281 | 281 | ||
| 282 | Display.prototype.doBooking = function() |
282 | Display.prototype.doBooking = function() |
| 283 | { |
283 | { |
| 284 | this. |
284 | this.bookResultMenuItem.displayData[0] = this.lcdCenterText("Booking..."); |
| 285 | if (this.descItem) |
285 | if (this.currentMenuItem.descItem) |
| 286 | { |
286 | { |
| 287 | this. |
287 | this.currentMenuItem = this.currentMenuItem.descItem; |
| 288 | } |
288 | } |
| 289 | //this |
289 | //this.changeToDesc(); |
| 290 | 290 | ||
| 291 | var bookFrom = this |
291 | var bookFrom = this.bookFromTime.getTimeShortFormated(); |
| 292 | var bookTo = this |
292 | var bookTo = this.bookToTime.getTimeShortFormated(); |
| 293 | this. |
293 | this.exchangeCalendarBook.book(this.shortName, bookFrom, bookTo); |
| 294 | 294 | ||
| 295 | //bookFromTime bookToTime |
295 | //bookFromTime bookToTime |
| 296 | } |
296 | } |
| 297 | 297 | ||
| 298 | Display.prototype.prepareBookingMenu = function() |
298 | Display.prototype.prepareBookingMenu = function() |
| 299 | { |
299 | { |
| 300 | this |
300 | this.bookFromTime = new Date(); |
| 301 | this |
301 | this.bookToTime = new Date(); |
| 302 | //this.bookFromTime.setHours(8); |
302 | //this.bookFromTime.setHours(8); |
| 303 | //this.bookToTime.setHours(8); |
303 | //this.bookToTime.setHours(8); |
| 304 | if (this |
304 | if (this.bookFromTime.getMinutes() < 30) |
| 305 | { |
305 | { |
| 306 | this |
306 | this.bookFromTime.setMinutes(0); |
| 307 | this |
307 | this.bookToTime.setMinutes(30); |
| 308 | } |
308 | } |
| 309 | else |
309 | else |
| 310 | { |
310 | { |
| 311 | this |
311 | this.bookFromTime.setMinutes(30); |
| 312 | this. |
312 | this.bookToTime.setHours(this.bookToTime.getHours()+1); |
| 313 | this |
313 | this.bookToTime.setMinutes(0); |
| 314 | } |
314 | } |
| 315 | 315 | ||
| 316 | this |
316 | this.currentMenuItem = this.currentMenuItem.descItem; |
| 317 | } |
317 | } |
| 318 | 318 | ||
| 319 | Display.prototype.changeToDesc = function() |
319 | Display.prototype.changeToDesc = function() |
| 320 | { |
320 | { |
| 321 | if (this.descItem) |
321 | if (this.currentMenuItem.descItem) |
| 322 | { |
322 | { |
| 323 | this. |
323 | this.currentMenuItem = this.currentMenuItem.descItem; |
| 324 | } |
324 | } |
| 325 | } |
325 | } |
| 326 | 326 | ||
| 327 | Display.prototype.changeToNext = function() |
327 | Display.prototype.changeToNext = function() |
| 328 | { |
328 | { |
| 329 | if (this.nextItem) |
329 | if (this.currentMenuItem.nextItem) |
| 330 | { |
330 | { |
| 331 | this. |
331 | this.currentMenuItem = this.currentMenuItem.nextItem; |
| 332 | } |
332 | } |
| 333 | } |
333 | } |
| 334 | 334 | ||
| 335 | Display.prototype.changeToPrev = function() |
335 | Display.prototype.changeToPrev = function() |
| 336 | { |
336 | { |
| 337 | if (this.prevItem) |
337 | if (this.currentMenuItem.prevItem) |
| 338 | { |
338 | { |
| 339 | this. |
339 | this.currentMenuItem = this.currentMenuItem.prevItem; |
| 340 | } |
340 | } |
| 341 | } |
341 | } |
| 342 | 342 | ||
| 343 | Display.prototype.incBookTimeTo = function() |
343 | Display.prototype.incBookTimeTo = function() |
| 344 | { |
344 | { |
| 345 | //FIXME: constraints? |
345 | //FIXME: constraints? |
| 346 | if (this |
346 | if (this.bookToTime.getHours() < 23) |
| 347 | { |
347 | { |
| 348 | this. |
348 | this.bookToTime.setMinutes(this.bookToTime.getMinutes() + bookingIncrease); |
| 349 | } |
349 | } |
| 350 | } |
350 | } |
| 351 | 351 | ||
| 352 | Display.prototype.decBookTimeTo = function() |
352 | Display.prototype.decBookTimeTo = function() |
| 353 | { |
353 | { |
| 354 | //FIXME: constraints? |
354 | //FIXME: constraints? |
| 355 | var now = new Date(); |
355 | var now = new Date(); |
| 356 | if (this |
356 | if (this.bookToTime.getHours() >= now.getHours()) |
| 357 | { |
357 | { |
| 358 | this. |
358 | this.bookToTime.setMinutes(this.bookToTime.getMinutes() - bookingIncrease); |
| 359 | } |
359 | } |
| 360 | } |
360 | } |
| 361 | 361 | ||
| 362 | Display.prototype.incBookTimeFrom = function() |
362 | Display.prototype.incBookTimeFrom = function() |
| 363 | { |
363 | { |
| 364 | //FIXME: constraints? |
364 | //FIXME: constraints? |
| 365 | if (this |
365 | if (this.bookFromTime.getHours() < 23) |
| 366 | { |
366 | { |
| 367 | this. |
367 | this.bookFromTime.setMinutes(this.bookFromTime.getMinutes() + bookingIncrease); |
| 368 | } |
368 | } |
| 369 | } |
369 | } |
| 370 | 370 | ||
| 371 | Display.prototype.decBookTimeFrom = function() |
371 | Display.prototype.decBookTimeFrom = function() |
| 372 | { |
372 | { |
| 373 | //FIXME: constraints? |
373 | //FIXME: constraints? |
| 374 | var now = new Date(); |
374 | var now = new Date(); |
| 375 | if (this |
375 | if (this.bookFromTime.getHours() >= now.getHours()) |
| 376 | { |
376 | { |
| 377 | this. |
377 | this.bookFromTime.setMinutes(this.bookFromTime.getMinutes() - bookingIncrease); |
| 378 | } |
378 | } |
| 379 | } |
379 | } |
| 380 | 380 | ||
| 381 | Display.prototype.setBookTimeFrom = function() |
381 | Display.prototype.setBookTimeFrom = function() |
| 382 | { |
382 | { |
| 383 | this.displayData[ |
383 | this.currentMenuItem.displayData[1] = " <"+this.bookFromTime.getTimeShortFormated()+"> "; |
| 384 | } |
384 | } |
| 385 | 385 | ||
| 386 | Display.prototype.setBookTimeTo = function() |
386 | Display.prototype.setBookTimeTo = function() |
| 387 | { |
387 | { |
| 388 | this.displayData[ |
388 | this.currentMenuItem.displayData[1] = " <"+this.bookToTime.getTimeShortFormated()+"> "; |
| 389 | } |
389 | } |
| 390 | 390 | ||
| 391 | Display.prototype.chooseBookTimeTo = function() |
391 | Display.prototype.chooseBookTimeTo = function() |
| 392 | { |
392 | { |
| 393 | this.displayData[ |
393 | this.currentMenuItem.displayData[0] = " "+this.bookFromTime.getTimeShortFormated()+" - <" |
| 394 | +this |
394 | +this.bookToTime.getTimeShortFormated()+"> "; |
| 395 | } |
395 | } |
| 396 | 396 | ||
| 397 | Display.prototype.chooseBookTimeFrom = function() |
397 | Display.prototype.chooseBookTimeFrom = function() |
| 398 | { |
398 | { |
| 399 | this.displayData[ |
399 | this.currentMenuItem.displayData[0] = " <"+this.bookFromTime.getTimeShortFormated()+"> - " |
| 400 | +this |
400 | +this.bookToTime.getTimeShortFormated()+" "; |
| 401 | } |
401 | } |
| 402 | 402 | ||
| 403 | Display.prototype.setBookTime = function() |
403 | Display.prototype.setBookTime = function() |
| 404 | { |
404 | { |
| 405 | this.displayData[ |
405 | this.currentMenuItem.displayData[0] = " "+this.bookFromTime.getTimeShortFormated()+" - " |
| 406 | +this |
406 | +this.bookToTime.getTimeShortFormated()+" "; |
| 407 | } |
407 | } |
| 408 | 408 | ||
| 409 | Display.prototype.updateStatusMenuItem = function() |
409 | Display.prototype.updateStatusMenuItem = function() |
| 410 | { |
410 | { |
| 411 | var date = new Date(); |
411 | var date = new Date(); |
| 412 | var dateAndTime = "" + date.getTimeShortFormated(); |
412 | var dateAndTime = "" + date.getTimeShortFormated(); |
| 413 | this.displayData |
413 | this.statusMenuItem.displayData[1] = this.lcdCenterText(dateAndTime); |
| 414 | } |
414 | } |
| 415 | 415 | ||
| 416 | Display.prototype.updateBookMenuItem = function() |
416 | Display.prototype.updateBookMenuItem = function() |
| 417 | { |
417 | { |
| 418 | if (this |
418 | if (this.exchangeCalendarFirstMenuItem && this.exchangeCalendarLastMenuItem) |
| 419 | { |
419 | { |
| 420 | this. |
420 | this.statusMenuItem.setNextItem(this.exchangeCalendarFirstMenuItem); |
| 421 | this. |
421 | this.bookMenuItem.setPrevItem(this.exchangeCalendarLastMenuItem); |
| 422 | } |
422 | } |
| 423 | else |
423 | else |
| 424 | { |
424 | { |
| 425 | this. |
425 | this.statusMenuItem.setNextItem(this.bookMenuItem); |
| 426 | this. |
426 | this.bookMenuItem.setPrevItem(this.statusMenuItem); |
| 427 | } |
427 | } |
| 428 | } |
428 | } |
| 429 | 429 | ||
| 430 | Display.prototype.exchangeCalendarLookupCallback = function(shortname, data) |
430 | Display.prototype.exchangeCalendarLookupCallback = function(shortname, data) |
| 431 | { |
431 | { |
| Line 462... | Line 462... | ||
| 462 | /* create the menuitem for a calendar meeting */ |
462 | /* create the menuitem for a calendar meeting */ |
| 463 | var menu = new MenuItem(this); |
463 | var menu = new MenuItem(this); |
| 464 | menu.displayData[0] = this.lcdCenterText(this.replaceAumlauts(this.exchangeData.meetings[i].subject)); |
464 | menu.displayData[0] = this.lcdCenterText(this.replaceAumlauts(this.exchangeData.meetings[i].subject)); |
| 465 | menu.displayData[1] = this.lcdCenterText(this.exchangeData.meetings[i].start.replace(":",".") + " - " |
465 | menu.displayData[1] = this.lcdCenterText(this.exchangeData.meetings[i].start.replace(":",".") + " - " |
| 466 | + this.exchangeData.meetings[i].end.replace(":",".")); |
466 | + this.exchangeData.meetings[i].end.replace(":",".")); |
| 467 | menu.doRight = |
467 | menu.doRight = function(args) { self.changeToNext(); }; |
| 468 | menu.doLeft = |
468 | menu.doLeft = function(args) { self.changeToPrev(); }; |
| 469 | 469 | ||
| 470 | if (i == 0) |
470 | if (i == 0) |
| 471 | { |
471 | { |
| 472 | this.exchangeCalendarFirstMenuItem = menu; |
472 | this.exchangeCalendarFirstMenuItem = menu; |
| 473 | } |
473 | } |