mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
Bug 1320225: [DateTimeInput] Integration of input type=date input box with picker (part 2)
This commit is contained in:
parent
d8bcf2270a
commit
753a28d239
4 changed files with 21 additions and 6 deletions
|
|
@ -97,13 +97,10 @@ this.DateTimePickerHelper = {
|
|||
|
||||
// Called when picker value has changed, notify input box about it.
|
||||
updateInputBoxValue: function(aEvent) {
|
||||
// TODO: parse data based on input type.
|
||||
const { hour, minute } = aEvent.detail;
|
||||
debug("hour: " + hour + ", minute: " + minute);
|
||||
let browser = this.weakBrowser ? this.weakBrowser.get() : null;
|
||||
if (browser) {
|
||||
browser.messageManager.sendAsyncMessage(
|
||||
"FormDateTime:PickerValueChanged", { hour, minute });
|
||||
"FormDateTime:PickerValueChanged", aEvent.detail);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue