Unable to observe changes to textfield (of Datefield component) using javascript
--------------------------------------------------------------------------------

                 Key: TAPESTRY-2355
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2355
             Project: Tapestry
          Issue Type: Bug
          Components: JavaScript
    Affects Versions: 5.0.11
         Environment: Firefox 2.0.0.13, Ubuntu linux 7.10
            Reporter: Michael Lake
            Priority: Minor
             Fix For: 5.0.12



I'm trying to listen for changes to datefield but not having much success.


In the "createPopup" method in datefield.js i noticed this:

 {
    this.datePicker = new DatePicker;
    this.popup = $(this.datePicker.create());
    this.field.insert({after:this.popup});
    this.popup.absolutize().hide();

    //relavent line:
    this.datePicker.onselect = (function () {this.field.value = 
this.formatDate(this.datePicker.getDate());this.hidePopup();new 
Effect.Highlight(this.field);}).bind(this);
}

Shouldn't the "observe" function be used here?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to