Forgot to upload the patch...:
http://www.nabble.com/user-files/235957/DateChooser.diff DateChooser.diff 
http://www.nabble.com/user-files/235958/DateChooser.js DateChooser.js 


dperez wrote:
> 
> Hi
> 
> I have changed class DateChooser in this way:
> 
> 1) A new event has been added: qx.constant.Event.SELECT
>     This event is called when: a user double clicks a day, or presses the
> enter or space key when over a day.
> 
>     This event allows to do an action when the user selects a day.  E.g
> when the calendar is shown in a popup window, it closes the window and
> sets the content of the corresponding TextField.
> 
>       myDateChooser.addEventListener(qx.constant.Event.SELECT, function() {
>               myTextField.setValue((new
> qx.util.format.DateFormat('dd-MM-yyyy')).format(this.getDate()));
>               myPopupWindow.close();
>               myTextField.focus();
>       });
> 
> 2) Sometimes I've had problems with this code
> 
> -  if (dayIncrement != null || monthIncrement != null || yearIncrement !=
> null) {
>     // ***********If this.getDate()==null it crashes
> -    var date = new Date(this.getDate().getTime()); // TODO: Do cloning in
> getter
> -    if (date == null) {
> -      date = new Date();
> -    } else {
> -      if (dayIncrement != null)   date.setDate(date.getDate() +
> dayIncrement);
> -      if (monthIncrement != null) date.setMonth(date.getMonth() +
> monthIncrement);
> -      if (yearIncrement != null)  date.setFullYear(date.getFullYear() +
> yearIncrement);
> -    }
> -    this.setDate(date);
> -  }
> -} 
> 
> 
> this.getDate().getTime() crashes if this.getDate() is null.
> So I check before if this.getDate() is valid.
> 
> 
> When my change is accepted, I will update the doc and create a new demo
> called DateChooser_2.html.
> 
> 
> Andreas Ecker-2 wrote:
>> 
>> Hi, David,
>> 
>> thanks for the patch. Applied.
>> 
>> Andreas
>> 
>> dperez wrote:
>>> In addition, I have corrected some typos (months names in German and
>>> English
>>> are quite similar ;-) ) in DateFormat.js.
>>> 
>>> Attached the patch: 
>>> http://www.nabble.com/user-files/235952/DateFormat.diff
>>> DateFormat.diff 
>> 
>> 
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/New-documentation-for-DateChooser-tf2258103.html#a6265020
Sent from the qooxdoo-devel forum at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to