Rev 1191 | Rev 1195 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1191 | Rev 1194 | ||
|---|---|---|---|
| Line 264... | Line 264... | ||
| 264 | } |
264 | } |
| 265 | 265 | ||
| 266 | Display.prototype.incBookTimeTo = function() |
266 | Display.prototype.incBookTimeTo = function() |
| 267 | { |
267 | { |
| 268 | //FIXME: constraints? |
268 | //FIXME: constraints? |
| - | 269 | if (this.parentDisplay.bookFromTime.getHours() < 23) |
|
| - | 270 | { |
|
| 269 | this.parentDisplay.bookToTime.setMinutes(this.parentDisplay.bookToTime.getMinutes() + 30); |
271 | this.parentDisplay.bookToTime.setMinutes(this.parentDisplay.bookToTime.getMinutes() + 30); |
| - | 272 | } |
|
| 270 | } |
273 | } |
| 271 | 274 | ||
| 272 | Display.prototype.decBookTimeTo = function() |
275 | Display.prototype.decBookTimeTo = function() |
| 273 | { |
276 | { |
| 274 | //FIXME: constraints? |
277 | //FIXME: constraints? |
| - | 278 | var now = new Date(); |
|
| - | 279 | if (this.parentDisplay.bookToTime.getHours() >= now.getHours()) |
|
| - | 280 | { |
|
| 275 | this.parentDisplay.bookToTime.setMinutes(this.parentDisplay.bookToTime.getMinutes() - 30); |
281 | this.parentDisplay.bookToTime.setMinutes(this.parentDisplay.bookToTime.getMinutes() - 30); |
| - | 282 | } |
|
| 276 | } |
283 | } |
| 277 | 284 | ||
| 278 | Display.prototype.incBookTimeFrom = function() |
285 | Display.prototype.incBookTimeFrom = function() |
| 279 | { |
286 | { |
| 280 | //FIXME: constraints? |
287 | //FIXME: constraints? |
| - | 288 | if (this.parentDisplay.bookFromTime.getHours() < 23) |
|
| - | 289 | { |
|
| 281 | this.parentDisplay.bookFromTime.setMinutes(this.parentDisplay.bookFromTime.getMinutes() + 30); |
290 | this.parentDisplay.bookFromTime.setMinutes(this.parentDisplay.bookFromTime.getMinutes() + 30); |
| - | 291 | } |
|
| 282 | } |
292 | } |
| 283 | 293 | ||
| 284 | Display.prototype.decBookTimeFrom = function() |
294 | Display.prototype.decBookTimeFrom = function() |
| 285 | { |
295 | { |
| 286 | //FIXME: constraints? |
296 | //FIXME: constraints? |
| - | 297 | var now = new Date(); |
|
| - | 298 | if (this.parentDisplay.bookFromTime.getHours() >= now.getHours()) |
|
| - | 299 | { |
|
| 287 | this.parentDisplay.bookFromTime.setMinutes(this.parentDisplay.bookFromTime.getMinutes() - 30); |
300 | this.parentDisplay.bookFromTime.setMinutes(this.parentDisplay.bookFromTime.getMinutes() - 30); |
| - | 301 | } |
|
| 288 | } |
302 | } |
| 289 | 303 | ||
| 290 | Display.prototype.setBookTimeFrom = function() |
304 | Display.prototype.setBookTimeFrom = function() |
| 291 | { |
305 | { |
| 292 | this.displayData[1] = " <"+this.parentDisplay.bookFromTime.getTimeShortFormated()+"> "; |
306 | this.displayData[1] = " <"+this.parentDisplay.bookFromTime.getTimeShortFormated()+"> "; |