See ChangeLog

Monotone-Parent: 377f173bfaa310b58f7ebe5b7fb0f70204cbb0e5
Monotone-Revision: 1eadd109045fc1edf90a763470ff31e5ad34bebf

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-03-14T14:38:57
This commit is contained in:
Francis Lachapelle
2012-03-14 14:38:57 +00:00
parent 1080097e48
commit 2b1a8f6b30
3 changed files with 30 additions and 12 deletions

View File

@@ -84,6 +84,22 @@ var SOGoTimePickerInterface = {
inner.appendChild(new Element("hr"));
// Compute position
this.position();
// Register observers
this.on("click", this.toggleVisibility.bindAsEventListener(this));
this.on("change", this.onChange.bindAsEventListener(this));
this.on("keydown", this.onKeydown.bindAsEventListener(this));
this.div.on("mouseenter", this.onEnter.bindAsEventListener(this));
this.div.on("mouseleave", this.onLeave.bindAsEventListener(this));
this.disposeHandler = $(document.body).on("click", this.onDispose.bindAsEventListener(this));
this.disposeHandler.stop();
// Apply current input value if defined
this.onChange();
},
position: function () {
var inputPosition = this.cumulativeOffset();
var inputDimensions = this.getDimensions();
var divWidth = this.div.getWidth();
@@ -98,18 +114,6 @@ var SOGoTimePickerInterface = {
this.div.setStyle({ top: top+"px",
left: left+"px",
backgroundPosition: arrow+'px top'});
// Register observers
this.on("click", this.toggleVisibility.bindAsEventListener(this));
this.on("change", this.onChange.bindAsEventListener(this));
this.on("keydown", this.onKeydown.bindAsEventListener(this));
this.div.on("mouseenter", this.onEnter.bindAsEventListener(this));
this.div.on("mouseleave", this.onLeave.bindAsEventListener(this));
this.disposeHandler = $(document.body).on("click", this.onDispose.bindAsEventListener(this));
this.disposeHandler.stop();
// Apply current input value if defined
this.onChange();
},
onHourClick: function (event) {