My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 92: DatePicker's draggable option doesn't work as documented
  Back to list
Status:  WontFix
Owner:  anutron
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by bowsersenior, Mar 13, 2009
What steps will reproduce the problem?
1. Create a new DatePicker with new DatePicker(input, {draggable: false});

What is the expected output? What do you see instead?
The DatePicker modal window should not be draggable. It is still draggable.

Please provide any additional information below.
To get the correct behavior, you need:
  new DatePicker(input, { stickyWinOptions: { draggable: false} } )

Suggested fix:

1.On line 6174 of clientcide-trunk-805.js (I downloaded everything, not including mootools 
core/more), the draggable option of StickyWin is set to true by default. This should be changed 
to the draggable option of DatePicker:

 /* BAD */	stickyWinOptions: {
				draggable: true,
				dragOptions: {},
                                ...

/* GOOD */   this.draggable: true,
                        stickyWinOptions: {
				dragOptions: {},
                       ...

2. The initialize() function never refers to the draggable option of DatePicker. Just add a line there 
to set the StickyWin's draggable option to the draggable option passed in to DatePicker:

this.options.stickyWinOptions.draggable = this.draggable;



If possible, can you post an example of this where we can view it? If so, please paste in the url 
below.

http://nicsdad.com/bugs/datepicker.html
Comment 1 by anutron, May 07, 2009
All tickets are now on github:

http://github.com/anutron/clientcide/issues/
Status: WontFix
Sign in to add a comment

Hosted by Google Code